[v2] Duplicate image id return 500 instead of 409
Bug #1366503 reported by
Feilong Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Feilong Wang |
Bug Description
Duplicate image id will return HTTP 500 error instead of 409 in Glance V2 API, see https:/
Changed in glance: | |
importance: | Undecided → Medium |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in glance: | |
status: | New → Triaged |
Changed in glance: | |
importance: | High → Medium |
Changed in glance: | |
milestone: | none → juno-rc1 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | juno-rc1 → 2014.2 |
To post a comment you must log in.
After investigation, I think there are two bugs about this. The first one is we're using **id** in image schema but using **image_id** in new_image and most of the functions. It will cause a key error since the id can't recognized. I will open another bug to track this. The second bug is the image id duplicate exception is not catched in https:/ /github. com/openstack/ glance/ blob/master/ glance/ api/v2/ images. py#L59