Bug 1268207
Summary: | Duplicate Interfaces identifiers prevents updating host details (including removing the duplicate interfaces) from either UI or API | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Vreman <peter.vreman> |
Component: | Provisioning | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.1.2 | CC: | bbuckingham, bkearney, cwelton, rbobek, riehecky, sghai, sthirugn |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/11034 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 08:56:46 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: | |||
Bug Depends On: | 1327576 | ||
Bug Blocks: | 1122832 | ||
Attachments: |
Description
Peter Vreman
2015-10-02 06:59:27 UTC
Created attachment 1079362 [details]
duplicate eth1 interface
In the UI i can see that eth1 is used twice as identifier.
This is incorrect, as with the current running system there is only 1 eth1. The second eth1 was only used during the kickstart process. But after the reboot at the end of the kickstart the real ethX are there. Foreman shall then see those ethX values and remove any temporary ethX devices used during kickstart.
The same would happend with cloning the VM (e.g. for backup) and then reverting back to the clone (restore of backup). I will create a seperate BZ for this
Below is the corresponding interface configuration and facter data seen on the host: vrempet@li-lc-1017 ~ $ ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP qlen 1000 link/ether 00:50:56:97:69:3a brd ff:ff:ff:ff:ff:ff inet 10.92.72.1/24 brd 10.92.72.255 scope global eth2 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP qlen 1000 link/ether 00:50:56:97:4b:fb brd ff:ff:ff:ff:ff:ff inet 10.92.14.36/24 brd 10.92.14.255 scope global eth0 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP qlen 1000 link/ether 00:50:56:97:09:c0 brd ff:ff:ff:ff:ff:ff inet 10.92.65.36/24 brd 10.92.65.255 scope global eth1 vrempet@li-lc-1017 ~ $ sudo facter -p | grep interfaces interfaces => eth0,eth1,eth2,lo vrempet@li-lc-1017 ~ $ sudo facter -p | grep _eth ipaddress_eth0 => 10.92.14.36 ipaddress_eth1 => 10.92.65.36 ipaddress_eth2 => 10.92.72.1 macaddress_eth0 => 00:50:56:97:4B:FB macaddress_eth1 => 00:50:56:97:09:C0 macaddress_eth2 => 00:50:56:97:69:3A mtu_eth0 => 9000 mtu_eth1 => 9000 mtu_eth2 => 9000 netmask_eth0 => 255.255.255.0 netmask_eth1 => 255.255.255.0 netmask_eth2 => 255.255.255.0 network_eth0 => 10.92.14.0 network_eth1 => 10.92.65.0 network_eth2 => 10.92.72.0 Deleting the duplicate interfaces from the UI also not possible. When i delete the duplicate interfaces and press Submit it always reports "Some of the interfaces are invalid. Please check the table below." Looks like http://projects.theforeman.org/issues/11034 Connecting redmine issue http://projects.theforeman.org/issues/11034 from this bug Per Marek Hulan: the upstream issue would just help with getting rid of extra interface but wouldn't solve the original cause - the creation of invalid interface. It's not straightforward to cherry pick this to downstream as it relies on fact that all addresses are in interfaces objects which is not the case in 6.1 as primary IP and MAC are still in host, so bigger changes would have to be done. Another workaround to get rid of invalid interfaces that should work in Sat 6.1 is to use the interface API (not host API) which should skip this validation. Upstream bug assigned to mhulan Hi, please provide verification steps Thanks and Regards, Tazim Tazim, you can try following 1. add new NIC to host with one existing interface, 2. swap identifiers with the one that was already there (eth0 <-> eth1), 3. rerun puppet now go to host edit form and try to save it with some change, e.g. different partition table. Interfaces should be updated correctly after puppet run so no errors on interfaces should be reported. Verified with sat6.2 snap13.1 The reported issue is no longer reproducible with snap13.1. I defined interfaces as suggested in comment13. I created 3 interfaces eth0, eth1 and eth2. later I swapped eth1 <-> eth2 and ran "puppet agent -t", I see updated config under host details -. NIC. Later when I tried to update the ptable, media but edit host, I was able to do that without any issue. Created attachment 1163160 [details]
here I defined 3 interafces eth0, eth1, eth2
Created attachment 1163169 [details]
Later updated interface identifiers and updated facts via puppet. Interfaces identifier updated and I can edit host details like media etc
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1500 |