From 5ee94a5b9b5235ae290304e6648bd3b027a7b90f Mon Sep 17 00:00:00 2001 From: Arnau Verdaguer Date: Wed, 2 Mar 2022 12:23:37 +0100 Subject: [PATCH] [ OVN ][Migration] Reload systemctl daemon after removal After stopping and deleting the services if this role is runned again it could fail bc systemd has still some ovs services loaded (eventhough the service is stopped) this will cause that ansible will try to delete again and fail while trying to disable and delete the service. Change-Id: If51d7f25375768f8c60492c84d84e91d91886025 --- .../playbooks/roles/stop-agents/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ovn_migration/tripleo_environment/playbooks/roles/stop-agents/tasks/main.yml b/tools/ovn_migration/tripleo_environment/playbooks/roles/stop-agents/tasks/main.yml index 318213672d7..4f8e0311ce2 100644 --- a/tools/ovn_migration/tripleo_environment/playbooks/roles/stop-agents/tasks/main.yml +++ b/tools/ovn_migration/tripleo_environment/playbooks/roles/stop-agents/tasks/main.yml @@ -9,6 +9,10 @@ loop_var: service when: ansible_facts.services[service.service_file] is defined +- name: Reload systemctl daemons + systemd: + daemon_reload: yes + - name: remove containers become: yes shell: |