| Summary: | [vdsm][Networking] getVdsCaps display only up interfaces as slaves of a bond. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | David Naori <dnaori> |
| Component: | vdsm | Assignee: | Erez Shinan <erez> |
| Status: | CLOSED NOTABUG | QA Contact: | yeylon <yeylon> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1 | CC: | 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: | |
|
Description
David Naori
2011-05-08 12:05:35 UTC
David, would you show the output of getVdsCaps in this condition? 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).
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. |