Incorrect Error Code during Create server with another tenant's image

Bug #1064552 reported by Rohit Karajgi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Nova returns 400 Bad Request instead of a 404 Not Found when a user attempts to create an instance
while passing an image created in another tenant.

Steps to reproduce:
1. User1 of Tenant1 creates an image for his tenant.
2. User 2 of Tenant2 tries to create a server and passes the image ID from Step1.

Expected Response error code:
404 NotFound

Actual Response error code:
400 Bad Request
"badRequest": {
"message": "Can not find requested image",
"code": 400
}
}

It seems this was fixed earlier, and Nova did return 404 NotFound. However on the recent master,
it returns 400 Bad Request.

Refer https://bugs.launchpad.net/tempest/+bug/1039608

Tags: ntt
tags: added: ntt
Revision history for this message
Rohit Karajgi (rohitk) wrote :

Invalidating as per comments #5 in bug 1039608

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.