Bug 1468443 - VLAN interfaces are not removed correctly in Network Configuration
VLAN interfaces are not removed correctly in Network Configuration
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda (Show other bugs)
7.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Anaconda Maintenance Team
Release Test Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-07 02:45 EDT by Denis Silakov
Modified: 2017-07-07 06 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Removed interface is still visible when choosing a parent for a new one (102.23 KB, image/png)
2017-07-07 02:47 EDT, Denis Silakov
no flags Details
Potential patch (775 bytes, patch)
2017-07-07 06:01 EDT, Denis Silakov
no flags Details | Diff

  None (edit)
Description Denis Silakov 2017-07-07 02:45:19 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):


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 02:47 EDT
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 06:01 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.