[Openstack] nova compute service fail to start due to "Connection to the hypervisor is broken on host"

Du Jun dj199008 at gmail.com
Wed Dec 3 07:43:32 UTC 2014


Look at the log of libvirt or type the following command:

 virsh -c qemu:///system list

Will get the error message:

ERROR:authentication failed: polkit:
polkit\56retains_authorization_after_challenge=1
Authorization requires authentication but no agent is available.

That's an issue of libvirt configuration.

[SOLVED]

uncomment

 auth_unix_rw = "none"

in /etc/libvirt/libvirtd.conf and restart libvirt-bin.

Hope this can be useful for those we have the same problem.




2014-12-03 13:50 GMT+08:00 Du Jun <dj199008 at gmail.com>:

> dujun at dujun-OptiPlex-3020:~$ nova hypervisor-list
> +----+---------------------+-------+--------+
> | ID | Hypervisor hostname | State | Status |
> +----+---------------------+-------+--------+
> +----+---------------------+-------+--------+
> dujun at dujun-OptiPlex-3020:~$ nova service-list
>
> +----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+
> | Id | Binary           | Host                | Zone     | Status  | State
> | Updated_at                 | Disabled Reason |
>
> +----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+
> | 1  | nova-conductor   | dujun-OptiPlex-3020 | internal | enabled | up
> | 2014-12-03T03:09:32.000000 | -               |
> | 2  | nova-cert        | dujun-OptiPlex-3020 | internal | enabled | up
> | 2014-12-03T03:09:35.000000 | -               |
> | 3  | nova-network     | dujun-OptiPlex-3020 | internal | enabled | up
> | 2014-12-03T03:09:38.000000 | -               |
> | 4  | nova-scheduler   | dujun-OptiPlex-3020 | internal | enabled | up
> | 2014-12-03T03:09:41.000000 | -               |
> | 5  | nova-consoleauth | dujun-OptiPlex-3020 | internal | enabled | up
> | 2014-12-03T03:09:40.000000 | -               |
>
> +----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+
>
>
> 2014-12-03 13:48 GMT+08:00 Du Jun <dj199008 at gmail.com>:
>
>> Hi all,
>>
>> I install devstack in ubuntu12.04 and upgrade libvirt 0.9.8 to 1.2.2. The
>> libvirt version in my linux box is:
>>
>> dujun at dujun-OptiPlex-3020:~/devstack$ virsh -v
>> 1.2.2
>>
>> And the error message in nova-cpu.log is such like that:
>>
>> 2014-12-03 11:00:13.007 ERROR nova.openstack.common.threadgroup [-]
>> Connection to the hypervisor is broken on host: dujun-OptiPlex-3020
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup Traceback
>> (most recent call last):
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> x.wait()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> return self.thread.wait()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> return self._exit_event.wait()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> return hubs.get_hub().switch()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> return self.greenlet.switch()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> result = function(*args, **kwargs)
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> service.start()
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
>> "/opt/stack/nova/nova/service.py", line 164, in start
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> self.manager.init_host()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> self.driver.init_host(host=self.host)
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> self._do_quality_warnings()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     caps
>> = self._get_host_capabilities()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> xmlstr = self._conn.getCapabilities()
>> 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
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     raise
>> exception.HypervisorUnavailable(host=CONF.host)
>> 2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
>> HypervisorUnavailable: Connection to the hypervisor is broken on host:
>> dujun-OptiPlex-3020
>>
>> I wonder why nova can't find the libvirt hypervisor since I have added
>>
>> compute_driver = libvirt.LibvirtDriver
>>
>> in /etc/nova/nova.conf.
>>
>> --
>> Regards,
>> Frank
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141203/87601387/attachment.html>


More information about the Openstack mailing list