libvirt: could not initialize domain event timer

Bug #1300025 reported by Pavel Kirpichyov
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

While starting nova-compute service I got error in log:

libvirt: error : internal error: could not initialize domain event timer
2014-03-28 17:42:59.755 11565 WARNING nova.virt.libvirt.driver [-] URI qemu:///system does not support events: internal error: could not initialize domain event timer

This error happen, then libvirt's conn.domainEventRegisterAny is called before libvirt.virEventRegisterDefaultImpl

Tags: libvirt
Allison Randal (allison)
tags: added: libvirt
Revision history for this message
Solly Ross (sross-7) wrote :

Please provide the version of OpenStack you are using, as well as the version of libvirt. Additionally, please indicate the OS you are running.

Changed in nova:
status: New → Incomplete
Revision history for this message
Pavel Kirpichyov (pavel-kirpichyov) wrote :

I had used latest versions at that moment. Fix already commited to master: https://github.com/openstack/nova/commit/8a430da045d86ccb8daee6e082c12890ce5c5276

Changed in nova:
status: Incomplete → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-1
status: Fix Committed → Fix Released
Revision history for this message
qiang (zhangqlly) wrote :

How to fix this bug ?

Thanks.
-Qiang

Revision history for this message
qiang (zhangqlly) wrote :

Hi,
I am facing a new error in /var/log/nova/nova-compute.log after changing the two files according to https://github.com/openstack/nova/commit/8a430da045d86ccb8daee6e082c12890ce5c5276:

2014-07-08 09:53:33.225 2958 INFO nova.openstack.common.service [-] Caught SIGTERM, exiting
2014-07-08 09:53:33.884 4208 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2014-07-08 09:53:33.982 4208 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2014-07-08 09:53:34.003 4208 CRITICAL nova [-] AttributeError: 'module' object has no attribute 'API'
2014-07-08 09:53:34.003 4208 TRACE nova Traceback (most recent call last):
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/bin/nova-compute", line 10, in <module>
2014-07-08 09:53:34.003 4208 TRACE nova sys.exit(main())
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/compute.py", line 72, in main
2014-07-08 09:53:34.003 4208 TRACE nova db_allowed=CONF.conductor.use_local)
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 273, in create
2014-07-08 09:53:34.003 4208 TRACE nova db_allowed=db_allowed)
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 147, in __init__
2014-07-08 09:53:34.003 4208 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)

2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 603, in __init__
2014-07-08 09:53:34.003 4208 TRACE nova self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1299, in load_compute_driver
2014-07-08 09:53:34.003 4208 TRACE nova virtapi)
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 50, in import_object_ns
2014-07-08 09:53:34.003 4208 TRACE nova return import_class(import_value)(*args, **kwargs)
2014-07-08 09:53:34.003 4208 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 418, in __init__
2014-07-08 09:53:34.003 4208 TRACE nova self._image_api = image.API()
2014-07-08 09:53:34.003 4208 TRACE nova AttributeError: 'module' object has no attribute 'API'
2014-07-08 09:53:34.003 4208 TRACE nova

Anyone can help me ?
Thanks

Thierry Carrez (ttx)
Changed in nova:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.