From 5fbbff6b4697577ecbcda8c55b9d1182ce22e00d Mon Sep 17 00:00:00 2001 From: Dan Kolb Date: Thu, 30 Mar 2017 12:27:29 -0500 Subject: [PATCH] Reload service files on Nova services restart During an upgrade new service files are added, but systemd is not reloaded during restart of nova services to pick up these file changes. This performs a daemon-reload when restarting nova services. Change-Id: I98b3f66429ee045f052ad491847cf82d2f5d4efc Closes-Bug: #1673889 --- handlers/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index b239e813..715f056d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -30,6 +30,7 @@ systemd: name: "{{ nova_services['nova-conductor']['service_name'] }}" state: "restarted" + daemon_reload: yes register: nova_conductor_restart when: - "{{ nova_services['nova-conductor']['group'] in group_names }}" @@ -39,6 +40,7 @@ systemd: name: "{{ nova_services['nova-api-os-compute']['service_name'] }}" state: "restarted" + daemon_reload: yes register: nova_api_restart when: - "{{ nova_services['nova-api-os-compute']['group'] in group_names }}" @@ -49,6 +51,7 @@ systemd: name: "{{ nova_services[item]['service_name'] }}" state: "restarted" + daemon_reload: yes register: nova_misc_restart with_items: - nova-api-metadata @@ -65,6 +68,7 @@ systemd: name: "{{ nova_services['nova-compute']['service_name'] }}" state: "restarted" + daemon_reload: yes register: nova_compute_restart when: - "{{ nova_services['nova-compute']['group'] in group_names }}"