Merge "Fix nova scheduler down after first docker restart"
This commit is contained in:
commit
9852082724
@ -3,7 +3,10 @@
|
|||||||
# in nova scheduler.
|
# in nova scheduler.
|
||||||
- name: Refresh cell cache in nova scheduler
|
- name: Refresh cell cache in nova scheduler
|
||||||
become: true
|
become: true
|
||||||
command: docker kill --signal HUP nova_scheduler
|
# NOTE(yoctozepto): Normally we would send the signal via Docker but, due to a
|
||||||
changed_when: False
|
# Docker bug (https://github.com/moby/moby/issues/11065), this might cause the
|
||||||
|
# container to be stopped if we restart Docker or reboot the server as we
|
||||||
|
# use the 'unless-stopped' restart policy by default.
|
||||||
|
shell: "kill -HUP `docker inspect -f '{% raw %}{{.State.Pid}}{% endraw %}' nova_scheduler`"
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['nova-scheduler']
|
- inventory_hostname in groups['nova-scheduler']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user