<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jul 30, 2012, at 3:35 PM, Kevin L. Mitchell <<a href="mailto:kevin.mitchell@rackspace.com">kevin.mitchell@rackspace.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Mon, 2012-07-30 at 14:25 -0500, Chris Behrens wrote:<br><blockquote type="cite">You may still have to reset the instance's task_state to NULL in the<br>DB (instances table) to delete ones already in this state.<br></blockquote><br>No, I fixed the state problem with soft_delete(); as long as he updates,<br>delete should work fine.<br><br>That said, be aware that there is a "reset-state" command to novaclient,<br>so that you can do Chris's recommended reset without having to muck<br>around with the database directly.<br>-- <br>Kevin L. Mitchell <<a href="mailto:kevin.mitchell@rackspace.com">kevin.mitchell@rackspace.com</a>><br></blockquote></div><div><br></div><div><br></div><div>From the python-novaclient tests, it looks like  "nova reset-state <instance>" puts an instance into the error state or (with the --active) flag into the active state:</div><div><br></div><div><div>    def test_reset_state(self):</div><div>        self.run_command('reset-state sample-server')</div><div>        self.assert_called('POST', '/servers/1234/action',</div><div>                           {'os-resetState': {'state': 'error'}})</div><div>        self.run_command('reset-state sample-server --active')</div><div>        self.assert_called('POST', '/servers/1234/action',</div><div>                           {'os-resetState': {'state': 'active'}})</div><div><br></div></div><div><br></div><div>What's the use case for resetting an instance to the error state? Is the idea to do:</div><div><br></div><div>nova reset-state <instance></div><div>nova delete <instance></div><div><br></div><div><br></div><div><br></div><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"></div><br><div></div></div></body></html>