create a volume with invalid snapshot should report 404 instead of 500

Bug #1444542 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
jichenjc

Bug Description

in v2.1 API, when create a volume through os-volumes
if the snapshot ID is invalid, we should report 404 , but now
exception.SnapshotNotFound is not correctly handled

Tags: api
Revision history for this message
jichenjc (jichenjc) wrote :

this was raised by Feodor Tersin at
https://review.openstack.org/#/c/165244/

Changed in nova:
assignee: nobody → jichenjc (jichenjc)
jichenjc (jichenjc)
Changed in nova:
importance: Undecided → Low
Changed in nova:
status: New → In Progress
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/173965
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1e163aca281ec27e70ef987c504a24052a9f8807
Submitter: Jenkins
Branch: master

commit 1e163aca281ec27e70ef987c504a24052a9f8807
Author: jichenjc <email address hidden>
Date: Fri Apr 10 19:49:47 2015 +0800

    Catch SnapshotNotFound exception at os-volumes

    When create a volume ,nova allow user input a snapshot id,
    it will get the snapshot according to the ID. We
    didn't handle exception.SnapshotNotFound thrown from
    cinder layer.

    Change-Id: Icb1708d12dabb82ccba89edcf0f5edbd1a1c82ee
    Closes-Bug: 1444542

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-1 → 12.0.0
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.