Revision history [back]

click to hide/show revision 1
initial version

Instance can't receive user-data

Hi,

I'm using OpenStack Juno and Heat to dynamically provision an instance. At the moment, it's all lab and I'm studying that example: https://developer.rackspace.com/blog/openstack-orchestration-in-depth-part-2-single-instance-deployments.

However I realised, my instance came up with proper hostname etc. but it didn't execute the parts given by user-data.

I logged into the VM (Ubuntu 14.04) and realised the following:

I can retrieve metadata propery. For example:

ubuntu@flasky-flasky-instance-cqjk2pf6oynt:~$ curl http://169.254.169.254/2009-04-04/meta-data
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
placement/
public-hostname
public-ipv4
public-keys/
ramdisk-id
reservation-id

and

ubuntu@flasky-flasky-instance-cqjk2pf6oynt:~$ curl http://169.254.169.254/2009-04-04/meta-data/hostname
flasky-flasky-instance-cqjk2pf6oynt.novalocal

However when I try to retrieve the user data, I get a strange error message:

ubuntu@flasky-flasky-instance-cqjk2pf6oynt:~$ curl http://169.254.169.254/2009-04-04/user-data
curl: (56) Recv failure: Connection reset by peer

But, when I check the Nova API log, I seems the file is delivered:

2015-06-18 10:32:09.627 1623 INFO nova.api.ec2 [req-11c8aaec-6ffd-4537-b1a3-e18af6f15e8f None] 0.190732s 10.0.0.192 GET /2009-04-04/user-data None:None 200 [Python-httplib2/0.8 (gzip)] text/plain text/plain
2015-06-18 10:32:09.628 1623 INFO nova.metadata.wsgi.server [req-11c8aaec-6ffd-4537-b1a3-e18af6f15e8f None] 10.10.10.2,10.0.0.192 "GET /2009-04-04/user-data HTTP/1.1" status: 200 len: 2440 time: 0.1923170

Any idea what's going wrong?

Best regards, Dominik