← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1839009] Re: os-server-external-events does not behave correctly for failed single events

 

*** This bug is a duplicate of bug 1855752 ***
    https://bugs.launchpad.net/bugs/1855752

Sorry, I didn't know about this bug when we opened 1855752. The issue
has been fixed under that bug.

** This bug has been marked a duplicate of bug 1855752
   Inappropriate HTTP error status from os-server-external-events

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

Title:
  os-server-external-events does not behave correctly for failed single
  events

Status in OpenStack Compute (nova):
  New

Bug description:
  The "os-server-external-events" API does not behave correctly when the
  request body contains a list of one event and if that event ends up in
  a non-200 state, i.e if the event ends up in either 400 or 404 or 422
  states, the function executes all the way to L147
  (https://github.com/openstack/nova/blob/433b1662e48db57aaa42e11756fa4a6d8722b386/nova/api/openstack/compute/server_external_events.py#L147)
  and overall returns a 404 HTTP response without any body. This is
  wrong since as per the documentation it should return the respective
  codes (422/404/400) to the client.

  Infact correctly speaking, if out of the list of provided events, if
  at least one of them doesn't get into the "accepted_events" list, rest
  of them are discarded without returning the correct response against
  each event.

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


References