Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 702928

Summary: [vdsm][Networking] getVdsCaps display only up interfaces as slaves of a bond.
Product: Red Hat Enterprise Linux 6 Reporter: David Naori <dnaori>
Component: vdsmAssignee: Erez Shinan <erez>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, danken, dnaori, hateya, iheim, mgoldboi, srevivo, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-12 11:26:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Naori 2011-05-08 12:05:35 UTC
Description of problem:
getVdsCaps display only up interfaces as slaves of a bond, vdsm should report all slave bond's interfaces configured without relation to there state.

Version-Release number of selected component (if applicable):
vdsm-4.9-64.el6.x86_64

Steps to Reproduce:
1.create bond
2.ifdown one of the slave interfaces
3.getVdsCaps
  
Actual results:
in a case of lost physical link connectivity to one or more slave bond's interfaces, vdsm will report nothing wrong with the bond interface and the down interfaces as unattached.

Comment 1 Dan Kenigsberg 2011-05-12 09:12:13 UTC
David, would you show the output of getVdsCaps in this condition?

Comment 2 David Naori 2011-05-12 09:41:26 UTC
While up:

# vdsClient -s 0 getVdsCaps
...
	bondings = 'bond2': {'hwaddr': '00:10:18:24:47:6E', 'cfg': {'DEVICE': 'bond2', 'BRIDGE': 'rhevm', 'BOOTPROTO': 'none', 'ONBOOT': 'yes', 'BONDING_OPTS': 'mode=802.3ad miimon=150'}, 'netmask': '', 'addr': '', 'slaves': ['eth0', 'eth1']}, 
...

# cat /proc/net/bonding/bond2

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:10:18:24:47:6e
Aggregator ID: 3
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:10:18:24:47:6f
Aggregator ID: 4
Slave queue ID: 0

# cat /etc/sysconfig/network-scripts/ifcfg-eth{0..1}

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:10:18:24:47:6E
MASTER=bond2
SLAVE=yes

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:10:18:24:47:6F
MASTER=bond2
SLAVE=yes

While down:
# ifdown eth1

# vdsClient -s 0 getVdsCaps 
...
	bondings =  'bond2': {'hwaddr': '00:10:18:24:47:6E', 'cfg': {'DEVICE': 'bond2', 'BRIDGE': 'rhevm', 'BOOTPROTO': 'none', 'ONBOOT': 'yes', 'BONDING_OPTS': 'mode=802.3ad miimon=150'}, 'netmask': '', 'addr': '', 'slaves': ['eth0']}
...

# cat /proc/net/bonding/bond2
...
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:10:18:24:47:6e
Aggregator ID: 3
Slave queue ID: 0

# cat /etc/sysconfig/network-scripts/ifcfg-eth{0..1}
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:10:18:24:47:6E
MASTER=bond2
SLAVE=yes

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:10:18:24:47:6F
MASTER=bond2
SLAVE=yes

**getVdsCaps bond's slave interfaces should be taken from the network-scripts files instead of /proc/net/bonding/. which displays the current status (Maybe if needed should be used by getVdsStats).

Comment 3 Dan Kenigsberg 2011-05-12 11:26:43 UTC
According to David, this does not happen when the link just falls down - only if the device is manually configure off via ifdown.

Hence, this is not a real bug.