<div dir="ltr">dujun@dujun-OptiPlex-3020:~$ nova hypervisor-list<br>+----+---------------------+-------+--------+<br>| ID | Hypervisor hostname | State | Status |<br>+----+---------------------+-------+--------+<br>+----+---------------------+-------+--------+<br>dujun@dujun-OptiPlex-3020:~$ nova service-list<br>+----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+<br>| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |<br>+----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+<br>| 1 | nova-conductor | dujun-OptiPlex-3020 | internal | enabled | up | 2014-12-03T03:09:32.000000 | - |<br>| 2 | nova-cert | dujun-OptiPlex-3020 | internal | enabled | up | 2014-12-03T03:09:35.000000 | - |<br>| 3 | nova-network | dujun-OptiPlex-3020 | internal | enabled | up | 2014-12-03T03:09:38.000000 | - |<br>| 4 | nova-scheduler | dujun-OptiPlex-3020 | internal | enabled | up | 2014-12-03T03:09:41.000000 | - |<br>| 5 | nova-consoleauth | dujun-OptiPlex-3020 | internal | enabled | up | 2014-12-03T03:09:40.000000 | - |<br>+----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-03 13:48 GMT+08:00 Du Jun <span dir="ltr"><<a href="mailto:dj199008@gmail.com" target="_blank">dj199008@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi all,<br><br></div>I install devstack in ubuntu12.04 and upgrade libvirt 0.9.8 to 1.2.2. The libvirt version in my linux box is:<br><br></div>dujun@dujun-OptiPlex-3020:~/devstack$ virsh -v<br>1.2.2<br><br></div>And the error message in nova-cpu.log is such like that:<br><div><div><div><div><br><span style="color:rgb(255,0,0)">2014-12-03 11:00:13.007 ERROR nova.openstack.common.threadgroup [-] Connection to the hypervisor is broken on host: dujun-OptiPlex-3020</span><br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 145, in wait<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup x.wait()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup return self.thread.wait()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 173, in wait<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 293, in switch<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212, in main<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/service.py", line 492, in run_service<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup service.start()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/service.py", line 164, in start<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup self.manager.init_host()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/compute/manager.py", line 1124, in init_host<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup self.driver.init_host(host=self.host)<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 507, in init_host<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup self._do_quality_warnings()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 486, in _do_quality_warnings<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup caps = self._get_host_capabilities()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2991, in _get_host_capabilities<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup xmlstr = self._conn.getCapabilities()<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 543, in _get_connection<br>2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup raise exception.HypervisorUnavailable(host=CONF.host)<br><span style="color:rgb(255,0,0)">2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup HypervisorUnavailable: Connection to the hypervisor is broken on host: dujun-OptiPlex-3020</span><br><br></div><div>I wonder why nova can't find the libvirt hypervisor since I have added <br><br>compute_driver = libvirt.LibvirtDriver<br><br></div><div>in /etc/nova/nova.conf.<br><br>--<br></div><div>Regards,<br></div><div>Frank<br></div><div><br></div></div></div></div></div>
</blockquote></div><br></div>