Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions ansible/roles/destroy/tasks/cleanup_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,27 @@
destroy_include_dev: "{{ destroy_include_dev }}"
kolla_ansible_inventories: "{{ ansible_inventory_sources | join(' ') }}"

- block:
- name: Clean up Octavia interface service
become: true
when:
- enable_octavia | bool
- octavia_auto_configure | bool
- octavia_network_type == 'tenant'
- inventory_hostname in groups['octavia-health-manager']
block:
- name: Disable octavia-interface service
service:
ansible.builtin.service:
name: octavia-interface
enabled: no
enabled: false
state: stopped
failed_when: false

- name: Remove octavia-interface service file
file:
ansible.builtin.file:
path: /etc/systemd/system/octavia-interface.service
state: absent

- name: Remove dhclient.conf
file:
ansible.builtin.file:
path: /etc/dhcp/octavia-dhclient.conf
state: absent
when:
- enable_octavia | bool
- octavia_auto_configure | bool
- octavia_network_type == 'tenant'
- inventory_hostname in groups['octavia-health-manager']
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ For example:
:caption: ``/etc/kolla/globals.yml``

prometheus_node_exporter_targets_extra:
- target: http://10.0.0.1:1234
- target: 10.0.0.1:1234
labels:
instance: host1

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Loading