<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><pre style="font-family: 宋体; font-size: 10.5pt;"><span style="color:#000080;font-weight:bold;">class </span><span style="background-color:#e4e4ff;">ComputeCellsAPI</span>(compute_api.API) 的create函数定义如下,调用的是<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">compute_api.API的create函数,并没有进入cells的调度。</span></pre></div>
<div><pre style="font-family: 宋体; font-size: 10.5pt;"><span style="color:#000080;font-weight:bold;">def </span>create(<span style="color:#94558d;">self</span>, *args, **kwargs):<br>    <span style="color:#808080;font-style:italic;">"""We can use the base functionality, but I left this here just<br></span><span style="color:#808080;font-style:italic;">    for completeness.<br></span><span style="color:#808080;font-style:italic;">    """<br></span><span style="color:#808080;font-style:italic;">    </span><span style="color:#000080;font-weight:bold;">return </span><span style="color:#000080;">super</span>(ComputeCellsAPI, <span style="color:#94558d;">self</span>).create(*args, **kwargs)</pre></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>chagg@foxmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>发件人:</b> <a href="mailto:anlin.kong@gmail.com">Lingxian Kong</a></div><div><b>发送时间:</b> 2016-08-10 06:24</div><div><b>收件人:</b> <a href="mailto:chagg@foxmail.com">chagg@foxmail.com</a></div><div><b>抄送:</b> <a href="mailto:openstack-zh@lists.openstack.org">openstack-zh</a></div><div><b>主题:</b> Re: [Openstack-zh] 请问有谁能把创建虚拟机经过cells调度的流程说明一下,我反复阅读代码也没有发现对cells的调用,谢谢!</div></div></div><div><div>https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/servers.py#L150</div>
<div> </div>
<div>从这里进去找吧。</div>
<div> </div>
<div>Regards!</div>
<div>-----------------------------------</div>
<div>Lingxian Kong</div>
<div> </div>
<div> </div>
<div>On Tue, Aug 9, 2016 at 6:58 PM, chagg@foxmail.com <chagg@foxmail.com> wrote:</div>
<div>></div>
<div>></div>
<div>> ________________________________</div>
<div>> chagg@foxmail.com</div>
<div>></div>
<div>> _______________________________________________</div>
<div>> Openstack-zh mailing list</div>
<div>> Openstack-zh@lists.openstack.org</div>
<div>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-zh</div>
<div>></div>
<div> </div>
</div></blockquote>
</body></html>