RBD: On image creation error, image is not deleted

Bug #1449639 reported by Gorka Eguileor
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Unassigned
Icehouse
Fix Released
Undecided
Unassigned
glance_store
Fix Released
Medium
Gorka Eguileor
Kilo
Fix Released
Medium
Gorka Eguileor

Bug Description

When an exception rises while adding/creating an image, and the image has been created, this new image is not properly deleted.

The fault lies in the `_delete_image` call of the Store.add method that is providing incorrect arguments.

This also affects Glance (Icehouse), since back then glance_store functionality was included there.

Gorka Eguileor (gorka)
Changed in glance-store:
assignee: nobody → Gorka Eguileor (gorka)
Gorka Eguileor (gorka)
description: updated
Changed in glance:
assignee: nobody → Gorka Eguileor (gorka)
Gorka Eguileor (gorka)
Changed in glance-store:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance_store (master)

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

Changed in glance:
status: New → In Progress
Gorka Eguileor (gorka)
Changed in glance:
assignee: Gorka Eguileor (gorka) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/178288

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

Reviewed: https://review.openstack.org/178272
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=751f9ae444d25f9beaffee2796095102f884fe8d
Submitter: Jenkins
Branch: master

commit 751f9ae444d25f9beaffee2796095102f884fe8d
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: Ib74f7eafbb04ab893039b480a7d3eaa15e7d59d1
    Closes-Bug: #1449639

Changed in glance:
status: In Progress → Fix Committed
Changed in glance-store:
milestone: none → 0.5.0
importance: Undecided → Medium
Changed in glance-store:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/icehouse)

Reviewed: https://review.openstack.org/178288
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=f66170d59121e12973ca3b064c9bff34c697a576
Submitter: Jenkins
Branch: stable/icehouse

commit f66170d59121e12973ca3b064c9bff34c697a576
Author: Gorka Eguileor <email address hidden>
Date: Tue Apr 28 18:55:28 2015 +0200

    Fix Icehouse 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.be

    Fault lies in incorrect call to Store._delete_image method, as it is
    called with the wrong arguments.

    Change-Id: I4fab5b507d5b9d165cdc3a5bb24458b56d6fdebd
    Closes-Bug: #1449639

tags: added: in-stable-icehouse
Changed in glance:
importance: Undecided → Medium
Changed in glance:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance_store (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/199114

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance_store (stable/kilo)

Reviewed: https://review.openstack.org/199114
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=b4fde60603eab71a5eaf4ce1deef6c37a9bb776a
Submitter: Jenkins
Branch: stable/kilo

commit b4fde60603eab71a5eaf4ce1deef6c37a9bb776a
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: Ib74f7eafbb04ab893039b480a7d3eaa15e7d59d1
    Closes-Bug: #1449639
    (cherry picked from commit 751f9ae444d25f9beaffee2796095102f884fe8d)

Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-1 → 11.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.