Skip to content
Snippets Groups Projects
Commit 242c559a authored by Jeffrey Zhang's avatar Jeffrey Zhang
Browse files

Add until in restart nova libvirt task

retries only works with until.

Change-Id: I350ee69b0eca7a1763bb7eab34f874d7e22c1340
Closes-bug: #1668023
parent ef34e2a1
No related branches found
No related tags found
No related merge requests found
...@@ -35,9 +35,11 @@ ...@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment