Merge "Fix nova scheduler down after first docker restart"

This commit is contained in:
Zuul 2019-10-30 16:38:37 +00:00 committed by Gerrit Code Review
commit 9852082724

View File

@ -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']