[Openstack-zh] 请问有谁能把创建虚拟机经过cells调度的流程说明一下,我反复阅读代码也没有发现对cells的调用,谢谢!

chagg at foxmail.com chagg at foxmail.com
Wed Aug 10 01:59:32 UTC 2016


也许是我python不行,能再解释一下吗?谢谢!或者我们可以加个QQ或微信交流,我的qq号270213207.



chagg at foxmail.com
 
发件人: Lingxian Kong
发送时间: 2016-08-10 09:55
收件人: chagg at foxmail.com
抄送: openstack-zh
主题: Re: Re: [Openstack-zh] 请问有谁能把创建虚拟机经过cells调度的流程说明一下,我反复阅读代码也没有发现对cells的调用,谢谢!
On Wed, Aug 10, 2016 at 1:33 PM, chagg at foxmail.com <chagg at foxmail.com> wrote:
> class ComputeCellsAPI(compute_api.API)
> 的create函数定义如下,调用的是compute_api.API的create函数,并没有进入cells的调度。
 
看create函数的时候,记住python的多态特性。
 
>
> def create(self, *args, **kwargs):
>     """We can use the base functionality, but I left this here just
>     for completeness.
>     """
>     return super(ComputeCellsAPI, self).create(*args, **kwargs)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-zh/attachments/20160810/8f5cf804/attachment.html>


More information about the Openstack-zh mailing list