← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1298771] [NEW] GET /​{tenant_id}​/servers/​{server_id}​ should return 400 on invalid server_id but returns 404

 

Public bug reported:

Currently,

Call to GET /${tenant_id}/servers/${server_id} validates the server_id
(uuid_like/int_like) and if found invalid, returns a 404 with ''Instance
could not be found'' message.

On invalid server_id, it should return 400 (Bad Request) with the
message like "Invalid server_id"

more info:
ref: https://review.openstack.org/#/c/72637/13/nova/compute/api.py

** Affects: nova
     Importance: Undecided
     Assignee: Venkatesh Sampath (venkateshsampath)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Venkatesh Sampath (venkateshsampath)

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

Title:
  GET /​{tenant_id}​/servers/​{server_id}​ should return 400 on invalid
  server_id but returns 404

Status in OpenStack Compute (Nova):
  New

Bug description:
  Currently,

  Call to GET /${tenant_id}/servers/${server_id} validates the server_id
  (uuid_like/int_like) and if found invalid, returns a 404 with
  ''Instance could not be found'' message.

  On invalid server_id, it should return 400 (Bad Request) with the
  message like "Invalid server_id"

  more info:
  ref: https://review.openstack.org/#/c/72637/13/nova/compute/api.py

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


Follow ups

References