Red Hat Bugzilla – Bug 1468443
VLAN interfaces are not removed correctly in Network Configuration
Last modified: 2017-07-07 06:01 EDT
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):
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.
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())
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.
Created attachment 1295250 [details]
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.