500 error returned from server GET by numeric id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Sean Dague |
Bug Description
When a request is made for example:
GET http://
and there exists an instance in the database with id primary key of 1, a 500 error is returned to the user. This was noticed during investigation of an issue [1] in novaclient. The scenario happens if a user names their instance as "1" and there exists an instance with id 1 in the database, and they do 'nova show 1'. This traces [2] in nova-api.log.
All of the code in nova api assumes it's receiving an instance uuid from the client, so even though it retrieves an instance from the database by numeric id, it fails at the api caching layer (i.e. cache_db_instance) because it adds the cache entry by uuid. When another extension tries to retrieve the instance from the cache by numeric id, it returns None.
[1] https:/
[2] http://
Changed in nova: | |
assignee: | nobody → Sriteja (sriteja-alapati) |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | Zhihai Song (szhsong) → Sean Dague (sdague) |
This is a 500 error, we really should address this before Mitaka.