[Openstack-zh] Openstack Heat resource type的plugin的handle_update()无法被heat stack-update调用

踮起脚尖 zzxwill at gmail.com
Wed Apr 29 02:42:07 UTC 2015


Hi buddy,

我在开发Openstack Heat resource type的plugin,要更新vm的cpu和memory资源,create了一个函数def
handle_update(self, json_snippet, tmpl_diff, prop_diff)。
但是,heat stack-update时总也trigger不到这个函数,每一次只能运行__init__函数。

同时,也加入了下列两行代码。

update_allowed_keys = ('Properties',)
# Everything other than policy can be changed.
update_allowed_properties = ( CPU,MEM,)

并且,根据官方文档
http://docs.openstack.org/developer/heat/pluginguide.html#resource-plug-in-life-cycle
检查了代码。

另外,跟handle_update并列的handle_create()是可以在heat stack-create时trigger的。

请问,您觉得大概是什么原因导致handle_update函数没有被执行? 谢谢。



祝好~
------------------------------------------------------------
​zzxwill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-zh/attachments/20150429/6bdeba61/attachment.html>


More information about the Openstack-zh mailing list