<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-04-24 20:53 GMT+08:00 Eric Fried <span dir="ltr"><<a href="mailto:openstack@fried.cc" target="_blank">openstack@fried.cc</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> The problem isn't just checking the traits in the nested resource<br>
> provider. We also need to ensure the trait in the exactly same child<br>
> resource provider.<br>
<br>
</span>No, we can't get "granular" with image traits.  We accepted this as a<br>
limitation for the spawn aspect of this spec [1], for all the same<br>
reasons [2].  And by the time we've spawned the instance, we've lost the<br>
information about which granular request groups (from the flavor) were<br>
satisfied by which resources - retrofitting that information from a new<br>
image would be even harder.  So we need to accept the same limitation<br>
for rebuild.<br>
<br>
[1] "Due to the difficulty of attempting to reconcile granular request<br>
groups between an image and a flavor, only the (un-numbered) trait group<br>
is supported. The traits listed there are merged with those of the<br>
un-numbered request group from the flavor."<br>
(<a href="http://specs.openstack.org/openstack/nova-specs/specs/rocky/approved/glance-image-traits.html#proposed-change" rel="noreferrer" target="_blank">http://specs.openstack.org/<wbr>openstack/nova-specs/specs/<wbr>rocky/approved/glance-image-<wbr>traits.html#proposed-change</a>)<br>
[2]<br>
<a href="https://review.openstack.org/#/c/554305/2/specs/rocky/approved/glance-image-traits.rst@86" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/554305/2/specs/rocky/<wbr>approved/glance-image-traits.<wbr>rst@86</a></blockquote><div><br></div><div>Why we can return a RP which has a specific trait but we won't consume any resources on it?</div><div>If the case is that we request two VFs, and this two VFs have different required traits, then that should be granular request.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>____<span style="color:rgb(34,34,34)"> </span></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">__________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>