[baremetal] Retry cinder.controller on failure 11/47811/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 26 Nov 2017 22:55:45 +0000 (23:55 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 26 Nov 2017 22:55:45 +0000 (23:55 +0100)
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>
mcp/config/states/openstack_ha

index e1fdf73..be4b137 100755 (executable)
@@ -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