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:
parent
83335c172d
commit
0986fa15d4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user