Bug 742170

Summary: The configure page of network device show incorrect info after configure multiple nics
Product: Red Hat Enterprise Linux 6 Reporter: Guohua Ouyang <gouyang>
Component: ovirt-nodeAssignee: Joey Boggs <jboggs>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: cshao, fdanapfe, gouyang, leiwang, mburns, moli, ovirt-maint, sgordon, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-2.2.3-2.el6 Doc Type: Bug Fix
Doc Text:
Once a network interface was configured, all subsequent network interfaces configured would be listed with the same values. The Hypervisor has been updated. It no longer makes assumptions as to the values to use for network interfaces based on those that have already been configured.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-19 14:14:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshots about the incorrect info none

Description Guohua Ouyang 2011-09-29 10:00:50 UTC
Created attachment 525507 [details]
screenshots about the incorrect info

Description of problem:
after configure two nics or more, the configure page of all nics show the same info. on the attached screenshots, can see both eth0 and eth1 display eth1's ip address, and "disabled" is checked rather than "static".

Version-Release number of selected component (if applicable):
rhev-hypervisor-6.2-0.17.2

How reproducible:
Always.

Steps to reproduce:
1.  There are multiple nics, configure one of them with dhcp or static.
2.  configure another one.


Actual results:
the nic's configure page show the same incorrect info .

Expected results:
the nic's configure page show itself information after it's been configured  (include ip, netmask, gateway and vlan id).

Additional info:
only configure one nic, it display correctly.

Comment 2 Alan Pevec 2011-09-29 11:45:25 UTC
Multiple configured NICs is not valid for RHEV use-case wgere only one management interface is configured.

Comment 4 Mike Burns 2012-02-02 01:36:26 UTC
So the way I understand this, the problem is on the nic configuration page.  The ip/netmask/gateway fields are populated using values from /etc/default/ovirt.  This can lead to confusion since it will show the same values on every nic whether enabled or not.

I propose changing it so that it only populates those fields if the NIC being looked at is up and populate using the info for the nic itself rather than from /etc/default/ovirt

Comment 5 Joey Boggs 2012-02-02 03:40:18 UTC
fields are no longer prepopulated from ovirt defaults and just display ip/mask/gateway if they have it

http://gerrit.ovirt.org/1580

Comment 6 Joey Boggs 2012-02-08 14:09:50 UTC
*** Bug 788518 has been marked as a duplicate of this bug. ***

Comment 8 Guohua Ouyang 2012-02-22 03:19:23 UTC
Tested on 6.3-20120215 build, the ip/mask/gateway display correct now, but the vlan id is still displayed to all nics after it's configured in any nic.

need to fixed the vlan_id area for this bug.

Consider 781929 into this bug, if 781929 is fixed, will all above issue be gone? if so, can duplicate this to 781929.

Comment 9 Joey Boggs 2012-02-24 18:54:55 UTC
fix for vlans
http://gerrit.ovirt.org/2269

Comment 11 Guohua Ouyang 2012-02-27 07:34:57 UTC
verified on 6.3-20120224.0 build,configure one nic does not affect other nic's values.( ip/netmask/gateway/vlan_id).

Comment 12 Stephen Gordon 2012-03-08 18:24:37 UTC
To aid in the development of relevant and accurate release documentation, please fill out the "Technical Notes" field above with the following 4 pieces of information:

Cause: What actions or circumstances cause this bug to present.

Consequence: What happens when the bug presents.

Fix: What was done to fix the bug.

Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the Technical Notes field to "?" (question mark). For further details see https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes

Comment 13 Joey Boggs 2012-03-08 19:09:39 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
cause: When configuring a 2nd nic simultaneouly after configuring the first one
consequence: all nics default to using the first one's values
fix: default values are no longer assumed and require the user to input them
result: user is required to input all values for ip/netmask/gateway/vlan_id when required

Comment 14 Stephen Gordon 2012-03-30 19:01:55 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,4 +1 @@
-cause: When configuring a 2nd nic simultaneouly after configuring the first one
+Once a network interface was configured, all subsequent network interfaces would appear to use the same values when configured. The Hypervisor has been updated. It no longer makes assumptions as to the values to use for network interfaces based on those that have already been configured.-consequence: all nics default to using the first one's values
-fix: default values are no longer assumed and require the user to input them
-result: user is required to input all values for ip/netmask/gateway/vlan_id when required

Comment 15 Stephen Gordon 2012-05-28 15:58:20 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Once a network interface was configured, all subsequent network interfaces would appear to use the same values when configured. The Hypervisor has been updated. It no longer makes assumptions as to the values to use for network interfaces based on those that have already been configured.+Once a network interface was configured, all subsequent network interfaces configured would be listed with the same values. The Hypervisor has been updated. It no longer makes assumptions as to the values to use for network interfaces based on those that have already been configured.

Comment 17 errata-xmlrpc 2012-07-19 14:14:10 UTC
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.

http://rhn.redhat.com/errata/RHBA-2012-0741.html