OpenStack: the volume cannot be deleted, it is in deleting state

Posted on

hello,

I'm having trouble deleting volumes in OpenStack from a machine that no longer exists. How to execute cinder command reset-state --attach-status detached volume_name
then I execute the command:

cinder delete volume_name

Delete for volume cifar-10-copy failed: Invalid volume: Volume status must be available or error or error_restoring or error_extending or error_managing and must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer. (HTTP 400) (Request-ID: req-b2d3f2e4-7855-4831-a68d-f6710cc97e94)
ERROR: Unable to delete any of the specified volumes.

then executes the command:
cinder reset-state --state available volume_name
and
cinder delete volume_name
Request to delete volume volume_name has been accepted.

when I check: openstack volume show volume_name

is:
| status | deleting

The volume is not being deleted, it is in the deleting state.
This is a volume from a non-existent node, but the volume is still visible in OpenStack and cannot be deleted because it is in the deleting state.

Maybe someone can tell me how to remove such a volume?

Regards

Responses