Reviewed:  https://review.openstack.org/291067
Committed: 
https://git.openstack.org/cgit/openstack/glance/commit/?id=5366568be000729ee6df619ffc11e73d3c3da3c7
Submitter: Jenkins
Branch:    master

commit 5366568be000729ee6df619ffc11e73d3c3da3c7
Author: Danny Al-Gaaf <[email protected]>
Date:   Thu Mar 10 10:04:49 2016 +0100

    Catch exceptions.HasSnapshot() from delete image in rbd driver
    
    In case an image still has a snapshot the RBD driver can't
    delete the image and raises exceptions.HasSnapshot(). Catch
    this exception and raise HTTPConflict.
    
    Closes-Bug: #1555476
    
    Change-Id: I8c8d92ed58995d0632bf156ccd599904e0d1d1dc
    Signed-off-by: Danny Al-Gaaf <[email protected]>


** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1555476

Title:
  image delete() doesn't catch exceptions.HasSnapshot() from rbd driver

Status in Glance:
  Fix Released
Status in Glance mitaka series:
  Fix Released

Bug description:
  The glance_store driver raises a exceptions.HasSnapshot() if a image
  can't be deleted because it has a snapshot. This exception is ignored
  in glance/glance/api/v2/images.py. The code should raise at least a
  HTTPConflict and print a useful error message to the user.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1555476/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to