Merge "Fix nova scheduler down after first docker restart"
This commit is contained in:
commit
9852082724
@ -3,7 +3,10 @@
|
||||
# in nova scheduler.
|
||||
- name: Refresh cell cache in nova scheduler
|
||||
become: true
|
||||
command: docker kill --signal HUP nova_scheduler
|
||||
changed_when: False
|
||||
# NOTE(yoctozepto): Normally we would send the signal via Docker but, due to a
|
||||
# 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:
|
||||
- inventory_hostname in groups['nova-scheduler']
|
||||
|
Loading…
x
Reference in New Issue
Block a user