This issue is resolved in VMware Integrated OpenStack 3.0.x, available at VMware Downloads.
To work around this issue if you do not want to upgrade, detach or reset the volume to a volume state of Available. After deleting the snapshot, change the volume back to the in-use state.
Deleting the volume snapshot:
- Run this command to list volumes:
cinder list
You see output similar to:
$ cinder list
+--------------------------------------+---------+----------------+------+-------------+----------+--------------------------------------+
| ID | Status| Name | Size | Volume Type | Bootable | Attachedto |
+--------------------------------------+---------+----------------+------+-------------+-------------------------------------------------+
| ########-####-####-####-##########94 | in-use | Cirros-Sample | 1 | - | true | ########-####-####-####-##########9d |
- Run this command to reset volume state:
cinder reset-state --state available volume_id
You see output similar to:
cinder reset-state --state available ########-####-####-####-##########94
- Run this command to list volume snapshots:
cinder snapshot-list
You see output similar to:
$ cinder snapshot-list
+---------------------------------------+--------------------------------------+----------------+--------------------------+------+
ID | Volume ID | Status | Name | Size |
+---------------------------------------+--------------------------------------+----------------+--------------------------+------+
| ########-####-####-####-##########32 | ########-####-####-####-##########94 | error | snapshot for cinder-test | 1 || ########-####-####-####-##########d3 | ########-####-####-####-##########94 | error_deleting | snapshot for test | 1
- Delete the snapshot:
- Run this command if the snapshot is in error_deleting state to reset the state of snapshot:
cinder snapshot-reset-state snapshot_id
- Delete the snapshot by running command:
cinder snapshot-delete snapshot_id
You see output similar to:
$ cinder snapshot-reset-state ########-####-####-####-##########d3
$ cinder snapshot-delete ########-####-####-####-##########d3
a. cinder snapshot-delete snapshot_id
- Run this command to revert the state of volume to its original status (in-use):
cinder reset-state --state in-use volume_id
You see output similar to:
cinder reset-state --state in-use ########-####-####-####-##########94