<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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.<br>
    <div class="moz-cite-prefix">On 01/31/2013 01:32 PM, Sam Stoelinga
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJQK-mjPDSgTNLikLTRubo5fnm-JAQzW5gH-PmmPoCHrvp8zXQ@mail.gmail.com"
      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
                moz-do-not-send="true"
                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 class="h5">
                    <div><br>
                      <div>
                        <div>On Jan 30, 2013, at 2:24 AM, "Day, Phil"
                          <<a moz-do-not-send="true"
                            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 style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi
                                  Vish,</span></div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif">
                                <span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"><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 style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif">
                                <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 style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif">
                                <span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks</span></div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"><span
style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Phil</span></div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"><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 style="margin:0cm 0cm
                                    0.0001pt;font-size:12pt;font-family:'Times
                                    New Roman',serif"><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
                                        moz-do-not-send="true"
                                        href="mailto:vishvananda@"
                                        target="_blank">vishvananda@</a><a
                                        moz-do-not-send="true"
                                        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
                                        moz-do-not-send="true"
                                        href="mailto:openstack@lists.launchpad.net"
                                        target="_blank">openstack@lists.launchpad.net</a>
                                      (<a moz-do-not-send="true"
                                        href="mailto:openstack@lists.launchpad.net"
                                        target="_blank">openstack@lists.launchpad.net</a>)
                                      (<a moz-do-not-send="true"
                                        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 style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif">
                                 </div>
                              <div style="margin:0cm 0cm
                                0.0001pt;font-size:12pt;font-family:'Times
                                New Roman',serif"> </div>
                              <div>
                                <div>
                                  <div style="margin:0cm 0cm
                                    0.0001pt;font-size:12pt;font-family:'Times
                                    New Roman',serif">
                                    On Jan 29, 2013, at 8:55 AM, "Day,
                                    Phil" <<a moz-do-not-send="true"
                                      href="mailto:philip.day@hp.com"
                                      style="color:purple;text-decoration:underline"
                                      target="_blank">philip.day@hp.com</a>>
                                    wrote:</div>
                                </div>
                                <div style="margin:0cm 0cm
                                  0.0001pt;font-size:12pt;font-family:'Times
                                  New Roman',serif">
                                  <br>
                                  <br>
                                </div>
                                <div>
                                  <div>
                                    <div style="margin:0cm 0cm
                                      0.0001pt;font-size:12pt;font-family:'Times
                                      New Roman',serif"><span
                                        style="font-size:11pt;font-family:Calibri,sans-serif">Hi
                                        Folks,</span></div>
                                  </div>
                                  <div>
                                    <div style="margin:0cm 0cm
                                      0.0001pt;font-size:12pt;font-family:'Times
                                      New Roman',serif"><span
                                        style="font-size:11pt;font-family:Calibri,sans-serif"> </span></div>
                                  </div>
                                  <div>
                                    <div style="margin:0cm 0cm
                                      0.0001pt;font-size:12pt;font-family:'Times
                                      New Roman',serif">
                                      <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 style="margin:0cm 0cm
                                  0.0001pt;font-size:12pt;font-family:'Times
                                  New Roman',serif"> </div>
                              </div>
                              <div>
                                <div style="margin:0cm 0cm
                                  0.0001pt;font-size:12pt;font-family:'Times
                                  New Roman',serif">
                                  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 style="margin:0cm 0cm
                                  0.0001pt;font-size:12pt;font-family:'Times
                                  New Roman',serif"> </div>
                              </div>
                              <div>
                                <div style="margin:0cm 0cm
                                  0.0001pt;font-size:12pt;font-family:'Times
                                  New Roman',serif">
                                  Vish</div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              Mailing list: <a moz-do-not-send="true"
                href="https://launchpad.net/%7Eopenstack"
                target="_blank">https://launchpad.net/~openstack</a><br>
              Post to     : <a moz-do-not-send="true"
                href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
              Unsubscribe : <a moz-do-not-send="true"
                href="https://launchpad.net/%7Eopenstack"
                target="_blank">https://launchpad.net/~openstack</a><br>
              More help   : <a moz-do-not-send="true"
                href="https://help.launchpad.net/ListHelp"
                target="_blank">https://help.launchpad.net/ListHelp</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help   : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Hanyu Xiao
Eayun.com</pre>
  </body>
</html>