varible'version' is undefine in function'_has_cpu_policy_support'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Liyingjun | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
My running environment is
openstack-
python-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
When boot a instance to a host with llibvirt version 1.2.10 and flavor key set with hw:cpu_
there is log with below:
File "/usr/lib/
File "/usr/lib/
TypeError: 'module' object is not iterable in nova/virt/
Souce Code of K verison is below:
def _has_cpu_
for ver in BAD_LIBVIRT_
if self._host.
return True
I thought this func is mistake in writing with
ver_ = self._version_
So when libvirt version is BAD_LIBVIRT_
It should be ver_ = self._version_
description: | updated |
tags: | added: libvirt testing |
Changed in nova: | |
assignee: | nobody → Liyingjun (liyingjun) |
Changed in nova: | |
status: | Confirmed → In Progress |
tags: | added: kilo-backport-potential |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
@lica (licayun):
Thanks for reporting this bug. There is a lack of unit tests for that code path which should have found that.