<div dir="ltr">Hi guys,<div><br></div><div style>I have submitted a patch for this issue. Just FYI.</div><div style><br></div><div style><a href="https://review.openstack.org/#/c/34870/">https://review.openstack.org/#/c/34870/</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/31 Hanyu Xiao <span dir="ltr"><<a href="mailto:hanyu.xiao@eayun.com" target="_blank">hanyu.xiao@eayun.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi guys:<br>
    <br>
    As I know, soft-delete an instance only power off the instance and
    then mark the db state to "soft-delete". <br>
    <br>
    you can use `nova start ` to poweron the instance.<br>
    <br>
    Thanks.<div><div class="h5"><br>
    <div>On 01/31/2013 01:32 PM, Sam Stoelinga
      wrote:<br>
    </div>
    <blockquote type="cite">It seems we're using start to restore the instance,
      which also works.
      <div><br>
      </div>
      <div>novaclient(request).servers.start(instance_id)
        <div><br>
        </div>
        <div>Sam<br>
          <br>
          <div class="gmail_quote">On Thu, Jan 31, 2013 at 10:43 AM,
            Vishvananda Ishaya <span dir="ltr"><<a href="mailto:vishvananda@gmail.com" target="_blank">vishvananda@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div style="word-wrap:break-word">
                <div><br>
                </div>
                Yes I noticed the other day that the restore and
                force_delete admin commands are not in novaclient. I was
                planning on adding them at some point soon, but it
                should be a really easy addition if someone wants to
                tackle it before I get to it.
                <div>
                  <br>
                </div>
                <div>Vish</div>
                <div>
                  <div>
                    <div><br>
                      <div>
                        <div>On Jan 30, 2013, at 2:24 AM, "Day, Phil"
                          <<a href="mailto:philip.day@hp.com" target="_blank">philip.day@hp.com</a>>
                          wrote:</div>
                        <br>
                        <blockquote type="cite">
                          <div link="blue" vlink="purple" style="font-family:Menlo;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" lang="EN-GB">

                            <div>
                              <div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi
                                  Vish,</span></div>
                              <div>
                                <span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Sorry,
                                  I wasn’t very clear in my original
                                  post.   I have
                                  reclaim_instance_inteval set, and the
                                  instance does go to “SOFT_DELETED”.  I
                                  can see that the api extension adds a
                                  “restore” verb to the list of actions
                                  on an instance.</span></div>
                              <div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div>
                                <span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">What
                                  I was trying to find out was if that
                                  additional action was available from
                                  the nova client.  E.g is there a “nova
                                  restore <xxx>” command ?   
                                  Looking through the client code I
                                  can’t see one, but thought I might be
                                  missing  something.</span></div>
                              <div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div>
                                <span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks</span></div>
                              <div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Phil</span></div>
                              <div><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div>
                                <div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(181,196,223);padding:3pt 0cm 0cm">
                                  <div><b><span style="font-size:10pt;font-family:Tahoma,sans-serif" lang="EN-US">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif" lang="EN-US"><span> </span>Vishvananda
                                      Ishaya [mailto:<a href="mailto:vishvananda@" target="_blank">vishvananda@</a><a href="http://gmail.com" target="_blank">gmail.com</a>]<span> </span><br>
                                      <b>Sent:</b><span> </span>30
                                      January 2013 00:32<br>
                                      <b>To:</b><span> </span>Day, Phil<br>
                                      <b>Cc:</b><span> </span><a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
                                      (<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>)
                                      (<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>)<br>
                                      <b>Subject:</b><span> </span>Re:
                                      [Openstack] nova client support
                                      for restore from soft delete ?</span></div>
                                </div>
                              </div>
                              <div>
                                 </div>
                              <div> </div>
                              <div>
                                <div>
                                  <div>
                                    On Jan 29, 2013, at 8:55 AM, "Day,
                                    Phil" <<a href="mailto:philip.day@hp.com" style="color:purple;text-decoration:underline" target="_blank">philip.day@hp.com</a>>
                                    wrote:</div>
                                </div>
                                <div>
                                  <br>
                                  <br>
                                </div>
                                <div>
                                  <div>
                                    <div><span style="font-size:11pt;font-family:Calibri,sans-serif">Hi
                                        Folks,</span></div>
                                  </div>
                                  <div>
                                    <div><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span></div>
                                  </div>
                                  <div>
                                    <div>
                                      <span style="font-size:11pt;font-family:Calibri,sans-serif">Does
                                        the nova client provide support
                                        to restore a soft deleted
                                        instance  (and if not, what is
                                        the process for pulling an
                                        instance back from the brink) ?</span></div>
                                  </div>
                                </div>
                                <div> </div>
                              </div>
                              <div>
                                <div>
                                  If you have reclaim_instance_interval
                                  set then you can restore instances via
                                  an admin api command. If not then you
                                  are not going to have much luck
                                  reclaiming the insance becasue the
                                  drive will be deleted. If by some
                                  chance you have the backing files
                                  still, then you should be able to fix
                                  the db and do a hard reboot on the
                                  instance to get it to come back up.
                                  Fixing the db is mostly about setting
                                  deleted=False but keep in mind that
                                  you will also have to manually restore
                                  the vif and reassociate the fixed ip
                                  which hopefully hasn't been associated
                                  to a new instance.</div>
                              </div>
                              <div>
                                <div> </div>
                              </div>
                              <div>
                                <div>
                                  Vish</div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </div>
                </div>
              </div>
              <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" target="_blank">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><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Hanyu Xiao
Eayun.com</pre>
  </font></span></div>

<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" 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/~openstack" 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><br>
<br></blockquote></div><br></div>