<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple" style="word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D">Hi Paul,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p><p class="MsoNormal"><span style="color:#1F497D">I agree that changing image/flavor is not truly required, but like I said below it is not the primary intended use case. The usecase is we want to move an instance with same volume/ip/identity to move to another host when the original host has failed.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p><p class="MsoNormal"><span style="color:#1F497D">--Shyam</span></p><p class="MsoNormal"><span style="color:#1F497D"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Paul Voccio [mailto:<a href="mailto:paul.voccio@rackspace.com">paul.voccio@rackspace.com</a>] <br>
<b>Sent:</b> Tuesday, November 29, 2011 11:58 AM<br><b>To:</b> Shyam Kaushik; <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br><b>Subject:</b> Re: [Openstack] Rebuild instance from failed host</span></p>
</div></div><p class="MsoNormal"> </p><div><p class="MsoNormal"><span style="font-size:10.5pt;color:black">Hi Shyam,</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;color:black"> </span></p></div><div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">The initial use case sounds reasonable but I'm not sure I see the need to change flavor and image ref. That is essentially a new instance with the same ip and volume? Is there a real need there then? I might think that adding some logic around a rebuild that has a failed host that would know to rebuild on another host would keep in line with 'rebuild' logic. If it changed all of the data about the instance it doesn’t feel much like a 'rebuild' anymore. </span></p>
</div><div><p class="MsoNormal"><span style="font-size:10.5pt;color:black"> </span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;color:black">Just my thoughts. </span></p></div><div><p class="MsoNormal">
<span style="font-size:10.5pt;color:black">pvo</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;color:black"> </span></p></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Shyam Kaushik <<a href="mailto:shyam@zadarastorage.com">shyam@zadarastorage.com</a>><br><b>Date: </b>Tue, 29 Nov 2011 11:34:08 +0530<br>
<b>To: </b><<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br><b>Subject: </b>[Openstack] Rebuild instance from failed host</span></p></div><div><p class="MsoNormal"><span style="font-size:10.5pt;color:black"> </span></p>
</div><blockquote style="border:none;border-left:solid #B5C4DF 4.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-right:0in" id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"><div><div><p class="MsoNormal"><span style="color:black">Hi Folks,</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">Today in openstack, “rebuild” instance tears down a running instance & sets up a fresh instance in its place on the same host. “resize” instance migrates the underlying instance disk to another physical host and spawns the instance there. However both these options require that the origin host that was running the instance to be up for the operations to work. If the host is failed (could be irrecoverable if the root FS is corrupted), we cannot recover the instance. All operations on that instance would fail.</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">We want to introduce a new “rebuild instance from failed host” operation whereby we could rebuild the instance on another host with the same properties (instance-id, name, network info, metadata, volume attachments) and mark the old instance on failed host for cleanup. Whenever the failed host comes up, it will clear cache for the old instance. This operation is essentially a modified form of today’s “rebuild” instance, in terms of allowing to rebuild the instance even if the underlying host has failed. </span></p>
<p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">Essentially the “rebuild instance from failed host” will do the following steps:<br># See if it can terminate running instance on existing host. If not create a migration record</span></p>
<p class="MsoNormal"><span style="color:black"># Change “host” for instance to a new host (picked up by scheduler) & spawn the instance on that host (with volume attachments, networks connected as it was with the original instance)</span></p>
<p class="MsoNormal"><span style="color:black"># Optionally during this procedure allow instance flavor to be changed + possibility to give a different “image reference” for it to bootup (could possibly be used to upgrade OS image of the instance during this procedure).</span></p>
<p class="MsoNormal"><span style="color:black"># Whenever the failed host comes up, it will read through migration records (as part of init_host), clear up its cache & mark the migration complete.</span></p><p class="MsoNormal">
<span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">Note that this procedure could also be used for Upgrading image versions + changing instance flavors even when the origin host is alive, but that is not the primary intended use case.</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">Question is, is this a reasonable proposal to go forward? If not, are there any other alternative procedures available to meet the requirement?</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">If this is a reasonable proposal to go forward, I will submit a blueprint & follow-up with implementation.</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">Thanks.</span></p><p class="MsoNormal"><span style="color:black"> </span></p><p class="MsoNormal"><span style="color:black">--Shyam</span></p>
</div></div><p class="MsoNormal"><span style="font-size:10.5pt;color:black">_______________________________________________ Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a> Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a> Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a> More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a> </span></p>
</blockquote><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.5pt;color:black"><hr size="1" width="100%" noshade style="color:#7F7F7F" align="center"></span></div><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">
<span style="font-size:10.5pt;color:black">No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 2012.0.1873 / Virus Database: 2101/4645 - Release Date: 11/28/11</span></p>
</div></body></html>