Ask Your Question

resource plugin

asked 2014-04-22 18:20:38 -0500

colossal gravatar image

openstack heat resource plugin needs to be in .py OR .pyc format?

edit retag flag offensive close merge delete


Resource plugin must be a Python class that implement certain methods. Does that answer your question?

imtiaz.chowdhury gravatar imageimtiaz.chowdhury ( 2014-04-23 01:47:53 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-04-24 07:30:46 -0500

dbaxps gravatar image

Per Instructions

To install a plugin, copy the Python modules to one of the configured plugin directories. Note that heat-engine must be restarted after this in order to load the new plugins.
The configured directories are treated as the __path__ entries for the package heat.engine.plugins. All Python modules appearing in this package will be imported and scanned for resource implementations

Python automatically compiles Python source code when you import a module.
So , if it is supposed to be imported , it should be *.py file

edit flag offensive delete link more


as it says. ..treated as __path__ entries from the package heat.engine.plugin........ does that mean my class needs to be in that package?

colossal gravatar imagecolossal ( 2014-04-24 17:39:38 -0500 )edit

answered 2014-04-23 01:56:33 -0500

imtiaz.chowdhury gravatar image

A resource plugin must be Python module which provides implementation of certain functions. Please see From the documentation ( ( ) for more information. If you checkout Heat source code from Git Hub then you can see some sample Heat Plugin implementation under heat/contrib directory.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-22 18:20:38 -0500

Seen: 88 times

Last updated: Apr 24 '14