On Wed 18 Jan 2012 03:48:08 PM IST, Ryan Harper wrote:
* Haim Ateya<hat...@redhat.com>  [2012-01-18 07:13]:
On Wed 18 Jan 2012 02:59:01 PM IST, Ryan Harper wrote:
I've created some f16 VMs that contain both ovirt-engine and a few
to run vdsm as nodes.  When I add in the VM host into the engine and it
attempts to install vdsm (even though I've already installed vdsm) the
install fails because the vdsm install script is checking to see if the
host has virt capabilities; since I'm not running nested KVM, this
fails.  Is there a way to work around this can enable a VM to be a host
in oVirt?  I had heard in the past there was a way to create fake VMs
when attempting to do ovirt-engine stress testing, wondering if that
might be of help here.

Also, are their vdsm rpms built for RHEL6.x available?

Thanks!


Hi Rayn,

- login to your ovirt-engine machine
- edit
/usr/share/ovirt-engine/engine.ear/components.war/vds/vds_bootstrap.py
- comment out the following:

    836     if not oDeploy.virtExplorer(random_num):
    837         logging.error('virtExplorer test failed')
    838         return False
- reinstall host

So I'm getting further, but now the bootstrap.log has more errors below.
If I follow the test day instructions, it indicates to install vdsm and
includes instructions, but it's clear that ovirt-engine is configured by
default to push out vdsm and install it.  If I've already configured and
installed vdsm on the node is there any way to not attempting to bootstrap vdsm
at all and just attempt to have it connect?



Wed, 18 Jan 2012 08:35:37 DEBUG<BSTRAP component='VDS PACKAGES' status='OK' 
result='qemu-kvm-tools' message='qemu-kvm-tools-0.15.1-3.fc16.x86_64 '/>
Wed, 18 Jan 2012 08:35:37 DEBUG    Basic configuration found, skipping this step
Wed, 18 Jan 2012 08:35:37 DEBUG<BSTRAP component='CreateConf' status='OK' 
message='Basic configuration found, skipping this step'/>
Wed, 18 Jan 2012 08:35:37 DEBUG<BSTRAP component='CheckLocalHostname' status='OK' 
message='Local hostname is correct.'/>
Wed, 18 Jan 2012 08:35:37 DEBUG    Bridge ovirtmgmt not found, need to create 
it.
Wed, 18 Jan 2012 08:35:37 DEBUG    getAddress Entry. 
url=http://ichigo-dom223.phx.austin.ibm.com:8080/Components/vds/
Wed, 18 Jan 2012 08:35:37 DEBUG    getAddress return. 
address=ichigo-dom223.phx.austin.ibm.com port=8080
Wed, 18 Jan 2012 08:35:37 DEBUG    makeBridge begin.
Wed, 18 Jan 2012 08:35:37 DEBUG    _getMGTIface: read host name: 
ichigo-dom223.phx.austin.ibm.com
Wed, 18 Jan 2012 08:35:37 DEBUG    _getMGTIface: using host name 
ichigo-dom223.phx.austin.ibm.com strIP= 192.168.68.223
Wed, 18 Jan 2012 08:35:37 DEBUG    _getMGTIface IP=192.168.68.223 
strIface=engine
Wed, 18 Jan 2012 08:35:37 ERROR    makeBridge found existing bridge named: 
engine
Wed, 18 Jan 2012 08:35:37 ERROR    makeBridge errored:  out=
err=None
ret=None
Wed, 18 Jan 2012 08:35:37 DEBUG    makeBridge return.
Wed, 18 Jan 2012 08:35:37 ERROR    addNetwork error trying to add management 
bridge
Wed, 18 Jan 2012 08:35:37 DEBUG<BSTRAP component='SetNetworking' status='FAIL' 
message='addNetwork error trying to add management bridge'/>
Wed, 18 Jan 2012 08:35:37 DEBUG    getAddress Entry. 
url=http://ichigo-dom223.phx.austin.ibm.com:8080/Components/vds/
Wed, 18 Jan 2012 08:35:37 DEBUG    getAddress return. 
address=ichigo-dom223.phx.austin.ibm.com port=8080
Wed, 18 Jan 2012 08:35:37 DEBUG    getRemoteFile start. IP = 
ichigo-dom223.phx.austin.ibm.com port = 8080 fileName = "/engine.ssh.key.txt"
Wed, 18 Jan 2012 08:35:37 DEBUG    /engine.ssh.key.txt failed in HTTPS. 
Retrying using HTTP.
Traceback (most recent call last):
   File "/tmp/deployUtil.py", line 1334, in getRemoteFile
     conn.sock = getSSLSocket(sock, certPath)
   File "/tmp/deployUtil.py", line 1178, 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
Wed, 18 Jan 2012 08:35:37 DEBUG    getRemoteFile end.
Wed, 18 Jan 2012 08:35:37 DEBUG    handleSSHKey start
Wed, 18 Jan 2012 08:35:37 DEBUG    Failed to read /root/.ssh/authorized_keys
Wed, 18 Jan 2012 08:35:37 DEBUG    handleSSHKey: failed to chmod authorized_keys
Traceback (most recent call last):
   File "/tmp/deployUtil.py", line 608, in handleSSHKey
     silentRestoreCon(P_ROOT_AUTH_KEYS)
   File "/tmp/deployUtil.py", line 576, in silentRestoreCon
     import selinux
   File "/usr/lib64/python2.7/site-packages/selinux/__init__.py", line 26, 
in<module>
     _selinux = swig_import_helper()
   File "/usr/lib64/python2.7/site-packages/selinux/__init__.py", line 22, in 
swig_import_helper
     _mod = imp.load_module('_selinux', fp, pathname, description)
ImportError: /usr/lib64/python2.7/site-packages/selinux/_selinux.so: undefined 
symbol: selinux_check_access
Wed, 18 Jan 2012 08:35:37 DEBUG    handleSSHKey end
Wed, 18 Jan 2012 08:35:37 DEBUG<BSTRAP component='SetSSHAccess' status='FAIL' 
message='Failed to write server~s SSH key.'/>
Wed, 18 Jan 2012 08:35:37 ERROR    setSSHAccess test failed
Wed, 18 Jan 2012 08:35:37 DEBUG<BSTRAP component='RHEV_INSTALL' status='FAIL'/>
Wed, 18 Jan 2012 08:35:37 DEBUG    **** End VDS Validation ****




- add fake_kvm_support = True to your vdsm.conf under
/etc/vdsm/vdsm.conf
- restart vdsmd service


please make sure selinux is set at least on permissive mode; sed -i 's/SELINUX=disabled/SELINUX=permissive/g' /etc/sysconfig/selinux

reboot and reinstall. anyhow, if this is the case, its a known issue and patch is pending upstream.

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to