glance image service not converting exceptions properly

Bug #1039675 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Chris Behrens

Bug Description

glance image service is not checking all exceptions properly. HTTPNotFound can be raised from glanceclient, and that slips through...

Chris Behrens (cbehrens)
Changed in nova:
importance: Undecided → Medium
assignee: nobody → Chris Behrens (cbehrens)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/11734

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/11734
Committed: http://github.com/openstack/nova/commit/3c73cbf550ebb3d3b0869f4ebd3870530c92f721
Submitter: Jenkins
Branch: master

commit 3c73cbf550ebb3d3b0869f4ebd3870530c92f721
Author: Chris Behrens <email address hidden>
Date: Tue Aug 21 18:28:59 2012 +0000

    Make glance image service check base exception classes

    Fixes bug 1039675

    glanceclient can raise HTTPNotFound (as well as NotFound) it appears,
    but glance image service is only converting NotFound ->
    InstanceNotFound. Same applies to 'Forbidden' and other exceptions.

    This patch converts 'exc_type is NotFound'-like checks to use
    'isinstance' instead, which will cover HTTPNotFound, etc.

    Change-Id: I0982875e667121cee3da3cfe0124499cad484fa6

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