cinder snapshot-list
| ID | Volume ID | Status | Name | Size |
+--------------------------------------+--------------------------------------+----------------+--------------------------+------+
| ########-####-####-####-##########15 | ########-####-####-####-##########94 | error | instance-test1 | 1 |
| ########-####-####-####-##########d3 | ########-####-####-####-##########94 | error_deleting | instance-test2 | 1 |
This issue occurs because VMware Cinder driver does not support deleting a volume snapshot irrespective of its state if the corresponding volume is not 'available'.
This issue is resolved in VMware Integrated OpenStack 3.0.x.
cinder list
$ cinder list
+--------------------------------------+---------+----------------+------+-------------+----------+--------------------------------------+
| ID | Status| Name | Size | Volume Type | Bootable | Attachedto |
+--------------------------------------+---------+----------------+------+-------------+-------------------------------------------------+
| ########-####-####-####-##########94 | in-use | Cirros-Sample | 1 | - | true | ########-####-####-####-##########9d |
cinder reset-state --state available volume_id
cinder reset-state --state available ########-####-####-####-##########94
cinder snapshot-list
$ 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
cinder snapshot-reset-state snapshot_id
cinder snapshot-delete snapshot_id
$ cinder snapshot-reset-state ########-####-####-####-##########d3
$ cinder snapshot-delete ########-####-####-####-##########d3
cinder reset-state --state in-use volume_id
cinder reset-state --state in-use ########-####-####-####-##########94