Volume can be deleted during downloading
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
Changed in cinder: | |
importance: | Undecided → Medium |
tags: | added: attach image |
Fix proposed to branch: master /review. opendev. org/c/openstack /cinder/ +/842237
Review: https:/