you can reset the volume status to what you like by running cinder
reset-state --state <state>
However, if you are sure that the volume is not attached to an instance,
can you please tell me what you did so that the volume is reported as
attached and yet it's not?
can you please attach the nova logs? maybe we can see it there?
Dafna
On 05/14/2014 02:23 PM, Tzach Shefi wrote:
Hey Anand,
How are you?
Did you try force deleting it?
# cinder force-delete fe0fdad1-2f8a-4cce-a173-797391dbc7ad
Tzach
----- Original Message -----
From: "anand ts" <anandts124(a)gmail.com>
To: rdo-list(a)redhat.com
Sent: Wednesday, May 14, 2014 1:32:23 PM
Subject: [Rdo-list] Cinder volume deleting issue
Hi all,
I have multinode setup on openstack+havana+rdo on CentOS6.5
Issue- Can't able to delete cinder volume.
when try to delete through command line
[root@cinder ~(keystone_admin)]# cinder list
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| fe0fdad1-2f8a-4cce-a173-797391dbc7ad | in-use | vol2 | 10 | None | true |
b998107b-e708-42a5-8790-4727fed879a3 |
+--------------------------------------+--------+--------------+------+-------------+----------+------------------------------
[root@cinder ~(keystone_admin)]# cinder delete fe0fdad1-2f8a-4cce-a173-797391dbc7ad
Delete for volume fe0fdad1-2f8a-4cce-a173-797391dbc7ad failed: Invalid volume: Volume
status must be available or error, but current status is: in-use (HTTP 400) (Request-ID:
req-d9be63f0-476a-4ecd-8655-20491336ee8b)
ERROR: Unable to delete any of the specified volumes.
when try to delete through dashboard, screen shot attached with the mail.
This occured when a cinder volume attached instance is deleted from the database without
detaching the volume. Now the volume is in use and attached to NONE.
Please find the cinder logs here ,
http://paste.openstack.org/show/80333/
Any work around to this problem.
_______________________________________________
Rdo-list mailing list
Rdo-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/rdo-list
_______________________________________________
Rdo-list mailing list
Rdo-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/rdo-list