When an exception rises on RBD store while adding/creating an image, and
the image has already been created, this new image is not properly
deleted as it should be.
Fault lies in incorrect call to Store._delete_image method, as it is
called with the wrong arguments.
Reviewed: https:/ /review. openstack. org/178272 /git.openstack. org/cgit/ openstack/ glance_ store/commit/ ?id=751f9ae444d 25f9beaffee2796 095102f884fe8d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 751f9ae444d25f9 beaffee27960951 02f884fe8d
Author: Gorka Eguileor <email address hidden>
Date: Tue Apr 28 18:10:38 2015 +0200
Fix RBD delete image on creation failure
When an exception rises on RBD store while adding/creating an image, and
the image has already been created, this new image is not properly
deleted as it should be.
Fault lies in incorrect call to Store._delete_image method, as it is
called with the wrong arguments.
Change-Id: Ib74f7eafbb04ab 893039b480a7d3e aa15e7d59d1
Closes-Bug: #1449639