<div dir="ltr">Hi anand ts, Sergey has sent me a response, it follows:<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">"Hello,</span><div style="font-family:arial,sans-serif;font-size:13px">

you can reset volume's state to 'avaliable' and try to delete it again.</div><div style="font-family:arial,sans-serif;font-size:13px">cinder reset-state <volume-id>"</div></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">2014-05-14 9:00 GMT-03:00 Luis Guilherme Russi <span dir="ltr"><<a href="mailto:luisguilherme.cr@gmail.com" target="_blank">luisguilherme.cr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">If you try to detach first, then you run the command to delete the volume, what happens?</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-14 8:43 GMT-03:00 anand ts <span dir="ltr"><<a href="mailto:anandts124@gmail.com" target="_blank">anandts124@gmail.com</a>></span>:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi Ageeleshwar,<div><br></div><div>I directly deleted the running instance from database.</div>

</div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 14, 2014 at 5:06 PM, Ageeleshwar Kandavelu <span dir="ltr"><<a href="mailto:Ageeleshwar.Kandavelu@csscorp.com" target="_blank">Ageeleshwar.Kandavelu@csscorp.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Was the instance terminated or directly deleted from the database?<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> anand ts [<a href="mailto:anandts124@gmail.com" target="_blank">anandts124@gmail.com</a>]<br>
<b>Sent:</b> Wednesday, May 14, 2014 4:09 PM<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] Cinder volume deleting issue<br>
</font><br>
</div><div><div>
<div></div>
<div>
<div dir="ltr">
<div>Hi all,</div>
<div><br>
</div>
<div>I have multinode setup on openstack+havana+rdo on CentOS6.5</div>
<div><br>
</div>
<div>Issue- Can't able to delete cinder volume. </div>
<div><br>
</div>
<div>when try to delete through command line</div>
<div><br>
</div>
<div>[root@cinder ~(keystone_admin)]# cinder list</div>
<div>+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+</div>
<div>|                  ID                  | Status | Display Name | Size | Volume Type | Bootable |             Attached to              |</div>
<div>+--------------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+</div>
<div>| fe0fdad1-2f8a-4cce-a173-797391dbc7ad | in-use |     vol2     |  10  |     None    |   true   | b998107b-e708-42a5-8790-4727fed879a3 |</div>
<div>+--------------------------------------+--------+--------------+------+-------------+----------+------------------------------</div>
<div><br>
</div>
<div>[root@cinder ~(keystone_admin)]# cinder delete fe0fdad1-2f8a-4cce-a173-797391dbc7ad</div>
<div>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)</div>




<div>ERROR: Unable to delete any of the specified volumes.</div>
<div><br>
</div>
<div><br>
</div>
<div>when try to delete through dashboard, screen shot attached with the mail.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div><br>
</div>
<div>Please find the cinder logs here , <a href="http://paste.openstack.org/show/80333/" target="_blank">
http://paste.openstack.org/show/80333/</a></div>
<div><br>
</div>
<div>Any work around to this problem.</div>
</div>
</div>
</div></div></div>
</div>
<a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/email-disclaimer.php</a>
</div>

</blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>