Ask Your Question
0

How to liberate volume attached to deleted instance ?

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

mrexojo gravatar image

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

Hi,

[MITAKA]

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

Comments

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 -0500 )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 -0500 )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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 558 times

Last updated: Jan 15