Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix configurable pci bus slots for PCI passthrough vnics #10

Conversation

steven-webster
Copy link
Contributor

Commit 7020c70 ported an internal commit for allowing configurable
PCI bus slots for vnics, but did not include a subsequent internal
commit that removed the modifications to _guest_add_pci_devices.

As such, the commit relies on an obsolete PciDevice object, which
causes an exception to occur in stx-nova for any instance trying
to boot with PCI passthrough vnics.

In fact, we can return _guest_add_pci_devices to it's upstream
signature and behaviour, as the configurable address is set in
the general _get_guest_config function.

Testing:

  • Launched instances with PCI passthrough vnics. Ensured
    vif PCI address could be set via the boot command.
  • Tox

Story: 2002877
Task: 22839

Closes-Bug: #1796952
Closes-Bug: #1796198

Commit 7020c70 ported an internal commit for allowing configurable
PCI bus slots for vnics, but did not include a subsequent internal
commit that removed the modifications to _guest_add_pci_devices.

As such, the commit relies on an obsolete PciDevice object, which
causes an exception to occur in stx-nova for any instance trying
to boot with PCI passthrough vnics.

In fact, we can return _guest_add_pci_devices to it's upstream
signature and behaviour, as the configurable address is set in
the general _get_guest_config function.

Testing:

- Launched instances with PCI passthrough vnics. Ensured
vif PCI address could be set via the boot command.
- Tox

Story: 2002877
Task: 22839

Closes-Bug: #1796952
Closes-Bug: #1796198
@dtroyer
Copy link

dtroyer commented Oct 11, 2018

LGTM

@brent-rowsell brent-rowsell merged commit 47bf8fc into starlingx-staging:master Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants