← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1818701] Re: invalid PCI alias in flavor results in HTTP 500 on instance create

 

Reviewed:  https://review.openstack.org/641082
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=cb5ad6d3c14caccfc2b222dc5d2f1f6c5e05da9c
Submitter: Zuul
Branch:    master

commit cb5ad6d3c14caccfc2b222dc5d2f1f6c5e05da9c
Author: Chris Friesen <chris.friesen@xxxxxxxxxxxxx>
Date:   Tue Mar 5 09:53:37 2019 -0600

    Handle missing exception in instance creation code
    
    In the instance creation code path it's possible for the PciInvalidAlias
    exception to be raised if the flavor extra-specs have an invalid PCI
    alias.  This should be converted to HTTPBadRequest along with the other
    exceptions stemming from invalid extra-specs.
    
    Without this, it gets reported as an HTTP 500 error.
    
    Change-Id: Ia6921b5cd9253f65ff6904bdbce942759633de95
    Closes-Bug: #1818701
    Signed-off-by: Chris Friesen <chris.friesen@xxxxxxxxxxxxx>


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1818701

Title:
  invalid PCI alias in flavor results in HTTP 500 on instance create

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) pike series:
  Confirmed
Status in OpenStack Compute (nova) queens series:
  Confirmed
Status in OpenStack Compute (nova) rocky series:
  Confirmed

Bug description:
  If an invalid PCI alias is specified in the flavor extra-specs and we
  try to create an instance with that flavor, it will result in a
  PciInvalidAlias exception being raised.

  In ServersController.create() PciInvalidAlias is missing from the list
  of exceptions that get converted to an HTTPBadRequest.  Instead, it's
  reported as a 500 error:

  [stack@fedora-1 nova]$ nova boot --flavor  ds2G --image fedora29 --nic none --admin-pass fedora asdf3
  ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'nova.exception.PciInvalidAlias'> (HTTP 500) (Request-ID: req-fec3face-4135-41fd-bc48-07957363ddae)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1818701/+subscriptions


References