Ask Your Question
0

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
1

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

Comments

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

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

2 followers

Stats

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

Seen: 422 times

Last updated: Dec 02 '14