Previously, hosts became non-operational when information was retrieved from engine-defined bridged networks that had been removed from the host. A fix has been implemented that catches the error caused by the attempt to retrieve information from the missing bridge, stopping the bridged network from being reported to the engine. In cases such as this, the host now becomes "unassigned" for bridged networks and "up" for non-required bridged networks.
Created attachment 598495[details]
vdsm.log
Description of problem:
When bridge on virsh and on the host (brctl) do not match then the host is in unassigned status.
Get error in vdsm log about missing file in /sys/class/net
OSError: [Errno 2] No such file or directory: '/sys/class/net/vm_net3/brif'
[root@orchid-vds2 net]# vdsClient -s 0 getVdsCaps
Unexpected exception
Version-Release number of selected component (if applicable):
vdsm-4.9.6-21.0.el6_3.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Attach network to interface on host.
2.on the host delete the newly created bridge - brctl delbr
3.Switch the host to maintenance.
4.Activate the host.
Actual results:
Host is in unassigned.
Expected results:
Host should be in non-operational status.
We have pretty much the same problem with bridgeless networks, too. If libvirt's network definition refers to a vlan device (or bond, or nic) that happen to be missing, getVdsCaps break into pieces.
Comment 10Antoni Segura Puimedon
2012-09-11 10:26:17 UTC
Reopening to fix the cases above pointed out by Dan Kenigsberg.
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/RHSA-2012-1508.html
Created attachment 598495 [details] vdsm.log Description of problem: When bridge on virsh and on the host (brctl) do not match then the host is in unassigned status. Get error in vdsm log about missing file in /sys/class/net OSError: [Errno 2] No such file or directory: '/sys/class/net/vm_net3/brif' [root@orchid-vds2 net]# vdsClient -s 0 getVdsCaps Unexpected exception Version-Release number of selected component (if applicable): vdsm-4.9.6-21.0.el6_3.x86_64 How reproducible: 100% Steps to Reproduce: 1.Attach network to interface on host. 2.on the host delete the newly created bridge - brctl delbr 3.Switch the host to maintenance. 4.Activate the host. Actual results: Host is in unassigned. Expected results: Host should be in non-operational status.