← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1291805] Re: Don't change list to tuple when get info from libvirt

 

** Changed in: ceilometer
       Status: Fix Committed => Fix Released

-- 
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):
  Fix Released
Status in OpenStack Compute (Nova):
  Fix Released

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


References