<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>why not allow "nova delete" and "<span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">euca-terminate </span>" to delete the instance with "error" status?<br></div><div><br>Yong Sheng Gong<br><div><br></div><font color="#990099">-----openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net wrote: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">To: Guilherme Birk <a class="moz-txt-link-rfc2396E" href="mailto:guibirk@hotmail.com"><guibirk@hotmail.com></a>, Openstack Mail List <a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net"><openstack@lists.launchpad.net></a><br>From: Mandar Vaze <a class="moz-txt-link-rfc2396E" href="mailto:mandar.vaze@vertex.co.in"><mandar.vaze@vertex.co.in></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net">openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net</a><br>Date: 03/22/2012 12:26PM<br>Subject: Re: [Openstack] Can't delete instances with "error" status.<br><br><!--Notes ACF <meta http-equiv=Content-Type content="text/html; charset=gb2312">--><!--[if !mso]><style></style><![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">I agree user shouldn’t have to update DB. <o:p></o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">There needs to be some periodic <b>cleanup</b> task that “fixes” the vm_state/task_state for “stuck” instances.<o:p></o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d"><o:p> </o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d">-Mandar<o:p></o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><font color="#1f497d"><o:p> </o:p></font></span></p><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: #b5c4df -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net">openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net</a> [<a class="moz-txt-link-freetext" href="mailto:openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net">mailto:openstack-bounces+mandar.vaze=vertex.co.in@lists.launchpad.net</a>] <b>On Behalf Of </b>Guilherme Birk<br><b>Sent:</b> Wednesday, March 21, 2012 6:05 PM<br><b>To:</b> Openstack Mail List<br><b>Subject:</b> Re: [Openstack] Can't delete instances with "error" status.<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">This is the only option? I've already done that, but it's kind "strange" I update the database row everytime the script identifies a VM with error.<o:p></o:p></span></p><div><div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"><hr id="stopSpelling" align="center" size="2" width="100%"></span></div><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">Date: Wed, 21 Mar 2012 09:39:03 +0800<br>Subject: Re: [Openstack] Can't delete instances with "error" status.<br>From: <a href="mailto:mwjpiero@gmail.com">mwjpiero@gmail.com</a><br>To: <a href="mailto:guibirk@hotmail.com">guibirk@hotmail.com</a><o:p></o:p></span></p><div><p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">update "instances" table in "nova" db, set the vm_status of  the instance which you want to delete "active" and set the task_status=NULL. <o:p></o:p></span></p></div><div><p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">After that, try to use euca-terminate <o:p></o:p></span></p></div><p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"><o:p> </o:p></span></p><div><p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">On Wed, Mar 21, 2012 at 1:24 AM, Guilherme Birk <<a href="mailto:guibirk@hotmail.com">guibirk@hotmail.com</a>> wrote:<o:p></o:p></span></p><div><div><p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">I'm attempting to make a python script that controls all my virtual machines. Sometimes, when the script identifies that exists an instance with status of "error", he creates a new instance and tries to delete the old one with curl commands, but I'm not getting any response and the VM isn't deleted. When I execute euca-terminate instance <i-name> I got nothing too. How I should delete instances with error status ? I didn't found any way using nova-manage too. <o:p></o:p></span></p></div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"><br>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><o:p></o:p></span></p></div><p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"><br><br clear="all"><br>-- <br></span><span style="font-size: 10pt;" lang="ZH-CN">非淡薄无以明志,非宁静无以致远</span><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"><o:p></o:p></span></p></div></div></div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Mailing list: <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></font> </blockquote><br></div></font> <br/>