Ask Your Question

Cloud init user_data is not run

asked 2014-12-02 05:27:04 -0500

adam__ gravatar image

updated 2014-12-02 05:31:05 -0500

I'm using IceHouse and trying to setup some basic HEAT templates. I've got some extremely basic scenarios down where I can get a server (or multiple) servers up and running. Now I'm trying to do some basic customisation post-creation via the use of the user_data property. However it never seems to be executed. I have tried echo'ing strings I can search. touch-ing files so that I can look for them after. Now I am trying the #cloud-init directive but still I cannot see evidence of it being run. Here is what my current HEAT template looks like.

I can't seem to find anything in common with other forums/posters for reasons why it may not be working. But there are a lot of errors in the /var/log/cloud-init.log file! Just I can't understand them. What sticks out to me is this extract from the log file.

Any help or links to the right direction would be much appreciated.

Edit: With regards to my echo-ing text and touch-ing files I wasn't using #cloud-init I had #!/bin/bash and still nothing seemed to be happening.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-02 07:06:35 -0500

gaud gravatar image

DHCP is working fine on those vm ? from your VM, can you contact the metadata server ?

edit flag offensive delete link more


Thanks for your response. No, I cannot contact the metadata server from the VM. I didn't realise that this was necessary! I thought the post-creation customisation was injected by the service that creates it. I will get a network interface up and running and see if this problem persists.

adam__ gravatar imageadam__ ( 2014-12-02 07:32:31 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-12-02 05:27:04 -0500

Seen: 603 times

Last updated: Dec 02 '14