yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88489
[Bug 1964995] [NEW] [yoga][regression] network capabilities in extra info are overridden if vpd is present for a PCI device
Public bug reported:
VPD capability handling was added in
https://opendev.org/openstack/nova/commit/ab49f97b2c08294234c7bfd3dedb75780ca519e6
and now does a device dict update as follows
https://opendev.org/openstack/nova/src/commit/dde15d9c475c8ef709578310d304c9d8ecb9d493/nova/virt/libvirt/host.py#L1428
device.update(_get_device_capabilities(device, dev, net_devs))
device.update(_get_vpd_details(device, dev, pci_devs))
Which results in, for example, this content in the capabilities field:
'capabilities': {'vpd': {'card_serial_number': 'testserial'}},
instead of this
'capabilities': {'network': ['rx',
'tx',
'sg',
'tso',
'gso',
'gro',
'rxvlan',
'txvlan'],
'vpd': {'card_serial_number': 'testserial'}}
This is a regression from the earlier behavior, however, current unit
and functional tests do not cover this.
** Affects: nova
Importance: Undecided
Status: New
--
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/1964995
Title:
[yoga][regression] network capabilities in extra info are overridden
if vpd is present for a PCI device
Status in OpenStack Compute (nova):
New
Bug description:
VPD capability handling was added in
https://opendev.org/openstack/nova/commit/ab49f97b2c08294234c7bfd3dedb75780ca519e6
and now does a device dict update as follows
https://opendev.org/openstack/nova/src/commit/dde15d9c475c8ef709578310d304c9d8ecb9d493/nova/virt/libvirt/host.py#L1428
device.update(_get_device_capabilities(device, dev, net_devs))
device.update(_get_vpd_details(device, dev, pci_devs))
Which results in, for example, this content in the capabilities field:
'capabilities': {'vpd': {'card_serial_number': 'testserial'}},
instead of this
'capabilities': {'network': ['rx',
'tx',
'sg',
'tso',
'gso',
'gro',
'rxvlan',
'txvlan'],
'vpd': {'card_serial_number': 'testserial'}}
This is a regression from the earlier behavior, however, current unit
and functional tests do not cover this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1964995/+subscriptions
Follow ups