Ask Your Question
0

Instance can't receive user-data

asked 2015-06-18 03:33:33 -0600

Dominik Rappaport gravatar image

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 (https://developer.rackspace.com/blog/...).

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-18 12:59:14 -0600

Dominik Rappaport gravatar image

My bad, I forgot to reduce MTU (using GRE encapsulation).

edit flag offensive delete link more

Comments

Hi .. I am facing similar issue with OpenStack liberty setup . I can reach the metadata service api but curl -v http://KEYSTONE_IP:5000/v2.0/tokens gives error - curl: (56) Recv failure: Connection reset by peer. Any suggestions ?

G-user gravatar imageG-user ( 2016-06-02 02:58:23 -0600 )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

1 follower

Stats

Asked: 2015-06-18 03:33:33 -0600

Seen: 1,085 times

Last updated: Jun 18 '15