aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config/states
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-11-26 23:55:45 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-11-26 23:55:45 +0100
commit92fb2b5e303b5e097a21d43612d5c8132f23152b (patch)
treea16e06b1fdee5c507d30eebdd8cfdcd4ba53c5cc /mcp/config/states
parent8a867449217151f59766a74c6165ffc26c7f50b4 (diff)
[baremetal] Retry cinder.controller on failure
Occasionally, cinderng.volume_type_present errors with: ClientException: Service Unavailable (HTTP 503) Instead of retrying the whole state file, use `wait_for` macro to retry only this high state up to 5 times. Change-Id: Ib9ef017aca737e53c853007c13107d56d856c016 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/config/states')
-rwxr-xr-xmcp/config/states/openstack_ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha
index e1fdf7382..be4b137e2 100755
--- a/mcp/config/states/openstack_ha
+++ b/mcp/config/states/openstack_ha
@@ -45,7 +45,7 @@ salt -I 'keystone:server' state.sls keystone.server
salt -I 'nova:controller' state.sls nova -b 1
salt -I 'heat:server' state.sls heat -b 1
-salt -I 'cinder:controller' state.sls cinder -b 1
+wait_for 5 "salt -I 'cinder:controller' state.sls cinder -b 1"
salt -I 'cinder:volume' state.sls cinder
salt -I 'neutron:server' state.sls neutron -b 1