Bug 781818

Summary: [vdsm-bootstrap] fail to create bridge on clean host (Fedora16) if libvirt is not installed/running
Product: [Retired] oVirt Reporter: yeylon <yeylon>
Component: vdsmAssignee: Shahar Havivi <shavivi>
Status: CLOSED DUPLICATE QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, bazulay, danken, iheim, srevivo, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-17 16:40:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
log none

Description yeylon@redhat.com 2012-01-15 13:00:08 UTC
Description of problem:

when adding a newly installed Fedora16 to oVirt (no libvirt is installed on the machine)

the installation will finish OK but no bridge will be created.

a fix was created for rhev-h but this is relevant to F16 servers too




Sun, 15 Jan 2012 14:28:06 DEBUG    INFO:root:Adding bridge ovirtmgmt with vlan=, bonding=, nics=['eth0']. bondingOptions=None, options={'NM_CONTROLLED': 'yes', 'BOOTPROTO': 'dhc
p', 'blockingdhcp': 'true', 'ONBOOT': 'yes'}
WARNING:root:
INFO:root:
Determining IP information for ovirtmgmt... done.

libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 922, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 891, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 480, in addNetwork
    createLibvirtNetwork(bridge)
  File "/usr/share/vdsm/configNetwork.py", line 483, in createLibvirtNetwork
    conn = libvirtconnection.get()
  File "/usr/share/vdsm/libvirtconnection.py", line 111, in get
    conn = libvirt.openAuth('qemu:///system', auth, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

Sun, 15 Jan 2012 14:28:06 DEBUG    makeBridge Failed to add ovirtmgmt bridge out=
err=INFO:root:Adding bridge ovirtmgmt with vlan=, bonding=, nics=['eth0']. bondingOptions=None, options={'NM_CONTROLLED': 'yes', 'BOOTPROTO': 'dhcp', 'blockingdhcp': 'true', 'ON
BOOT': 'yes'}
WARNING:root:
INFO:root:
Determining IP information for ovirtmgmt... done.

libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 922, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 891, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 480, in addNetwork
    createLibvirtNetwork(bridge)
  File "/usr/share/vdsm/configNetwork.py", line 483, in createLibvirtNetwork
    conn = libvirtconnection.get()
  File "/usr/share/vdsm/libvirtconnection.py", line 111, in get
    conn = libvirt.openAuth('qemu:///system', auth, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

ret=255
Sun, 15 Jan 2012 14:28:06 ERROR    makeBridge errored:  out=
err=INFO:root:Adding bridge ovirtmgmt with vlan=, bonding=, nics=['eth0']. bondingOptions=None, options={'NM_CONTROLLED': 'yes', 'BOOTPROTO': 'dhcp', 'blockingdhcp': 'true', 'ONBOOT': 'yes'}
WARNING:root:
INFO:root:
Determining IP information for ovirtmgmt... done.

libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 922, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 891, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 480, in addNetwork
    createLibvirtNetwork(bridge)
  File "/usr/share/vdsm/configNetwork.py", line 483, in createLibvirtNetwork
    conn = libvirtconnection.get()
  File "/usr/share/vdsm/libvirtconnection.py", line 111, in get
    conn = libvirt.openAuth('qemu:///system', auth, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

ret=255
Sun, 15 Jan 2012 14:28:06 DEBUG    makeBridge return.
Sun, 15 Jan 2012 14:28:06 ERROR    addNetwork error trying to add management bridge
Sun, 15 Jan 2012 14:28:06 DEBUG    <BSTRAP component='SetNetworking' status='FAIL' message='addNetwork error trying to add management bridge'/>
Sun, 15 Jan 2012 14:28:06 DEBUG    getAddress Entry. url=http://yeylon-fedora16.qa.lab.tlv.redhat.com:8080/Components/vds/
Sun, 15 Jan 2012 14:28:06 DEBUG    getAddress return. address=yeylon-fedora16.qa.lab.tlv.redhat.com port=8080
Sun, 15 Jan 2012 14:28:06 DEBUG    getRemoteFile start. IP = yeylon-fedora16.qa.lab.tlv.redhat.com port = 8080 fileName = "/engine.ssh.key.txt"
Sun, 15 Jan 2012 14:28:06 DEBUG    /engine.ssh.key.txt failed in HTTPS. Retrying using HTTP.
Traceback (most recent call last):
  File "/tmp/deployUtil.py", line 1327, in getRemoteFile
    conn.sock = getSSLSocket(sock, certPath)
  File "/tmp/deployUtil.py", line 1171, in getSSLSocket
    cert_reqs=ssl.CERT_REQUIRED)
  File "/usr/lib64/python2.7/ssl.py", line 372, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib64/python2.7/ssl.py", line 132, in __init__
    ciphers)
SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
Sun, 15 Jan 2012 14:28:06 DEBUG    getRemoteFile end.
Sun, 15 Jan 2012 14:28:06 DEBUG    handleSSHKey start
Sun, 15 Jan 2012 14:28:06 DEBUG    handleSSHKey: creating .ssh dir.
Sun, 15 Jan 2012 14:28:06 DEBUG    Failed to read /root/.ssh/authorized_keys
Sun, 15 Jan 2012 14:28:06 DEBUG    handleSSHKey end
Sun, 15 Jan 2012 14:28:06 DEBUG    <BSTRAP component='SetSSHAccess' status='OK' message='SUCCESS'/>
Sun, 15 Jan 2012 14:28:06 DEBUG    <BSTRAP component='Firewall' status='OK' message='overridden firewall successfully'/>
Sun, 15 Jan 2012 14:28:06 DEBUG    setHostTime start.
Sun, 15 Jan 2012 14:28:06 DEBUG    ['/usr/sbin/hwclock', '--set', '--utc', '--date=2012-01-15 12:26:07 UTC']
Sun, 15 Jan 2012 14:28:06 DEBUG
Sun, 15 Jan 2012 14:28:06 DEBUG
Sun, 15 Jan 2012 14:28:06 DEBUG    ['/usr/sbin/hwclock', '-s']
Sun, 15 Jan 2012 14:26:08 DEBUG
Sun, 15 Jan 2012 14:26:08 DEBUG

.
.
.
.
.
...............................+.....................+.......................+..........................................................................................................................+.........................+............+..................+.................................................++*++*++*

Sun, 15 Jan 2012 14:26:53 DEBUG    <BSTRAP component='Encryption setup' status='OK' message='Ended successfully'/>
Sun, 15 Jan 2012 14:26:53 DEBUG    <BSTRAP component='RHEV_INSTALL' status='OK'/>
Sun, 15 Jan 2012 14:26:53 DEBUG    **** End VDS Validation ****






Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Shahar Havivi 2012-01-15 14:26:49 UTC
merged in: http://gerrit.ovirt.org/#change,1024
duplicate of bug #772670

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

Comment 2 Dan Kenigsberg 2012-01-15 14:34:36 UTC
Let us not treat this as a duplicate - currently we know only its effect on Fedora bootstrap (though I won't be surprised if similar effect appears when installing on RHEL with non-running libvirtd).

I'd like releasing bug 772670 before digging into this issue.

Comment 3 Shahar Havivi 2012-01-15 14:51:25 UTC
Yaniv,
please attach the log file

Comment 4 yeylon@redhat.com 2012-01-16 13:43:14 UTC
Created attachment 555508 [details]
log

Comment 5 Shahar Havivi 2012-01-17 16:40:56 UTC
it is a duplicate bug of bug #772670
it was tested with old vdsm RPM

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