Deleting a volume in 'downloading' state should cancel the download and clean up

Bug #1441202 reported by Duncan Thomas
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Wishlist
Tushar Trambak Gite

Bug Description

Creating a volume from an image can take a long time, if a user changes their mind they should be able to delete the volume and have the download cancel and clean up.

Revision history for this message
John Griffith (john-griffith) wrote :

Seems like a good add, wishlist for sure.

Changed in cinder:
assignee: nobody → Bharat Kumar Kobagana (bharat-kobagana)
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Automatically unassigning due to inactivity.

Changed in cinder:
assignee: Bharat Kumar Kobagana (bharat-kobagana) → nobody
Mannu (mannu-ray)
Changed in cinder:
assignee: nobody → Mannu (mannu-ray)
Revision history for this message
Mannu (mannu-ray) wrote :

there are two solution that may be taken for this,

1. when the volume is in downloading state, we will have to get reference of the downloding
process cancel it and do the clean up.
this process have ovbious drawback of getting the refrernce of the downloading process, the driver
must have a interface for canceling the the download, which may lead to changes in all the drive.

2. while delete if the vloume in downloading process. we may change the status to 'aborted'
and once when the download get completed, it will go ahead with the clean up process.

though it will take more time it will be simpler to implement with minimal changes,

I will be implementing approach 2.

Mannu (mannu-ray)
Changed in cinder:
status: New → In Progress
Changed in cinder:
assignee: Mannu (mannu-ray) → nobody
Changed in cinder:
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/826607

Changed in cinder:
status: New → In Progress
Changed in cinder:
assignee: nobody → Tushar Trambak Gite (tushargite96)
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.