[Openstack] Post creation script on an instance not working

Edgar Magana emagana at plumgrid.com
Wed Feb 5 06:45:28 UTC 2014


Hello Sayali,

Is the meta-data agent running? Can you inject a ssh key on the VM?
The post-script is a function added by the metadata service in nova and
neutron.

Edgar


On Tue, Feb 4, 2014 at 9:11 PM, Sayali Lunkad <sayali.92720 at gmail.com>wrote:

> Hey,
>
> I am trying to run a post creation script on cirros instance on devstack.
>
> Here are the contents of my script :-
>
> #!/bin/bash
> cd /home/cirros/
> sudo mkdir myfolder
> cd myfolder
> touch helloworld.txt
> echo "hello" >> helloworld.txt
>
> But the file doesn't get created. What possibly could be going wrong ?
> Also I tried using the ubuntu-cloud image and minimalistic ubuntu with no
> success.
>
> Best Regards,
> Sayali
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140204/27fc0455/attachment.html>


More information about the Openstack mailing list