Bug 840594

Summary: 3.1 - beta2 VDSM | Host status unassigned when virsh and brctl bridge list do not match.
Product: Red Hat Enterprise Linux 6 Reporter: Meni Yakove <myakove>
Component: vdsmAssignee: Antoni Segura Puimedon <asegurap>
Status: CLOSED ERRATA QA Contact: Meni Yakove <myakove>
Severity: high Docs Contact:
Priority: medium    
Version: 6.3CC: abaron, bazulay, cpelland, danken, hateya, iheim, ilvovsky, lpeer, sgrinber, ykaul, zdover
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: vdsm-4.9.6-29.0 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of:
: 856163 (view as bug list) Environment:
Last Closed: 2012-12-04 19:02:58 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:    
Bug Blocks: 856163    
Attachments:
Description Flags
vdsm.log none

Description Meni Yakove 2012-07-16 16:08:31 UTC
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.

Comment 3 Dan Kenigsberg 2012-07-21 21:57:08 UTC
That's pretty bad - we have to be more robust.

Comment 4 lpeer 2012-08-07 08:31:11 UTC
*** Bug 823248 has been marked as a duplicate of this bug. ***

Comment 5 Antoni Segura Puimedon 2012-08-13 09:31:04 UTC
Submitted patch:

    http://gerrit.ovirt.org/#/c/7127/

Comment 6 lpeer 2012-08-16 11:07:26 UTC
*** Bug 847741 has been marked as a duplicate of this bug. ***

Comment 8 Meni Yakove 2012-08-23 07:20:35 UTC
Verified on vdsm-4.9.6-29.0.el6_3.x86_64

Comment 9 Dan Kenigsberg 2012-09-11 08:17:29 UTC
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 10 Antoni Segura Puimedon 2012-09-11 10:26:17 UTC
Reopening to fix the cases above pointed out by Dan Kenigsberg.

Comment 13 errata-xmlrpc 2012-12-04 19:02:58 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/RHSA-2012-1508.html