Bug 1468443

Summary: VLAN interfaces are not removed correctly in Network Configuration
Product: Red Hat Enterprise Linux 7 Reporter: Denis Silakov <dsilakov>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-15 07:39:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Removed interface is still visible when choosing a parent for a new one
none
Potential patch none

Description Denis Silakov 2017-07-07 06:45:19 UTC
Description of problem:
In the Network settings, if I add VLAN interface, then remove it and then add again with the same id - it doesn't appear in the list. Sometimes anaconda crashes when adding it again.

Version-Release number of selected component (if applicable):


How reproducible:
Impossibility to re-add interface with the same ID - always. Crashes - rare.

Steps to Reproduce:
1. In the beginning of RHEL installation, go to Network Settings and add VLAN interface. It appears in the list of interfaces.
2. Remove this interface from the list by clicking "-" button
3. Try to add interface with the same id again.

Actual results:
The interface doesn't appear in the list.

Note that when adding interface again, the old one (which we removed) is still visible in the "parent interface" drop-down box.

Sometimes anaconda crashes with "AttributeError: 'NoneType' object has no attribute 'get_iface'". Though this happens rarely, can't reproduce this right now to provide a full traceback. Though it looks to fail in pyanaconda/ui/gui/spokes/network.py at the following line:

log.debug("network: GUI, not adding connection %s, already have %s for device %s", uuid, existing_dev_cfg.con_uuid, existing_dev_cfg.device.get_iface())


Expected results:


Additional info:

Comment 2 Denis Silakov 2017-07-07 06:47:09 UTC
Created attachment 1295189 [details]
Removed interface is still visible when choosing a parent for a new one

We have added "VLAN connection 1" and then removed it, but when adding a new VLAN interface 'enp0s3.0 (via "VLAN connection 1")' is still somehow available.

Comment 3 Denis Silakov 2017-07-07 10:01:23 UTC
Created attachment 1295250 [details]
Potential patch

This patch makes anaconda work better, but I am not sure if it is perfect - if "dev_cfg" is left from the previous attempt to add the device, then configuration parameters from it will be likely reused for the new attempt to add the same interface.

Comment 5 RHEL Program Management 2021-01-15 07:39:35 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.