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: Ib74f7eafbb04ab893039b480a7d3eaa15e7d59d1
Closes-Bug: #1449639
(cherry picked from commit 751f9ae444d25f9beaffee2796095102f884fe8d)
Reviewed: https:/ /review. openstack. org/199114 /git.openstack. org/cgit/ openstack/ glance_ store/commit/ ?id=b4fde60603e ab71a5eaf4ce1de ef6c37a9bb776a
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit b4fde60603eab71 a5eaf4ce1deef6c 37a9bb776a
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 beaffee27960951 02f884fe8d)
Closes-Bug: #1449639
(cherry picked from commit 751f9ae444d25f9