Temporary volume could be deleted with force
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Low
|
Unassigned |
Bug Description
A temporary volume is created when an attached volume is backed up. This temporary volume can be deleted by DELETE API with `force`.
This is a similar issue to bug 1970768[1], which was fixed. There is still a possibility of the similar issue because `force delete` ignores volume status.
[1] https:/
Steps to reproduce:
1. Create a volume:
$ openstack volume create --size=20 myvolume
2. Attach the volume to a server:
$ openstack server add volume myvolume myserver --device /dev/vdb
3. Backup the volume:
$ openstack volume backup create myvolume --force
4. List volumes during backing up and find a temporary volume:
$ openstack volume list
+---
| ID | Name | Status | Size | Attached to |
+---
| 287b0cee-
| c146c1fc-
+---
5. Delete the temporary volume with the `--force` option:
$ openstack volume delete --force backup-
Changed in cinder: | |
importance: | Undecided → Low |
tags: | added: backup-service temporary-volume |
Changed in cinder: | |
status: | New → In Progress |
Fix proposed to master https:/ /review. opendev. org/c/openstack /cinder/ +/830901