← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1368597] [NEW] Wrong status code in @wsgi.response decorator in server's `confirmResize` action

 

Public bug reported:

In server`s action `confirmResize` status code in @wsgi.response
decorator is set as 202 but this is overridden/ignored by return
statement (return exc.HTTPNoContent()) which return 204 status code  -
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L1080

This is very confusing and we should have expected status code in
@wsgi.response decorator as consistence with other APIs.

There is no change required in API return status code but in code it
should be fixed to avoid the confusion.

** Affects: nova
     Importance: Undecided
     Assignee: Ghanshyam Mann (ghanshyammann)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Ghanshyam Mann (ghanshyammann)

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

Title:
  Wrong status code in @wsgi.response decorator in server's
  `confirmResize` action

Status in OpenStack Compute (Nova):
  New

Bug description:
  In server`s action `confirmResize` status code in @wsgi.response
  decorator is set as 202 but this is overridden/ignored by return
  statement (return exc.HTTPNoContent()) which return 204 status code  -
  https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L1080

  This is very confusing and we should have expected status code in
  @wsgi.response decorator as consistence with other APIs.

  There is no change required in API return status code but in code it
  should be fixed to avoid the confusion.

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


Follow ups

References