Skip to content

Deleting iSCSI volumes using Openstack Driver fails if one or more Truenas initiated snapshots exist #24

@Peter-Mag

Description

@Peter-Mag

Openstack Ussuri and Truenas 11.3-U5

Scenario: If you create an iSCSI volume in Openstack using the iXSystems Cinder drivers, the volume gets created as expected. If you want to delete that volume at some point, it will fail if you have snapshots in Truenas that still contains a reference/copy/snap to the ZVOL that was created for this iSCSI endpoint. The disk in Openstack will proceed into an ERROR state, unable to delete it. Only if and after you have deleted all snapshots that contain the ZVOL reference on the Truenas, will you be able to recover from the disk deletion failure (change disk state - logged in as an admin - to 'Available') and redo the deletion. It will now finish the deletion successfully.
I have yet to try how this works out if Openstack is the one maintaining the snapshots.
Snapshots no longer seem a way to recover from a deleted disk when using iSCSI based Cinder volumes.

Expected behavior: at least a warning or message stating that deletion is not possible due to snapshots being present, although error reporting in Openstack is not mature (yet). A more preferred behavior would be that the deletion would complete successfully and keeping the snapshots for recovery later on, in case a user made a mistake. But my knowledge is limited as to the implications of each behavior.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions