← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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)

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: api

-- 
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):
  New

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


Follow ups