metadata/instance_id failed

asked 2014-07-17 02:18:56 -0500

RHK gravatar image

updated 2014-07-18 02:26:09 -0500

Hi All,

After launching ubuntu virtual instance, i am getting meta data issue. Below was the logs in vm console log.

cloud-init start running: Thu, 17 Jul 2014 06:50:02 +0000. up 6.14 seconds

2014-07-17 06:51:04,856 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: url error [[Errno 111] Connection refused]

2014-07-17 06:51:05,862 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [1/120s]: url error [[Errno 111] Connection refused]

2014-07-17 06:51:06,867 - util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [2/120s]: url error [[Errno 111] Connection refused]

I checked network node logs, there is no logs in file.

root@network:/var/log/neutron# tail -f openvswitch-agent.log

root@network:/var/log/neutron# tail -f dhcp-agent.log

root@network:/var/log/neutron# tail -f metadata-agent.log

In compute node also no logs found.

root@compute:/var/log/neutron# tail -f openvswitch-agent.log

nova api is sendind the request to compute.

root@controller:/var/log/nova# tail -f nova-api.log

2014-07-17 12:20:03.509 3064 INFO nova.osapi_compute.wsgi.server [req-40445f56-91da-4682-a919-279a4283f4c6 dbb741af78b04ff48c65b8e334e27b3a 4f946a90cc9547d9aefce97f7260db12] 192.168.1.9 "POST /v2/4f946a90cc9547d9aefce97f7260db12/servers/4004142f-c5f0-45c0-b56c-2800734c5ba1/action HTTP/1.1" status: 200 len: 2182 time: 0.1015930

2014-07-17 12:20:39.280 3064 INFO nova.osapi_compute.wsgi.server [-] (3064) accepted ('192.168.1.9', 47670)

I am getting this metadata error frequently when i deploy the openstack. Please help me to fix this issue.

Regards, RHK

edit retag flag offensive close merge delete

Comments

$iptables-save | grep 8775 on Controller
$netstat -antp | grep 8775 on Controller

dbaxps gravatar imagedbaxps ( 2014-07-17 03:18:44 -0500 )edit

Sample[root@icehouse1 ~]

# netstat -antp |  grep 8775
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      1451/python         
[root@icehouse1 ~]# ps -ef | grep 1451
nova      1451     1  0 08:41 ?        00:01:16 /usr/bin/python /usr/bin/nova-api
nova      5266  1451  0 08:42 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
nova      5267  1451  0 08:42 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
nova      5288  1451  0 08:42 ?        00:00:04 /usr/bin/python /usr/bin/nova-api
nova      5289  1451  0 08:42 ?        00:00:04 /usr/bin/python /usr/bin/nova-api
nova      5321  1451  0 08:42 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
nova      5323  1451  0 08:42 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
dbaxps gravatar imagedbaxps ( 2014-07-17 03:37:11 -0500 )edit

iptables-save | grep 8775 -A nova-api-INPUT -d 192.168.1.9/32 -p tcp -m tcp --dport 8775 -j ACCEPT netstat -antp | grep 8775 tcp 0 0 0.0.0.0:8775 0.0.0.0:* LISTEN 1536/python ps -ef | grep 1451 root 22938 17941 0 15:36 pts/1 00:00:00 grep --color=auto 1451 ps -ef | grep 1536 nova 1536 1 1 Jul16 ? 00:21:48 /usr/bin/python /usr/bin/nova-api --config-file=/etc/nova/nova.conf

RHK gravatar imageRHK ( 2014-07-17 05:12:28 -0500 )edit

$ip netns exec qrouter-corresponding-router-id iptables -S -t nat | grep 169.254
$ip netns exec qrouter-corresponding-router-id netstat -antp

dbaxps gravatar imagedbaxps ( 2014-07-17 05:30:38 -0500 )edit

$neutron agent-list

dbaxps gravatar imagedbaxps ( 2014-07-17 05:32:40 -0500 )edit