Activity log for bug #1998083

Date Who What changed Old value New value Message
2022-11-28 08:53:26 Hemant Sonawane bug added bug
2022-11-28 10:43:45 Cedric Hnyda bug added subscriber Cedric Hnyda
2022-11-28 17:57:11 Hemant Sonawane 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-8fc8-4d2b-a738-d05deb20049f | 67ea3a39-78b8-4d04-a280-166acdc90b8a | nfv1compute43.nfv1.o2.cz | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | attached | {"platform": "x86_64", "os_type": "linux│· ", "ip": "10.42.168.87", "host": "nfv1compute43.nfv1.o2.cz", "multipath": false, "do_local_attach": false, "system uuid": "65917e4f-c8c4-a2af-ec11-fe353e13f4dd", "mountpoint": "/dev/vda"} | │· | d3278543-4920-42b7-b217-0858e986fcce | 67ea3a39-78b8-4d04-a280-166acdc90b8a | NULL | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | reserved | NULL │· | │· +--------------------------------------+--------------------------------------+--------------------------+--------------------------------------+---------------+-----------------------------------------│· --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ │· 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:/home/hemant# cinder --os-volume-api-version 3.27 attachment-list --all | grep 67ea3a39-78b8-4d04-a280-166acdc90b8a │· | 8daddacc-8fc8-4d2b-a738-d05deb20049f | 67ea3a39-78b8-4d04-a280-166acdc90b8a | attached | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | │· | d3278543-4920-42b7-b217-0858e986fcce | 67ea3a39-78b8-4d04-a280-166acdc90b8a | reserved | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | cinder --os-volume-api-version 3.27 attachment-delete 8daddacc-8fc8-4d2b-a738-d05deb20049f I could only gather logs from nova-compute nova-compute logs: cinderclient.exceptions.ClientException: Unable to update attachment.(Invalid volume: duplicate connectors detected on volume 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 ? 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-8fc8-4d2b-a738-d05deb20049f | 67ea3a39-78b8-4d04-a280-166acdc90b8a | nfv1compute43 | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | attached | {"platform": "x86_64", "os_type": "linux│· ", "ip": "10.42.168.87", "host": "nfv1compute43", "multipath": false, "do_local_attach": false, "system uuid": "65917e4f-c8c4-a2af-ec11-fe353e13f4dd", "mountpoint": "/dev/vda"} | │· | d3278543-4920-42b7-b217-0858e986fcce | 67ea3a39-78b8-4d04-a280-166acdc90b8a | NULL | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | reserved | NULL │·                                                                                                                                                                                             | │· +--------------------------------------+--------------------------------------+--------------------------+--------------------------------------+---------------+-----------------------------------------│· --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ │· 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:/home/hemant# cinder --os-volume-api-version 3.27 attachment-list --all | grep 67ea3a39-78b8-4d04-a280-166acdc90b8a │· | 8daddacc-8fc8-4d2b-a738-d05deb20049f | 67ea3a39-78b8-4d04-a280-166acdc90b8a | attached | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | │· | d3278543-4920-42b7-b217-0858e986fcce | 67ea3a39-78b8-4d04-a280-166acdc90b8a | reserved | 9266a2d7-9721-4994-a6b5-6b3290862dc6 | cinder --os-volume-api-version 3.27 attachment-delete 8daddacc-8fc8-4d2b-a738-d05deb20049f I could only gather logs from nova-compute nova-compute logs: cinderclient.exceptions.ClientException: Unable to update attachment.(Invalid volume: duplicate connectors detected on volume 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 ?
2022-11-29 14:22:56 Sofia Enriquez nominated for series cinder/wallaby
2022-11-29 14:22:56 Sofia Enriquez bug task added cinder/wallaby
2022-11-29 14:23:17 Sofia Enriquez tags horizon
2022-11-29 14:23:24 Sofia Enriquez cinder: importance Undecided Medium
2022-11-29 14:23:28 Sofia Enriquez cinder/wallaby: importance Undecided Medium
2022-11-29 15:00:34 Hemant Sonawane bug watch added https://bugzilla.redhat.com/show_bug.cgi?id=1941054
2022-12-07 11:47:21 Sofia Enriquez affects cinder nova
2022-12-07 11:47:44 Sofia Enriquez bug task deleted cinder/wallaby
2022-12-07 15:08:52 Sofia Enriquez bug added subscriber Sofia Enriquez
2023-02-28 14:36:47 Uggla nova: status New Incomplete
2023-03-10 08:18:31 Joao bug added subscriber Joao