<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; }div.foxdiv20160810151727948890 { }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>大牛已经给你指路了,师傅领进门,修行在个人了。</div><div>PS:我就是来膜拜下孔大牛</div>
<div><br></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">山东济南 崔-openstack</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:chagg@foxmail.com">chagg@foxmail.com</a></div><div><b>发送时间:</b> 2016-08-10 09:59</div><div><b>收件人:</b> <a href="mailto:anlin.kong@gmail.com">Lingxian Kong</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 class="FoxDiv20160810151727948890">
<div><span></span>也许是我python不行,能再解释一下吗?谢谢!或者我们可以加个QQ或微信交流,我的qq号270213207.</div>
<div><br></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 09:55</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: Re: [Openstack-zh] 请问有谁能把创建虚拟机经过cells调度的流程说明一下,我反复阅读代码也没有发现对cells的调用,谢谢!</div></div></div><div><div>On Wed, Aug 10, 2016 at 1:33 PM, chagg@foxmail.com <chagg@foxmail.com> wrote:</div>
<div>> class ComputeCellsAPI(compute_api.API)</div>
<div>> 的create函数定义如下,调用的是compute_api.API的create函数,并没有进入cells的调度。</div>
<div> </div>
<div>看create函数的时候,记住python的多态特性。</div>
<div> </div>
<div>></div>
<div>> def create(self, *args, **kwargs):</div>
<div>> """We can use the base functionality, but I left this here just</div>
<div>> for completeness.</div>
<div>> """</div>
<div>> return super(ComputeCellsAPI, self).create(*args, **kwargs)</div>
</div></blockquote>
</div></div></blockquote>
</body></html>