Volume can be deleted during downloading

Bug #1973228 reported by Hironori Shiina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Medium
Unassigned

Bug Description

A volume can be attached to an instance when the instance is created while an image is being downloaded to the volume. If the instance creation is canceled by deleting the instance, the volume is detached and gets into 'available' status even if downloading is not completed. Then, the volume accepts delete API. If a volume is deleted while it is still connected for downloading, an expected error is caused in a backend.

Step to Reproduce:

1. Create a bootable volume from an image
   ($ openstack volume create --bootable --image ...)
2. Confirm its status becomes "downloading"
3. Create an instance with attaching the volume
4. Delete the instance while the instance is being created
5. Delete the volume soon

Tags: attach image
Changed in cinder:
importance: Undecided → Medium
tags: added: attach image
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/+/842237

Changed in cinder:
status: New → In Progress
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.