<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Another approach would be to export the data to Glance and download
    then you can upload it somewhere.<br>
    <br>
    There is no ready thing that I know about. We used the openstacksdk
    to simply recreate the steps we did on CLI.<br>
    Create all the neccesary resources on the other side, create new
    instances from the migrated volume and set a fixedIP on the neutron
    port to get same IP address.<br>
    <br>
    <div class="moz-cite-prefix">On 1/30/20 9:43 AM, Tony Pearce wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHx0V9LUXmanRC2E+TDrixo80aaCEyORKSVe=s3izd54pKs37A@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">I want to do something similar soon and don't want
        to touch the db (I experimented with cloning the "controller"
        and it did not achieve any desired outcome). 
        <div><br>
        </div>
        <div>Is there a way to export an instance from Openstack in
          terms of something like a script that could re-create it on
          another openstack as a like-for-like? I guess this is assuming
          that the instance is linux-based and has cloud-init enabled. <br
            clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div dir="ltr">
                      <p><br>
                      </p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><a
name="SignatureSanitizer_SafeHtmlFilter__MailAutoSig"
                          moz-do-not-send="true"><b><span
                              style="font-size:10pt;font-family:Arial,sans-serif;color:black">Tony
                              Pearce</span></b></a><span
                          style="font-size:9pt;font-family:Arial,sans-serif;color:black">  
                          |  </span><b><span
                            style="font-family:Arial,sans-serif;color:rgb(0,112,192)"><span
                              style="font-size:9pt">Senior Network
                              Engineer / Infrastructure Lead</span><span
                              style="font-size:12px"><br>
                            </span></span></b><b><span
                            style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,112,192)"><a
                              href="https://www.cinglevue.com"
                              target="_blank" moz-do-not-send="true">Cinglevue
                              International</a></span></b></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><span
style="font-size:9.5pt;font-family:Arial,sans-serif" lang="EN-US"></span></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><span
style="font-size:10pt;font-family:Arial,sans-serif;color:black">Email: </span><span
                          style="font-family:Arial,sans-serif"><a
                            href="mailto:tony.pearce@cinglevue.com"
                            style="color:rgb(17,85,204);font-size:10pt"
                            target="_blank" moz-do-not-send="true">tony.pearce@cinglevue.com</a><span
                            style="font-size:12.6667px"><br>
                          </span></span><span
                          style="font-size:10pt;font-family:Arial,sans-serif;color:black">Web: </span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(17,85,204)"><a
                            href="http://www.cinglevue.com/"
                            target="_blank" moz-do-not-send="true">http://www.cinglevue.com</a></span><b><span
style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(38,66,120)"> </span></b></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><span
style="font-size:9.5pt;font-family:Arial,sans-serif" lang="EN-US"></span></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><b><span
style="font-size:10pt;font-family:Arial,sans-serif;color:black">Australia</span></b><span
                          style="font-family:Arial,sans-serif"><font
                            color="#000000"><span style="font-size:10pt"> </span></font><span
                            style="font-size:12.6667px"><br>
                          </span></span><span
                          style="color:black;font-family:Arial,sans-serif;font-size:10pt">1
                          Walsh Loop, Joondalup, WA 6027 Australia.</span></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><span
style="font-size:9.5pt;font-family:Arial,sans-serif" lang="EN-US"></span></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><span
style="font-size:10pt;font-family:Arial,sans-serif;color:black">Direct: </span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(17,85,204)">+61
                          8 6202 0036</span><span
                          style="font-size:10pt;font-family:Arial,sans-serif;color:black"> | </span><span
style="font-size:9.5pt;font-family:Arial,sans-serif" lang="EN-US"></span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:black">Main: </span><span
style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(17,85,204)">+61
                          8 6202 0024</span></p>
                      <p
style="background-image:initial;background-position:initial;background-repeat:initial"><span
style="font-size:10pt;font-family:Arial,sans-serif;color:black">Note:
                          This email and all attachments are the sole
                          property of Cinglevue International Pty Ltd.
                          (or any of its subsidiary entities), and the
                          information contained herein must be
                          considered confidential, unless specified
                          otherwise.   If you are not the intended
                          recipient, you must not use or forward the
                          information contained in these documents.   If
                          you have received this message in error,
                          please delete the email and notify the sender.</span><span
style="font-size:9.5pt;font-family:Arial,sans-serif" lang="EN-US"></span></p>
                      <p> </p>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, 30 Jan 2020 at 16:39,
          Tobias Urdin <<a href="mailto:tobias.urdin@binero.se"
            moz-do-not-send="true">tobias.urdin@binero.se</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF">We did this something similar recently,
            we booted all instances from Cinder volume (with "Delete on
            terminate" set) in an old platform.<br>
            <br>
            So we added our new Ceph storage to the old platform,
            removed instances (updated delete_on_terminate to 0 in Nova
            DB).<br>
            Then we issued a retype so cinder-volume performed a `dd` of
            the volume from the old to the new storage.<br>
            <br>
            We then synced network/subnet/sg and started instances with
            same fixed IP and moved floating IPs to the new platform.<br>
            <br>
            Since you only have to swap storage you should experiment
            with powering off the instances and try doing a migrate of
            the volume<br>
            but I suspect you need to either remove the instance or do
            some really nasty database operations.<br>
            <br>
            I would suggest always going through the API and recreate
            the instance from the migrated volume instead of changing in
            the DB.<br>
            We had to update delete_on_terminate in DB but that was
            pretty trivial (and I even think there is a spec that is not
            implemented yet that will allow that from API).<br>
            <br>
            <div>On 1/29/20 9:54 PM, Jean-Philippe Méthot wrote:<br>
            </div>
            <blockquote type="cite">Hi,
              <div><br>
              </div>
              <div>We have a several hundred VMs which were built on
                cinder block devices as root drives which use a SAN
                backend. Now we want to change their backend from the
                SAN to Ceph.</div>
              <div>We can shutdown the VMs but we will not destroy them.
                I am aware that there is a cinder migrate volume command
                to change a volume’s backend, but it requires that the
                volume be completely detached. Forcing a detached state
                on</div>
              <div>that volume does let the volume migration take place,
                but the volume’s path in Nova block_device_mapping
                doesn’t update, for obvious reasons.</div>
              <div><br>
              </div>
              <div>So, I am considering forcing the volumes to a
                detached status in Cinder and then manually updating the
                nova db block_device_mapping entry for each volume so
                that the VM can boot back up afterwards. </div>
              <div>However, before I start toying with the database and
                accidentally break stuff, has anyone else ever done
                something similar? Got any tips or hints on how best to
                proceed?</div>
              <div><br>
              </div>
              <div>
                <div>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Jean-Philippe
                    Méthot</div>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Openstack
                    system administrator</div>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Administrateur
                    système Openstack</div>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">PlanetHoster
                    inc.</div>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
                  </div>
                  <div
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
                  </div>
                  <br>
                </div>
                <br>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>