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('') }}"
|
pid_mode: "{{ service.pid_mode | default('') }}"
|
||||||
privileged: "{{ service.privileged | default(False) }}"
|
privileged: "{{ service.privileged | default(False) }}"
|
||||||
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
||||||
|
register: restart_nova_libvirt
|
||||||
# NOTE(Jeffrey4l): retry 5 to remove nova_libvirt container because when
|
# NOTE(Jeffrey4l): retry 5 to remove nova_libvirt container because when
|
||||||
# guests running, nova_libvirt will raise error even though it is removed.
|
# guests running, nova_libvirt will raise error even though it is removed.
|
||||||
retries: 5
|
retries: 5
|
||||||
|
until: restart_nova_libvirt | success
|
||||||
when:
|
when:
|
||||||
- action != "config"
|
- action != "config"
|
||||||
- inventory_hostname in groups[service.group]
|
- inventory_hostname in groups[service.group]
|
||||||
|
Loading…
Reference in New Issue
Block a user