Incorrect Error Code during Create server with another tenant's image
Bug #1064552 reported by
Rohit Karajgi
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.
Invalidating as per comments #5 in bug 1039608