While testing the procedure to create a new ToolsDB replica I encountered a problem where a Cinder snapshot cannot be deleted.
I created tools-db-2-snap, created a Cinder volume from it, then deleted that volume, and tried to delete the snapshot.
I tried both from Horizon and from the CLI:
sudo wmcs-openstack volume snapshot delete f46d30ca-e655-4892-91da-473ccb60bfd4
In both cases, nothing happens, and the snapshot remains in status "available", both according to the Openstack CLI and to the rbd CLI:
root@cloudcontrol1005:~# wmcs-openstack volume snapshot show f46d30ca-e655-4892-91da-473ccb60bfd4 +--------------------------------------------+--------------------------------------+ | Field | Value | +--------------------------------------------+--------------------------------------+ | created_at | 2024-02-06T13:17:12.000000 | | description | T344717 | | group_snapshot_id | None | | id | f46d30ca-e655-4892-91da-473ccb60bfd4 | | name | tools-db-2-snap | | os-extended-snapshot-attributes:progress | 100% | | os-extended-snapshot-attributes:project_id | tools | | properties | | | size | 4000 | | status | available | | updated_at | 2024-02-07T17:08:28.000000 | | user_id | fnegri | | volume_id | e25dae8a-803a-4b62-aa0c-bdf6ff481869 | +--------------------------------------------+--------------------------------------+
root@cloudcontrol1005:~# rbd snap ls eqiad1-cinder/volume-e25dae8a-803a-4b62-aa0c-bdf6ff481869 SNAPID NAME SIZE PROTECTED TIMESTAMP 77954 2024-02-05T09:36:47_cloudbackup2002 3.9 TiB Mon Feb 5 09:36:54 2024 78436 snapshot-f46d30ca-e655-4892-91da-473ccb60bfd4 3.9 TiB yes Tue Feb 6 13:17:13 2024
Note that RBD indicates the snapshot is protected, because it was used to create a child volume, but that child volume is now gone.
root@cloudcontrol1005:~# rbd children eqiad1-cinder/volume-e25dae8a-803a-4b62-aa0c-bdf6ff481869@snapshot-f46d30ca-e655-4892-91da-473ccb60bfd4 # empty output