Ask Your Question

How to liberate volume attached to deleted instance ?

asked 2017-05-17 01:25:28 -0600

mrexojo gravatar image

updated 2017-05-17 01:26:16 -0600



I had a instance with boot volume and second volume attached to a instance. After of "break-powersupply" all physical nodes, It instance was as "active", but was imposible access in. After to fail reboot and stop instance, I trayed to delete instance with volumes attached, but now the volumes are "attached to " <id_instance_deleted>, therefore I can't use these volumes for new instance.

Although I could do:

"cinder reset-state --state available 4536b226-9045-42df-bef9-76b01a60d3ab"

It's not sufficient for liberate these volumes.

Can someone help me?

thank you

edit retag flag offensive close merge delete


Have you also tried cinder reset-state --attach-status detached ? If that doesn't work, I'm afraid you'll have to alter the database manually and change the attach-status.

eblock gravatar imageeblock ( 2017-05-17 04:00:36 -0600 )edit

Thanks, on help this not show it! I have detached but when I create new instance using these volumen report error:

Failed to perform requested operation on instance "name-vm", the instance has an error status: Please try again later [Error: ....block devide mapping invalid

mrexojo gravatar imagemrexojo ( 2017-05-17 04:38:40 -0600 )edit

Have you more detailed logs on that? This is probably just the nova error, what are cinder logs saying?

eblock gravatar imageeblock ( 2017-06-06 03:50:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-01-15 15:59:13 -0600

garettmd gravatar image

I know this is old, but I came across this and the fix for me was to manually delete the attachment. Also, I had to make cinder support an older version of the api:

cinder --os-volume-api-version 3.50 attachment-delete <attachment_id>

You can get the attachment id from openstack volume show <volume_name_or_id>

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-05-17 01:25:28 -0600

Seen: 2,405 times

Last updated: Jan 15 '19