Skip to content

Commit 52d01a3

Browse files
bshewaleamartyasinha
authored andcommitted
Cleanup NetworkManager Dummy Interface
Reproducer cleanup fails with permission denied error when trying to remove NetworkManager dummy interface connection files created by libvirt_manager role. The framework creates NetworkManager dummy interface connection files (e.g., dummy-fssqrsss.nmconnection) during libvirt network setup but fails to properly clean them up during reproducer cleanup, resulting in permission denied errors. This PR will solve this issue by adding tasks to find and remove those dummy interface in the clean_layout.yml playbook. testresult https://softwarefactory-project.io/zuul/t/rdoproject.org/build/c48f86a9b817405dbd058fa87ca9135e/log/job-output.txt#2160-2169
1 parent a44a124 commit 52d01a3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

roles/libvirt_manager/tasks/clean_layout.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,21 @@
166166
state: absent
167167
loop: "{{ cleanup_nets }}"
168168

169+
- name: Find dummy interface connection files
170+
ansible.builtin.find:
171+
paths: /etc/NetworkManager/system-connections/
172+
patterns: "dummy*"
173+
file_type: file
174+
register: dummy_connections
175+
176+
- name: Remove dummy interface connections
177+
become: true
178+
ansible.builtin.file:
179+
path: "{{ item.path }}"
180+
state: absent
181+
loop: "{{ dummy_connections.files }}"
182+
when: dummy_connections.matched > 0
183+
169184
- name: Clean firewalld libvirt zone
170185
become: true
171186
ansible.posix.firewalld:

0 commit comments

Comments
 (0)