Add until in restart nova libvirt task
retries only works with until. Change-Id: I350ee69b0eca7a1763bb7eab34f874d7e22c1340 Closes-bug: #1668023
This commit is contained in:
parent
ef34e2a1c5
commit
242c559a04
@ -35,9 +35,11 @@
|
||||
pid_mode: "{{ service.pid_mode | default('') }}"
|
||||
privileged: "{{ service.privileged | default(False) }}"
|
||||
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
||||
register: restart_nova_libvirt
|
||||
# NOTE(Jeffrey4l): retry 5 to remove nova_libvirt container because when
|
||||
# guests running, nova_libvirt will raise error even though it is removed.
|
||||
retries: 5
|
||||
until: restart_nova_libvirt | success
|
||||
when:
|
||||
- action != "config"
|
||||
- inventory_hostname in groups[service.group]
|
||||
|
Loading…
Reference in New Issue
Block a user