get_param calls with multiple arguments need brackets around them
This issue was spotted during major upgrade where we had calls like this: servers: {get_param: servers, Controller} These get_param calls are hanging indefinitely and make the whole upgrade end in a timeout. We need to put brackets around the get_param function when there are multiple arguments: http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#get-param This is already done in most of the tree, and the few places where this was not happening were parts not under CI. After this change the following grep returns only one false positive: grep -ir get_param: |grep -v -- '\[' |grep ',' Change-Id: I65b23bb44f37b93e017dd15a5212939ffac76614 Closes-Bug: #1626628
This commit is contained in:
parent
5d49b75b6e
commit
9393a3e2a5
@ -34,7 +34,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: CollectMacDeploymentsController
|
||||
servers: {get_param: servers, {{role.name}}}
|
||||
servers: {get_param: [servers, {{role.name}}]}
|
||||
config: {get_resource: CollectMacConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
{% endfor %}
|
||||
@ -63,7 +63,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: DistributeMacDeploymentsController
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: DistributeMacConfig}
|
||||
input_values:
|
||||
# FIXME(shardy): It'd be more convenient if we could join these
|
||||
|
@ -34,7 +34,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: RandomDeploymentsController
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: RandomConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
input_values:
|
||||
@ -44,7 +44,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: RandomDeploymentsCompute
|
||||
servers: {get_param: servers, Compute}
|
||||
servers: {get_param: [servers, Compute]}
|
||||
config: {get_resource: RandomConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
input_values:
|
||||
|
@ -37,7 +37,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
properties:
|
||||
config: {get_resource: SwapConfig}
|
||||
servers: {get_param: servers, {{role.name}}}
|
||||
servers: {get_param: [servers, {{role.name}}]}
|
||||
input_values:
|
||||
swap_partition_label: {get_param: swap_partition_label}
|
||||
actions: ["CREATE"]
|
||||
|
@ -50,7 +50,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
properties:
|
||||
config: {get_resource: SwapConfig}
|
||||
servers: {get_param: servers, {{role.name}}}
|
||||
servers: {get_param: [servers, {{role.name}}]}
|
||||
input_values:
|
||||
swap_size_megabytes: {get_param: swap_size_megabytes}
|
||||
swap_path: {get_param: swap_path}
|
||||
|
@ -46,7 +46,7 @@ resources:
|
||||
CephMonUpgradeDeployment:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
properties:
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: CephMonUpgradeConfig}
|
||||
input_values: {get_param: input_values}
|
||||
update_policy:
|
||||
@ -83,7 +83,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
depends_on: CephMonUpgradeDeployment
|
||||
properties:
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: ControllerPacemakerUpgradeConfig_Step1}
|
||||
input_values: {get_param: input_values}
|
||||
|
||||
@ -97,7 +97,7 @@ resources:
|
||||
BlockStorageUpgradeDeployment:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
properties:
|
||||
servers: {get_param: servers, BlockStorage}
|
||||
servers: {get_param: [servers, BlockStorage]}
|
||||
config: {get_resource: BlockStorageUpgradeConfig}
|
||||
input_values: {get_param: input_values}
|
||||
|
||||
@ -116,7 +116,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
depends_on: BlockStorageUpgradeDeployment
|
||||
properties:
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: ControllerPacemakerUpgradeConfig_Step2}
|
||||
input_values: {get_param: input_values}
|
||||
|
||||
|
@ -20,6 +20,6 @@ resources:
|
||||
AodhMysqlMigrationScriptDeployment:
|
||||
type: OS::Heat::SoftwareDeploymentGroup
|
||||
properties:
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: AodhMysqlMigrationScriptConfig}
|
||||
input_values: {get_param: input_values}
|
||||
|
@ -94,10 +94,10 @@ resources:
|
||||
type: OS::Heat::StructuredDeploymentGroup
|
||||
properties:
|
||||
config: {get_resource: NetworkMidoNetConfig}
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
|
||||
NetworkMidonetDeploymentComputes:
|
||||
type: OS::Heat::StructuredDeploymentGroup
|
||||
properties:
|
||||
config: {get_resource: NetworkMidoNetConfig}
|
||||
servers: {get_param: servers, Compute}
|
||||
servers: {get_param: [servers, Compute]}
|
||||
|
@ -132,7 +132,7 @@ resources:
|
||||
properties:
|
||||
name: NetworkCiscoDeployment
|
||||
config: {get_resource: NetworkCiscoConfig}
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
input_values:
|
||||
UCSM_ip: {get_param: NetworkUCSMIp}
|
||||
UCSM_username: {get_param: NetworkUCSMUsername}
|
||||
@ -179,7 +179,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: CollectMacDeploymentsController
|
||||
servers: {get_param: servers, Controller}
|
||||
servers: {get_param: [servers, Controller]}
|
||||
config: {get_resource: CollectMacConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
|
||||
@ -187,7 +187,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: CollectMacDeploymentsCompute
|
||||
servers: {get_param: servers, Compute}
|
||||
servers: {get_param: [servers, Compute]}
|
||||
config: {get_resource: CollectMacConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
|
||||
@ -195,7 +195,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: CollectMacDeploymentsBlockStorage
|
||||
servers: {get_param: servers, BlockStorage}
|
||||
servers: {get_param: [servers, BlockStorage]}
|
||||
config: {get_resource: CollectMacConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
|
||||
@ -203,7 +203,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: CollectMacDeploymentsObjectStorage
|
||||
servers: {get_param: servers, ObjectStorage}
|
||||
servers: {get_param: [servers, ObjectStorage]}
|
||||
config: {get_resource: CollectMacConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
|
||||
@ -211,7 +211,7 @@ resources:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
properties:
|
||||
name: CollectMacDeploymentsCephStorage
|
||||
servers: {get_param: servers, CephStorage}
|
||||
servers: {get_param: [servers, CephStorage]}
|
||||
config: {get_resource: CollectMacConfig}
|
||||
actions: ['CREATE'] # Only do this on CREATE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user