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
Fix proposed to branch: master /review. openstack. org/80184
Review: https:/