lxc: libvirt error due to use of dom.vcpus()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Chuck Short | ||
Diablo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
running a devstack with with LIBVIRT_TYPE=lxc and nova at:
commit f597dc5548d6653
Merge: c979656 724e5e7
Date: Tue Dec 13 18:05:39 2011 +0000
I ran a couple instances, killed some, and eventually saw this in nova compute log:
2011-12-13 21:13:41,875 DEBUG nova.virt.
libvir: error : this function is not supported by the connection driver: virDomainGetVcpus
2011-12-13 21:13:41,881 ERROR nova.manager [43af388f-
(nova.manager): TRACE: Traceback (most recent call last):
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: task(self, context)
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: self.driver.
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: return self.host_
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: self.update_
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: data["vcpus_used"] = self.connection
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: total += len(dom.vcpus()[1])
(nova.manager): TRACE: TypeError: 'NoneType' object has no attribute '__getitem__'
(nova.manager): TRACE:
and also:
2011-12-13 21:15:42,029 DEBUG nova.virt.
libvir: error : this function is not supported by the connection driver: virDomainGetVcpus
2011-12-13 21:15:42,033 ERROR nova.manager [d3c67c9b-
(nova.manager): TRACE: Traceback (most recent call last):
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: task(self, context)
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: self.driver.
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: return self.host_
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: self.update_
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: data["vcpus_used"] = self.connection
(nova.manager): TRACE: File "/opt/stack/
(nova.manager): TRACE: total += len(dom.vcpus()[1])
(nova.manager): TRACE: TypeError: 'NoneType' object has no attribute '__getitem__'
(nova.manager): TRACE:
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
status: | New → Fix Released |
Reviewed: https:/ /review. openstack. org/2305 github. com/openstack/ nova/commit/ f4368e5cdf286d0 65742e0da1977a3 e48c091123
Committed: http://
Submitter: Jenkins
Branch: master
status fixcommitted
done
commit f4368e5cdf286d0 65742e0da1977a3 e48c091123
Author: Scott Moser <email address hidden>
Date: Tue Dec 13 16:48:05 2011 -0500
avoid error and trace on dom.vcpus() in lxc
This fixes bug 903943. If you used lxc, you'd eventually
see stack traces in nova-compute due to use of dom.vcpus().
Change-Id: I8ff4e973d33eef 3df116feb237b2f ebc8e6a59b5