<div dir="ltr">@Manickam, thank you for the information :)<div><br></div><div>+1 for the use case</div><div>-1 for the approach in patch <a href="https://review.openstack.org/#/c/117116/" target="_blank" style="font-family:Calibri,sans-serif;font-size:14.6666669845581px">https://review.openstack.org/#/c/117116/</a></div><div><br></div><div>I think we should try to filter the current host and auto fallback to select a host in nova-scheduler if the current host is no suitable.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-12 16:17 GMT+08:00 Manickam, Kanagaraj <span dir="ltr"><<a href="mailto:kanagaraj.manickam@hp.com" target="_blank">kanagaraj.manickam@hp.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">There is a patch on resize
<a href="https://review.openstack.org/#/c/117116/" target="_blank">https://review.openstack.org/#/c/117116/</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">To address the resize, there are some suggestions and please refer the review comments on this patch.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kanagaraj M<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Jesse Pretorius [mailto:<a href="mailto:jesse.pretorius@gmail.com" target="_blank">jesse.pretorius@gmail.com</a>]
<br>
<b>Sent:</b> Thursday, February 12, 2015 1:25 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [nova] Priority resizing instance on same host<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">On Thursday, February 12, 2015, Rui Chen <<a href="mailto:chenrui.momo@gmail.com" target="_blank">chenrui.momo@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"> Currently, resizing instance cause migrating from the host that the instance run on to other host, but maybe the current host is suitable for new flavor. Migrating will lead to copy image between hosts if no shared storage, it waste
time. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> I think that priority resizing instance on the current host may be better if the host is suitable.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> The logic like this:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">if CONF.allow_resize_to_same_host:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> filte current host<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> if suitable:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> resize on current host<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> else:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> select a host<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> resize on the host<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> I don't know whether there have been some discussion about this question. Please let me know what do you think. If the idea is no problem, maybe I can register a blueprint to implement it. <u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But the nova.conf flag for that already exists?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">What I would suggest, however, is that some logic is put in to determine whether the disk size remains the same while the cpu/ram size is changing - if so, then resize the instance on the host without the disk snapshot and copy. <u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Jesse Pretorius<br>
mobile: +44 7586 906045<br>
email: <a href="mailto:jesse.pretorius@gmail.com" target="_blank">jesse.pretorius@gmail.com</a><br>
skype: jesse.pretorius<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div></div>
</div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>