Ask Your Question
0

How to configure OpenStack to run an external scipt after creation of an instance?

asked 2014-01-23 06:25:24 -0500

ciberkot gravatar image

I"m creating an instance and would like to configure OpenStack so that an external script is running right after new instance creation. That external script should be stored on the OpenStack device. The use case: I'm creating a instance, which is not 100% OpenStack compatiable, but it has an API interface, which allows to start an initial configuration. I have a script which should be run after instance is created, it uses API to access the instance and configure it.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-01-23 20:53:10 -0500

dheeru gravatar image

You can give customization script at the last of instance creation from Horizon dashboard. Did you look at this option ?

edit flag offensive delete link more

Comments

Exactly, but in "The creation of an OpenStack image is an art" (which is the name of my next article): It is mentioned that you need CloudInit installed and configured on the image to get a full control on pre and post instance booting on OpenStack. =)

gatuus gravatar imagegatuus ( 2014-01-24 10:26:14 -0500 )edit

I would agree, look at cloud-int and inject this package into your OpenStack cloud images then you have lots of control at boot time over what the instance will look like. https://help.ubuntu.com/community/CloudInit

Bill@Metacloud gravatar imageBill@Metacloud ( 2014-01-24 13:09:19 -0500 )edit

Hi, thanks for the responses, but the "customization script " and cloud-init is not an option. I need to configure the system which is not fully OpenStack aware, this is why I need a way to do my own logic, let say a couple of SNMP requests.

ciberkot gravatar imageciberkot ( 2014-07-14 09:53:53 -0500 )edit
0

answered 2014-01-24 10:06:00 -0500

mismith gravatar image

You want the script to run on a machine outside the VM that gets spawned, correct? For example, the compute or controller node would kick off the script after the VM gets launched?

edit flag offensive delete link more

Comments

Hi, yes, exactly, I need something which could be initiated by OpenStack but itI need to configure the system which is not fully OpenStack aware, this is why I need a way to do my own logic, let say a couple of SNMP requests.

ciberkot gravatar imageciberkot ( 2014-07-14 09:55:18 -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

1 follower

Stats

Asked: 2014-01-23 06:25:24 -0500

Seen: 1,462 times

Last updated: Jan 24 '14