<div dir="ltr">Thank you for reply, @Jay.<br><div><br></div><div>+1 for</div><div><span style="font-size:14px">There should not be any "magic" setting for root_gb that needs to be interpreted both by the user and the Nova code base.</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">I will try to restart the patch 136284 on the other way, like: instance object.</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Best Regards</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-04 4:45 GMT+08:00 Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03/03/2015 01:10 AM, Rui Chen wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi all,<br>
<br>
When we boot instance from volume, we find some ambiguous description<br>
about flavor root_gb in operations guide,<br>
<a href="http://docs.openstack.org/openstack-ops/content/flavors.html" target="_blank">http://docs.openstack.org/<u></u>openstack-ops/content/flavors.<u></u>html</a><br>
<br></span>
/Virtual root disk size in gigabytes. This is an ephemeral disk the base<span class=""><br>
image is copied into. You don't use it when you boot from a persistent<br></span>
volume. /<br>
/The "0" size is a special case that uses the native base image size as<br>
the size of the ephemeral root volume./<br>
/<span class=""><br>
/<br>
'You don't use it(root_gb) when you boot from a persistent volume.'<br>
It means that we need to set the root_gb to 0 or not? I don't know.<br>
</span></blockquote>
<br>
Hi Rui, I agree the documentation -- and frankly, the code in Nova -- is confusing around this area.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But I find out that the root_gb will been added into local_gb_used of<br>
compute_node so that it will impact the next scheduling. Think about a<br>
use case, the local_gb of compute_node is 10, boot instance from volume<br>
with the root_gb=5 flavor, in this case, I can only boot 2<br>
boot-from-volume instances on the compute_nodes, although these<br>
instances don't use the local disk of compute_nodes.<br>
<br>
I find a patch that try to fix this issue,<br>
<a href="https://review.openstack.org/#/c/136284/" target="_blank">https://review.openstack.org/#<u></u>/c/136284/</a><br>
<br>
I want to know that which solution is better for you?<br>
<br>
Solution #1: boot instance from volume with the root_gb=0 flavor.<br>
Solution #2: add some special logic in order to correct the disk usage,<br>
like patch #136284<br>
</blockquote>
<br></span>
Solution #2 is a better idea, IMO. There should not be any "magic" setting for root_gb that needs to be interpreted both by the user and the Nova code base.<br>
<br>
The issue with the 136284 patch is that it is trying to address the problem in the wrong place, IMHO.<br>
<br>
Best,<br>
-jay<br>
<br>
______________________________<u></u>______________________________<u></u>______________<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.<u></u>openstack.org?subject:<u></u>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote></div><br></div>