<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi all, </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">
I am using devstack on Ubuntu 12.04 server with kvm hypervisor. I upgraded libvirt from 0.9.8 to 1.2.1. Due to which I can not create instance and hypervisor is not getting connected. </div><div class="gmail_default" style="font-family:verdana,sans-serif">
<br></div><div class="gmail_default"><div class="gmail_default"><font face="verdana, sans-serif">waqas@server2:~$ nova hypervisor-list</font></div><div class="gmail_default"><font face="verdana, sans-serif">+----+---------------------+</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">| ID | Hypervisor hostname |</font></div><div class="gmail_default"><font face="verdana, sans-serif">+----+---------------------+</font></div><div class="gmail_default">
<font face="verdana, sans-serif">+----+---------------------+</font></div><div style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_default" style="font-family:verdana,sans-serif">Looking in the screens, I found following errors in n-cpu screen.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.165 DEBUG nova.openstack.common.service [-] ******************************************************************************** from (pid=23386) log_opt_values /opt/stack/oslo.config/oslo/config/cfg.py:1925</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.166 AUDIT nova.service [-] Starting compute node (version 2014.1)</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.167 DEBUG nova.virt.libvirt.driver [-] Connecting to libvirt: qemu:///system from (pid=23386) _get_new_connection /opt/stack/nova/nova/virt/libvirt/driver.py:647</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 ERROR nova.virt.libvirt.driver [-] Connection to libvirt failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver Traceback (most recent call last):</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 768, in _connect</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver libvirt.openAuth, uri, auth, flags)</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver rv = execute(f,*args,**kwargs)</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver rv = meth(*args,**kwargs)</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver if ret is None:raise libvirtError('virConnectOpenAuth() failed')</font></div><div class="gmail_default">
<font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied</font></div><div class="gmail_default">
<font face="verdana, sans-serif">2014-02-19 03:08:31.173 TRACE nova.virt.libvirt.driver</font></div><div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.178 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is f881e9cac9b04702a521c31bb3542511 from (pid=23386) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:363</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.178 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is d9eb144992654fb6b76636b2e7289517. from (pid=23386) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:333</font></div>
<div class="gmail_default"><font face="verdana, sans-serif">2014-02-19 03:08:31.202 WARNING nova.virt.libvirt.driver [-] Cannot update service status on host: server2,since it is not registered.</font></div><div class="gmail_default">
<font face="verdana, sans-serif">Traceback (most recent call last):</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 97, in wait</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> readers.get(fileno, noop).cb(fileno)</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> result = function(*args, **kwargs)</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/openstack/common/service.py", line 480, in run_service</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> service.start()</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/service.py", line 177, in start</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> self.manager.init_host()</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/compute/manager.py", line 811, in init_host</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> self.driver.init_host(host=self.host)</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 631, in init_host</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> self._do_quality_warnings()</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 619, in _do_quality_warnings</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> caps = self.get_host_capabilities()</font></div><div class="gmail_default"><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2788, in get_host_capabilities</font></div>
<div class="gmail_default"><font face="verdana, sans-serif"> xmlstr = self._conn.getCapabilities()</font></div><div><div><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 696, in _get_connection</font></div>
<div><font face="verdana, sans-serif"> wrapped_conn = self._get_new_connection()</font></div><div><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 651, in _get_new_connection</font></div>
<div><font face="verdana, sans-serif"> wrapped_conn = self._connect(self.uri(), self.read_only)</font></div><div><font face="verdana, sans-serif"> File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 777, in _connect</font></div>
<div><font face="verdana, sans-serif"> raise exception.HypervisorUnavailable(host=CONF.host)</font></div><div><font face="verdana, sans-serif">HypervisorUnavailable: Connection to the hypervisor is broken on host: server2</font></div>
<div><font face="verdana, sans-serif">Removing descriptor: 3</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 ERROR nova.openstack.common.threadgroup [-] Connection to the hypervisor is broken on host: server2</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup x.wait()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup return self.thread.wait()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/service.py", line 480, in run_service</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup service.start()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/service.py", line 177, in start</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup self.manager.init_host()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/compute/manager.py", line 811, in init_host</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup self.driver.init_host(host=self.host)</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 631, in init_host</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup self._do_quality_warnings()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 619, in _do_quality_warnings</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup caps = self.get_host_capabilities()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2788, in get_host_capabilities</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup xmlstr = self._conn.getCapabilities()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 696, in _get_connection</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup wrapped_conn = self._get_new_connection()</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 651, in _get_new_connection</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup wrapped_conn = self._connect(self.uri(), self.read_only)</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 777, in _connect</font></div>
<div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup raise exception.HypervisorUnavailable(host=CONF.host)</font></div><div><font face="verdana, sans-serif">2014-02-19 03:08:31.204 TRACE nova.openstack.common.threadgroup HypervisorUnavailable: Connection to the hypervisor is broken on host: server2</font></div>
<div style="font-family:verdana,sans-serif"><br></div></div></div><div class="gmail_default" style="font-family:verdana,sans-serif">Any help or suggestion would be a great favour. </div><div class="gmail_default" style="font-family:verdana,sans-serif">
Thanks, </div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="font-family:arial">-- </span><br></div><div dir="ltr"><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">Waqas Riaz <br>
Software Development Engineer <br></font></div><div><font face="verdana, sans-serif"><a href="http://www.xflowresearch.com/" target="_blank">xFlow Research</a><br></font></div><div><font face="verdana, sans-serif">+92-332-6396672 (GMT +5)<br>
</font></div><font face="verdana, sans-serif">Skype: waqas,riaz</font><br><div><font face="verdana, sans-serif"><br></font></div><div><span style="color:rgb(136,136,136);font-family:georgia,serif;font-size:x-small">This electronic message transmission contains information from the company that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individuals or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by replying to the address listed in the “From:” field.</span><font face="verdana, sans-serif"><br>
</font></div></div>
</div>