From 752d2c9e9d92e0733878cb3ef486a1031eb6f86e Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Mon, 6 May 2024 10:56:44 +0200 Subject: [PATCH] Cleanup of tripleo services Creates dataplane service 'tripleo-cleanup' which stops, disables and finally removes unit files of tripleo systemd services. The step is executed as last during dataplane adoption. Signed-off-by: Jiri Podivin --- .../roles/dataplane_adoption/tasks/main.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/tests/roles/dataplane_adoption/tasks/main.yaml b/tests/roles/dataplane_adoption/tasks/main.yaml index ce55a3fbb..652ba8830 100644 --- a/tests/roles/dataplane_adoption/tasks/main.yaml +++ b/tests/roles/dataplane_adoption/tasks/main.yaml @@ -560,3 +560,66 @@ - name: Adopted Neutron and OVN agents post-checks ansible.builtin.include_tasks: file: neutron_verify.yaml + +- name: Remove leftover OOO services + block: + - name: Create OpenStackDataPlaneService/tripleo-cleanup + no_log: "{{ use_no_log }}" + ansible.builtin.shell: | + {{ shell_header }} + {{ oc_header }} + oc apply -f - <