Ask Your Question
0

Instance gets dhcp IP but fails to connect to metadata server

asked 2014-05-28 13:25:33 -0500

S.Bharath gravatar image

Hi All,

I'm working on getting basic Instance network to work, while i can connect to console on cirros image and check the ifconfig, i can see it has gotten an IP and i'm also able to ping gateway server and dhcp server but i can't ping any servers like controller or compute from the instance or be able to ping the instance from outside the instance, i have made the correct setup in the security groups to allow tcp and icmp, when i do curl http://169.254.169.254 it throws this message

<html>
 <head>
  <title> 500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  Remote metadata server experienced an internal server error.<br /><br />
 </body>
</html>

when i check the Metadata agent log in network node, i see a two errors listed below.

2014-05-28 23:37:09.757 1189 INFO eventlet.wsgi.server [req-ef237682-2b98-4842-ae06-9f1cf695febb None] 172.31.100.15,<local> - - [28/May/2014 23:37:09] "GET / HTTP/1.1" 500 229 0.004751

2014-05-28 23:42:27.883 1189 INFO eventlet.wsgi.server [req-ef237682-2b98-4842-ae06-9f1cf695febb None] (1189) accepted ''

2014-05-28 23:42:27.885 1189 ERROR neutron.agent.metadata.agent [req-ef237682-2b98-4842-ae06-9f1cf695febb None] Unexpected error.
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent Traceback (most recent call last):
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 110, in __call__
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     instance_id, tenant_id = self._get_instance_and_tenant_id(req)
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 134, in _get_instance_and_tenant_id
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     device_owner=n_const.DEVICE_OWNER_ROUTER_INTF)['ports']
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 111, in with_params
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     ret = self.function(instance, *args, **kwargs)
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 306, in list_ports
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     **_params)
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1250, in list
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     for r in self._pagination(collection, path, **params):
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1263, in _pagination
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     res = self.get(path, params=params)
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1236, in get
2014-05-28 23:42:27.885 1189 TRACE neutron ...
(more)
edit retag flag offensive close merge delete

Comments

Can you post the contents of metadata_agent.ini also?

timoteoverde gravatar imagetimoteoverde ( 2014-05-28 14:48:43 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-28 16:17:20 -0500

S.Bharath gravatar image

Issue sorted out, there was a spelling error in metadata-agent.ini for auth it had become uth

edit flag offensive delete link more

Comments

Also had that problem more than once when setting up openstack. guess that layer 8 ist the most error prone

lufaxo gravatar imagelufaxo ( 2016-03-07 13:51:40 -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

Stats

Asked: 2014-05-28 13:25:33 -0500

Seen: 924 times

Last updated: May 28 '14