yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95369
[Bug 2099663] [NEW] Failure spawning VMs with hw:maxphysaddr_mode passthrough
Public bug reported:
Description
===========
When creating a flavor with `hw:maxphysaddr_mode='passthrough'`, spawning a VM with that flavor fails in our env.
Steps to reproduce
==================
* set `hw:maxphysaddr_mode='passthrough' on a flavor's extra_specs
* spawn a VM with that flavor
Expected result
===============
VM spawns.
Actual result
=============
We found an exception in the logs.
Environment
===========
We're running Nova 2023.2 (bobcat) with the libvirt + KVM hypervisor.
Logs & Configs
==============
```
File "/var/lib/openstack/lib/python3.10/site-packages/nova/virt/libvirt/config.py", line 792, in parse_dom
self.bits = int(xmldoc.get("bits"))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
```
Side note: Setting `hw:maxphysaddr_bits` doesn't work with mode `passthrough`, so this is not a workaround:
> CPU maximum physical address bits number specification cannot be used with mode='passthrough'
** Affects: nova
Importance: Undecided
Status: In Progress
--
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/2099663
Title:
Failure spawning VMs with hw:maxphysaddr_mode passthrough
Status in OpenStack Compute (nova):
In Progress
Bug description:
Description
===========
When creating a flavor with `hw:maxphysaddr_mode='passthrough'`, spawning a VM with that flavor fails in our env.
Steps to reproduce
==================
* set `hw:maxphysaddr_mode='passthrough' on a flavor's extra_specs
* spawn a VM with that flavor
Expected result
===============
VM spawns.
Actual result
=============
We found an exception in the logs.
Environment
===========
We're running Nova 2023.2 (bobcat) with the libvirt + KVM hypervisor.
Logs & Configs
==============
```
File "/var/lib/openstack/lib/python3.10/site-packages/nova/virt/libvirt/config.py", line 792, in parse_dom
self.bits = int(xmldoc.get("bits"))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
```
Side note: Setting `hw:maxphysaddr_bits` doesn't work with mode `passthrough`, so this is not a workaround:
> CPU maximum physical address bits number specification cannot be used with mode='passthrough'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2099663/+subscriptions
Follow ups