Volume types associated with cinder volumes getting deleted.
Bug #1174268 reported by
Shanthakumar K
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have created the volume type of name "LVM" and associated the same with one volume_backend_name = LVM_iSCSI.
I have created the volume with volume type with lvm and its listed with "cinder volumes"
When I try to delete the volume type of LVm which is associated with one of the cinder volumes getting deleted without any warnings and cinder list shows the volume with "volume type -id"
Bug can be reproduce able:
1. create a volume type
2.Associated the volume backend with volumetype
3.create the volume with above create volume type
4. delete the volume type created above
To post a comment you must log in.
I'm not sure what you expected the behavior to be here? I admit it does seem a bit odd that we replace the name with the UUID when you delete it (TBH the type should be set as uuid to begin with IMO).
However the type is in fact deleted as is shown by the type-list and also can be seen by investigating the database (deleted is set to 1).
I guess you're suggesting that we shouldn't be able to delete a volume-type when a volume of that type exists? I'm not sure I have a problem with that given that the volume_type create/delete is an admin command and they may wish to discontinue use of said type for some reason.