Cinder volume attached to a terminated server ... now I can't delete it.
I was debugging a Heat stack that (among other things) attached an existing Cinder Volume to a new instance created by the stack. The instance died, but the attachment still exists. Now I can't delete the Attachment, or the volume, or the Heat stack that created the attachment! I was hoping that it would time out or possibly get cleaned up automatically as I was working with other volumes, but it has been 28 hours since the attachment was created and it is still hanging on.
I'm using OpenStack Newton. How can I clean up this dangling attachment?
What error message are you getting?
When I try to delete the volume from the command line, I get:
"Failed to delete volume with name or ID 'XXXXXXX': Invalid volume: Volume status must be available or error or error_restoring or error_extending and must not be migrating, attached, belong to a group or have snapshots."
In Horizon, it doesn't show the volume in the list, but shows an error popup saying: "Failed to get attachment information".
The Heat stack error message is: "Delete_Failed: Resource DELETE failed: Unauthorized: resources.workspace_attach: The request you have made requires authentication. " ... but when I try to delete the attachment with "openstack server remove volume", it can't find the server (obviously).