<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Chris Dent <<a href="mailto:cdent%2Bos@anticdent.org">cdent+os@anticdent.org</a>> 于2019年4月28日周日 下午10:14写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 28 Apr 2019, Eric Fried wrote:<br>
<br>
> We've talked about this previously. The two objections raised were:<br>
><br>
> a) It assumes the meaning of "same tree" is "one level down from the<br>
> root".<br>
<br>
Does it? I had casually interpreted<br>
"group_policy=same_tree:$GROUP_A:$GROUP_B" as meaning '$GROUP_B is<br>
somewhere within the tree rooted at $GROUP_A at any level' but it<br>
could just as easily be interpreted a few different ways, including<br>
what you say.<br>
<br>
> b) It assumes the various pieces of the request (flavor, image, port,<br>
> device profile) are able to know each others' request group numbers<br>
> ahead of time. Or we need provide some other mechanism for the scheduler<br>
> code that dynamically assigns the numbers [2] to understand which ones<br>
> need to be (sub)grouped together. IIUC this has been Sundar's main<br>
> objection.<br>
<br>
As I understand things, this is going to be a problem in most of the<br>
proposals, for at least one of the many participants in the<br>
interactions that lead to a complex workload landing.<br>
<br>
Jay suggested extending the JSON schema to allow groups that are<br>
names like resources_compute, required_network. That might allow for<br>
some conventions to emerge but still requires some measure of<br>
knowledge from the participants.<br></blockquote><div><br></div><div>I thought the placement, cyborg, and neutron..etc doesn't what is building. Placement doesn't know what it is building from 'GET /a_c', it just return the right RP match the request. Cyborg and neutron only returns a device or a port requirement. So only Nova knows we are building VM, then nova should know the affinity of those resources.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I suspect some form of knowledge is going to be needed. Limiting it<br>
would be good.<br>
<br>
Also good is making sure that from placement's standpoint the<br>
knowledge is merely symbolic.<br>
<br>
-- <br>
Chris Dent                       ٩◔̯◔۶           <a href="https://anticdent.org/" rel="noreferrer" target="_blank">https://anticdent.org/</a><br>
freenode: cdent                                         tw: @anticdent</blockquote></div></div>