Add retries to upstart/systemd reload

Sometimes the subsystem fails to restart due to what
looks like a race condition in the kernel scheduler.

This patch makes Ansible try a few more times before
failing.

Change-Id: Id6e51c52d2711c36c7b292dbae16654774c24540
This commit is contained in:
Jesse Pretorius 2016-09-30 20:32:31 +01:00 committed by Kevin Carter (cloudnull)
parent 83335c172d
commit 0986fa15d4
1 changed files with 8 additions and 0 deletions

View File

@ -15,12 +15,20 @@
- name: Reload systemd daemon
command: "systemctl daemon-reload"
register: reload_systemd
until: reload_systemd | success
retries: 5
delay: 2
notify:
- Restart cinder services
- name: Reload upstart init scripts
shell: |
initctl reload-configuration
register: reload_upstart
until: reload_upstart | success
retries: 5
delay: 2
notify:
- Restart cinder services