From 50cd2d35adc327431f0ae7ac34c4adec2700e537 Mon Sep 17 00:00:00 2001 From: "Shapovalov, Pavel" Date: Wed, 4 Mar 2026 14:09:02 +0300 Subject: destroy: fix Octavia interface cleanup permissions The destroy task 'Clean up Octavia interface service' requires root privileges to remove the systemd service file. Without privilege escalation the task fails, causing the destroy workflow to stop. Add become: true to ensure the task runs with the required permissions. Closes-Bug: #2143078 Change-Id: If3c005b076f6e086cdb2f83dab954c77bd81d888 Signed-off-by: Shapovalov, Pavel --- ansible/roles/destroy/tasks/cleanup_host.yml | 1 + .../notes/fix-octavia-interface-cleanup-68ce51b85f005f9a.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/fix-octavia-interface-cleanup-68ce51b85f005f9a.yaml diff --git a/ansible/roles/destroy/tasks/cleanup_host.yml b/ansible/roles/destroy/tasks/cleanup_host.yml index 4a983956c..c8ec6d02b 100644 --- a/ansible/roles/destroy/tasks/cleanup_host.yml +++ b/ansible/roles/destroy/tasks/cleanup_host.yml @@ -16,6 +16,7 @@ kolla_ansible_inventories: "{{ ansible_inventory_sources | join(' ') }}" - name: Clean up Octavia interface service + become: true when: - enable_octavia | bool - octavia_auto_configure | bool diff --git a/releasenotes/notes/fix-octavia-interface-cleanup-68ce51b85f005f9a.yaml b/releasenotes/notes/fix-octavia-interface-cleanup-68ce51b85f005f9a.yaml new file mode 100644 index 000000000..c0df2c01a --- /dev/null +++ b/releasenotes/notes/fix-octavia-interface-cleanup-68ce51b85f005f9a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes a failure in the destroy workflow when cleaning up the Octavia + interface service by running the task with elevated privileges. -- cgit v1.2.3