From b0b51e83aeb1773b7432b5c18f9f41be2a428474 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Mon, 9 Apr 2018 09:40:53 +0800 Subject: [PATCH] Refresh nova cell cache in nova-scheduler process Base on patch https://review.openstack.org/550527 , after nova cell is created, need send SIGHUP to nova-scheduler process to refresh nova cell cache. Change-Id: Ic1f52b2ca736b593b70fc355a057923b01e0b3ed --- ansible/roles/nova/tasks/simple_cell_setup.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/nova/tasks/simple_cell_setup.yml b/ansible/roles/nova/tasks/simple_cell_setup.yml index 9403dc2b87..bbebfb5930 100644 --- a/ansible/roles/nova/tasks/simple_cell_setup.yml +++ b/ansible/roles/nova/tasks/simple_cell_setup.yml @@ -55,3 +55,9 @@ changed_when: False run_once: True delegate_to: "{{ groups['nova-api'][0] }}" + +- name: Refresh cell cache in nova scheduler + command: docker kill --signal HUP nova_scheduler + changed_when: False + when: + - inventory_hostname in groups['nova-scheduler']