Ask Your Question

cesarjorgemartinez's profile - activity

2018-02-14 22:09:28 -0500 received badge  Famous Question (source)
2018-02-14 11:23:17 -0500 commented answer Howto execute one global script when VM creation/boot in OpenStack

Then, when a VM is boot, launch: curl http://169.254.169.254/latest/vendor-data (http://169.254.169.254/latest/vendor-...) This could work?

2018-02-14 11:22:12 -0500 commented answer Howto execute one global script when VM creation/boot in OpenStack

Finding other things (I cannot access to OST to test): Use vendor_data: add to /etc/nova/nova.conf vendordata_providers=StaticJSON vendordata_jsonfile_path=/etc/nova/vendordata.json

/etc/nova/vendordata.json { "customproperty": "test" }

2018-02-13 09:51:40 -0500 commented answer Howto execute one global script when VM creation/boot in OpenStack

Then, depending on the value of one global property, I get this value, as url of the script to execute inside VM

2018-02-13 09:50:32 -0500 commented answer Howto execute one global script when VM creation/boot in OpenStack

Hum, I had thought about defining a property globally. Example for VBox: getextradata global|<uuid|vmname> <key>|enumerate

setextradata global|<uuid|vmname> <key>

2018-02-13 06:24:21 -0500 answered a question Howto execute one global script when VM creation/boot in OpenStack

Hi, reading the possibilities: I can use one metadata propoerty in a image (using openstack image set --property myproperty=value), and when I create a VM from this image, that the VM can read this property?

Regards

2018-01-29 21:20:30 -0500 received badge  Notable Question (source)
2018-01-25 11:41:33 -0500 received badge  Popular Question (source)
2018-01-25 10:58:07 -0500 received badge  Editor (source)
2018-01-25 10:44:37 -0500 answered a question Howto execute one global script when VM creation/boot in OpenStack

I refined my question a bit...

2018-01-25 04:59:08 -0500 received badge  Enthusiast
2018-01-24 08:06:46 -0500 asked a question Howto execute one global script when VM creation/boot in OpenStack

Hi,

I need to execute one global script when VM creation/boot in OpenStack. Example: openstack server create myserver ... Then that the OpenStack instance execute one script that is the same for all this OpenStack instance.

I do not mean to use "--user-data", because this is for apply one custom (and local) script.

How do I do this?

One example of this is the following:

I have one OpenStack enviroment. With many tenants, many VM by tenant, multiple projects.

Then, for all VMs for this OpenStack enviuronment, when I create/boot one other VM (from one image without personalizations, without sensible information), then always need do the same tasks, example: curl -o /path/generalcert.cert http://myprivateurl/generalcert.cer echo "Welcome private banner" > /etc/motd etc.....

For to do these tasks: - I can use --user-data "myprovisionscript.sh". But, all people working in the same OpenStack environment, need to use same script, and known it, and maintain for all. - I need (configuring of any form the OpenStack Server), that this common script run transparently for all users when any user create/boot any instance, without specify --user-data, only using "openstack server create myserver ...". In this way, that these common tasks are maintained by the OpenStack administrator.

I read a bit that exist "meta-data", "vendor-data", etc. I do not know if it is possible to use this to add a script that always runs when create/boot one VM.

Regards, Cesar Jorge

2017-10-01 21:58:50 -0500 received badge  Famous Question (source)
2017-10-01 21:58:50 -0500 received badge  Notable Question (source)
2016-10-03 01:52:06 -0500 received badge  Popular Question (source)
2016-09-26 11:47:37 -0500 asked a question Keystone Liberty software for Centos/RedHat 6

Hi,

I have machines with Centos6/RH6, and need to upgrade the keystone software from Icehouse to Liberty.

The previous package: yum install openstack-keystone

But, for Liberty we found no packages for Centos/RedHat 6.

Is there any for these versions of the operating system? Or howto build an rpm for this

Regards