Ask Your Question
0

Heat VM creation to trigger a change

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

Meir gravatar image

Hello,

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,

Meir

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

Comments

Thanks so much Zane!

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

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

Stats

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

Seen: 107 times

Last updated: Mar 21 '17