volume_attachement entries are not getting deleted from DB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Hello
I am using wallaby release openstack and having issues with cinder volumes as once I try to delete, resize or unshelve the shelved vms the volume_attachement entries do not get deleted in cinder db and therefore the above mentioned operations fail every time. I have to delete these volume_attachement entries manually to make it work.
For e.g I shelved some instance via openstack horizon to reproduce the same scenario.
Here are the detailed attachment entries you can see for the shelved instance.
+------
-------
| id | volume_id | attached_host | instance_uuid | attach_status | connector │·
+------
-------
| 8daddacc-
", "ip": "10.42.168.87", "host": "nfv1compute43", "multipath": false, "do_local_attach": false, "system uuid": "65917e4f-
| d3278543-
+------
-------
2 rows in set (0.00 sec)
If I would like to unshelve this instance it wont work as it has a duplicate entry in cinder db for the attachment. So i have to delete it manually from db or via cli.
root@master01:
| 8daddacc-
| d3278543-
cinder --os-volume-
I could only gather logs from nova-compute
nova-compute logs:
cinderclient.
This is the only choice I have if I would like to unshelve vm. But this is not a good approach for production env to delete duplicate volume attachments entries every time for every vm.
Is there any way to fix this issue ?
description: | updated |
tags: | added: horizon |
Changed in cinder: | |
importance: | Undecided → Medium |
Hi Hermant, hope this message finds you well.
From the output of the attachment it looks like the volume is attached to two different server IDs. Is the volume multi-attach to several instances?
Would you mind sharing the c-vol logs to see if there's any error on the cinder side?
Thanks
Regards,
Sofia