While backup depends on an encrypted volume type this type should not be removed

Bug #1882639 reported by Yao wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
Yao wang

Bug Description

While backup depends on an encrypted volume type this type should not be removed

How to reproduce:
- Create an encryption volume type
- Use this type to create an encryption volume
- Create a volume backup using from this encryption volume
- Delete the encryption volume
- Delete the encryption volume type
- Your backup cannot be used in any way

Suppose I have backed up an encrypted volume, If the encryption type is deleted while this backup exists, the backup will be permanently unusable, which is unreasonable.
I think it is necessary to check if there is a backup dependency before deleting the encryption type.

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/734427

Changed in cinder:
assignee: nobody → Yao wang (wangyao18322710251)
status: New → In Progress
Revision history for this message
Yao wang (wangyao18322710251) wrote :

Encryption volume type may be changed,so this code will not solve the problem https://review.opendev.org/734427

The only way I can think of is to iterate over all the base metadata of the Backup Driver. I can't understand why not add a volume_type_id field on table 'backups'.

Do you have any Suggestions?

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.