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 847741 - 3.1 [vdsm_bootstrap] Failure to create rhevm network over pre-configured VLAN
Summary: 3.1 [vdsm_bootstrap] Failure to create rhevm network over pre-configured VLAN
Keywords:
Status: CLOSED DUPLICATE of bug 840594
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Dan Kenigsberg
QA Contact: Haim
URL:
Whiteboard: network rhev-3.1
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-13 12:06 UTC by Simon Grinberg
Modified: 2014-01-13 00:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 11:07:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.