Skip to content
Snippets Groups Projects
Commit 98520827 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix nova scheduler down after first docker restart"

parents b492a623 6bdf2026
No related branches found
No related tags found
No related merge requests found
......@@ -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']
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