Volume temporary resources not deleted with Volume Glance Plugin protect

Bug #1818579 reported by Mohamed El Gindi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Karbor
In Progress
Undecided
Unassigned

Bug Description

When doing volume backup, the following temporary resources are created in the given order before uploading to swift:

1. volume snapshot
2. temporary volume from snapshot
3. temporary image from volume

The code tries to delete in the same order, instead of the reverse order, which cause some resources to fail deleting (temporary image and temporary snapshot)

https://github.com/openstack/karbor/blob/master/karbor/services/protection/protection_plugins/volume/volume_glance_plugin.py#L286

How to reproduce:
1. Ensure provider uses volume glance plugin
2. Create volume
3. Create plan and checkpoint

Temporary image and volume snapshot will still remain. Only temp volume will be deleted. Can inspect with:
`openstack volume list`, `openstack volume snapshot list`, `openstack image list`

Mohamed El Gindi (gindi)
Changed in karbor:
assignee: nobody → Mohamed El Gindi (gindi)
status: New → In Progress
Revision history for this message
Mohamed El Gindi (gindi) wrote :
Revision history for this message
Srinivasa Reddy (srinivasareddym) wrote :

I'm also hitting the same issue and https://review.openstack.org/#/c/641162 fix's that issue

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on karbor (master)

Change abandoned by "Ghanshyam <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/karbor/+/641162
Reason: karbor is retired now http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018643.html

Mohamed El Gindi (gindi)
Changed in karbor:
assignee: Mohamed El Gindi (gindi) → nobody
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.