yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11545
[Bug 1291805] [NEW] Don't change list to tuple when get info from libvirt
Public bug reported:
In the libvirt.driver, we now use the code like this:
(state, _max_mem, _mem, _cpus, _t) = virt_dom.info()
if the libvirt add new variables in the domain info, the code will be failed.
the error will like this :
File "/opt/stack/nova/nova/service.py", line 180, in start
self.manager.init_host()
File "/opt/stack/nova/nova/compute/manager.py", line 974, in init_host
self._init_instance(context, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 882, in _init_instance
drv_state = self._get_power_state(context, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 990, in _get_power_state
return self.driver.get_info(instance)["state"]
File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3462, in get_info
(state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info()
ValueError: too many values to unpack
** Affects: ceilometer
Importance: Undecided
Assignee: Shuangtai Tian (shuangtai-tian)
Status: New
** Affects: nova
Importance: Undecided
Assignee: Shuangtai Tian (shuangtai-tian)
Status: New
** Changed in: nova
Assignee: (unassigned) => Shuangtai Tian (shuangtai-tian)
** Also affects: ceilometer
Importance: Undecided
Status: New
** Changed in: ceilometer
Assignee: (unassigned) => Shuangtai Tian (shuangtai-tian)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1291805
Title:
Don't change list to tuple when get info from libvirt
Status in OpenStack Telemetry (Ceilometer):
New
Status in OpenStack Compute (Nova):
New
Bug description:
In the libvirt.driver, we now use the code like this:
(state, _max_mem, _mem, _cpus, _t) = virt_dom.info()
if the libvirt add new variables in the domain info, the code will be failed.
the error will like this :
File "/opt/stack/nova/nova/service.py", line 180, in start
self.manager.init_host()
File "/opt/stack/nova/nova/compute/manager.py", line 974, in init_host
self._init_instance(context, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 882, in _init_instance
drv_state = self._get_power_state(context, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 990, in _get_power_state
return self.driver.get_info(instance)["state"]
File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3462, in get_info
(state, max_mem, mem, num_cpu, cpu_time) = virt_dom.info()
ValueError: too many values to unpack
To manage notifications about this bug go to:
https://bugs.launchpad.net/ceilometer/+bug/1291805/+subscriptions
Follow ups
References