Ask Your Question

Heat VM creation to trigger a change

asked 2017-03-21 03:09:50 -0500

Meir gravatar image


What are the possible ways for doing the following? what do you suggest?

I would like to change files and execute commands at the openstack controller every time a VM is created by the heat api.

Thanks so much,


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-21 16:53:57 -0500

zaneb gravatar image

This is an odd request because it has actions normally taken by the user (creating a VM) triggering actions normally taken by the operator (making changes on the OpenStack controller node).

Your best bet is probably to write a custom resource plugin. You can inherit from the existing Server resource class and override the check_create_complete() method to also do whatever it is you need when the parent method returns True. Then register your resource as the OS::Nova::Server resource type, replacing the built-in one.

edit flag offensive delete link more


Thanks so much Zane!

Meir gravatar imageMeir ( 2017-03-22 02:49:04 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2017-03-21 03:09:50 -0500

Seen: 173 times

Last updated: Mar 21 '17