yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #28285
[Bug 1419677] [NEW] NoneType Error was raised when booting a dedicated cpu instance on libvirt1.2.2
Public bug reported:
Booting a dedicated cpu instance is failed in libvirt 1.2.2.
I think if the libvirt version is not enough, just ignore the memnodes parameter instead of throwing NoneType error.
2015-02-09 03:37:03.193 19160 ERROR nova.compute.manager [-] [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Instance failed to spawn
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Traceback (most recent call last):
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/compute/manager.py", line 2320, in _build_resources
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] yield resources
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/compute/manager.py", line 2190, in _build_and_run_instance
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] flavor=flavor)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2333, in spawn
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] flavor=flavor)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4066, in _get_guest_xml
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] xml = conf.to_xml()
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 79, in to_xml
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] root = self.format_dom()
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1891, in format_dom
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] self._format_basic_props(root)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1820, in _format_basic_props
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] root.append(self.numatune.format_dom())
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1714, in format_dom
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] for node in self.memnodes:
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] TypeError: 'NoneType' object is not iterable
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2]
2015-02-09 03:37:03.194 AUDIT nova.compute.manager [req-81824176-50df-4d40-8834-d5af10268538 admin admin] [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Terminating instance
deployment info:
stack@openstack:~$ $ virsh version
Compiled against library: libvirt 1.2.2
Using library: libvirt 1.2.2
Using API: QEMU 1.2.2
Running hypervisor: QEMU 2.0.0
** Affects: nova
Importance: Undecided
Assignee: Rui Chen (kiwik-chenrui)
Status: New
** Tags: libvirt
** Description changed:
Booting a dedicated cpu instance is failed in libvirt 1.2.2.
- I think if the libvirt version is not enough, just ignore the memnodes parameter instead of throwing NoveType error.
+ I think if the libvirt version is not enough, just ignore the memnodes parameter instead of throwing NoneType error.
2015-02-09 03:37:03.193 19160 ERROR nova.compute.manager [-] [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Instance failed to spawn
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Traceback (most recent call last):
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/compute/manager.py", line 2320, in _build_resources
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] yield resources
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/compute/manager.py", line 2190, in _build_and_run_instance
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] flavor=flavor)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2333, in spawn
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] flavor=flavor)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4066, in _get_guest_xml
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] xml = conf.to_xml()
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 79, in to_xml
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] root = self.format_dom()
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1891, in format_dom
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] self._format_basic_props(root)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1820, in _format_basic_props
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] root.append(self.numatune.format_dom())
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1714, in format_dom
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] for node in self.memnodes:
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] TypeError: 'NoneType' object is not iterable
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2]
2015-02-09 03:37:03.194 AUDIT nova.compute.manager [req-81824176-50df-4d40-8834-d5af10268538 admin admin] [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Terminating instance
deployment info:
stack@openstack:~$ $ virsh version
Compiled against library: libvirt 1.2.2
Using library: libvirt 1.2.2
Using API: QEMU 1.2.2
Running hypervisor: QEMU 2.0.0
** Changed in: nova
Assignee: (unassigned) => Rui Chen (kiwik-chenrui)
--
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/1419677
Title:
NoneType Error was raised when booting a dedicated cpu instance on
libvirt1.2.2
Status in OpenStack Compute (Nova):
New
Bug description:
Booting a dedicated cpu instance is failed in libvirt 1.2.2.
I think if the libvirt version is not enough, just ignore the memnodes parameter instead of throwing NoneType error.
2015-02-09 03:37:03.193 19160 ERROR nova.compute.manager [-] [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Instance failed to spawn
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Traceback (most recent call last):
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/compute/manager.py", line 2320, in _build_resources
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] yield resources
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/compute/manager.py", line 2190, in _build_and_run_instance
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] flavor=flavor)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2333, in spawn
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] flavor=flavor)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4066, in _get_guest_xml
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] xml = conf.to_xml()
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 79, in to_xml
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] root = self.format_dom()
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1891, in format_dom
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] self._format_basic_props(root)
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1820, in _format_basic_props
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] root.append(self.numatune.format_dom())
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] File "/opt/stack/nova/nova/virt/libvirt/config.py", line 1714, in format_dom
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] for node in self.memnodes:
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] TypeError: 'NoneType' object is not iterable
2015-02-09 03:37:03.193 19160 TRACE nova.compute.manager [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2]
2015-02-09 03:37:03.194 AUDIT nova.compute.manager [req-81824176-50df-4d40-8834-d5af10268538 admin admin] [instance: c9de6f64-b75f-44ef-9b72-e27b9af180a2] Terminating instance
deployment info:
stack@openstack:~$ $ virsh version
Compiled against library: libvirt 1.2.2
Using library: libvirt 1.2.2
Using API: QEMU 1.2.2
Running hypervisor: QEMU 2.0.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1419677/+subscriptions
Follow ups
References