Bug 847741

Summary: 3.1 [vdsm_bootstrap] Failure to create rhevm network over pre-configured VLAN
Product: Red Hat Enterprise Linux 6 Reporter: Simon Grinberg <sgrinber>
Component: vdsmAssignee: Dan Kenigsberg <dkenigsb>
Status: CLOSED DUPLICATE QA Contact: Haim <hateya>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3CC: abaron, acathrow, bazulay, iheim, lpeer, yeylon, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: network rhev-3.1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 11:07:25 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:

Description Simon Grinberg 2012-08-13 12:06:34 UTC
Description of problem:

While trying to recreate bug 847733 I've fixed the network scripts, and removed libvirt and vdsm

Now tried to install.

Host rebooted successfully and went immediately to non operation, no rhevm bridge, log show the below. The reboot happened probably due to upstream Bug 786386


Mon, 13 Aug 2012 11:44:59 DEBUG    makeBridge found the following bridge paramaters: ['ONBOOT=yes', 'VLAN=yes', 'IPV6INIT=no', 'IPADDR=23.2.2.35', 'DNS1=23.2.2.1', 'VLAN=yes', 'DEFROUTE=yes', 'PREFIX=24', 'BOOTP
ROTO=none', 'GATEWAY=23.2.2.1']
Mon, 13 Aug 2012 11:44:59 DEBUG    ['/usr/share/vdsm/addNetwork', 'rhevm', '51', '', 'em1', 'ONBOOT=yes', 'VLAN=yes', 'IPV6INIT=no', 'IPADDR=23.2.2.35', 'DNS1=23.2.2.1', 'VLAN=yes', 'DEFROUTE=yes', 'PREFIX=24',
'BOOTPROTO=none', 'GATEWAY=23.2.2.1', 'blockingdhcp=true']
Mon, 13 Aug 2012 11:45:00 DEBUG    
Mon, 13 Aug 2012 11:45:00 DEBUG    Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 1329, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 1298, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 640, in addNetwork
    _netinfo = netinfo.NetInfo()
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 340, in __init__
    _netinfo = get()
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 251, in get
    d['networks'][netname] = { 'ports': ports(devname),
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 91, in ports
    return os.listdir('/sys/class/net/' + bridge + '/brif')
OSError: [Errno 2] No such file or directory: '/sys/class/net/rhevm/brif'

Mon, 13 Aug 2012 11:45:00 DEBUG    makeBridge Failed to add rhevm bridge out=
err=Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 1329, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 1298, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 640, in addNetwork
    _netinfo = netinfo.NetInfo()
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 340, in __init__
    _netinfo = get()
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 251, in get
    d['networks'][netname] = { 'ports': ports(devname),
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 91, in ports
    return os.listdir('/sys/class/net/' + bridge + '/brif')
OSError: [Errno 2] No such file or directory: '/sys/class/net/rhevm/brif'

ret=255
Mon, 13 Aug 2012 11:45:00 ERROR    makeBridge errored:  out=
err=Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 1329, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 1298, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 640, in addNetwork
    _netinfo = netinfo.NetInfo()
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 340, in __init__
    _netinfo = get()
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 251, in get
    d['networks'][netname] = { 'ports': ports(devname),
  File "/usr/lib64/python2.6/site-packages/vdsm/netinfo.py", line 91, in ports
    return os.listdir('/sys/class/net/' + bridge + '/brif')
OSError: [Errno 2] No such file or directory: '/sys/class/net/rhevm/brif'

Comment 1 Simon Grinberg 2012-08-13 15:15:22 UTC
Dan, as discussed on the phone, this may be a known effect of libvirt DB not cleaned up before re-install, but I could not find a bug related to that.

The scenario to recreate:
Remove libvirt and vdsm after rhevm bridge was created. 
Restore all network script to before the bridge. 
Reboot
Now try to add to rhevm.


If /etc/libvirt is removed then the above does not happen, however then you encounter Bug 847733 immediately.

Comment 2 lpeer 2012-08-16 11:07:25 UTC

*** This bug has been marked as a duplicate of bug 840594 ***