Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Instance gets dhcp IP but fails to connect to metadata server

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.agent.metadata.agent     headers=headers, 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 1221, in retry_request
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     headers=headers, 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 1150, in do_request
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     self.httpclient.authenticate_and_fetch_endpoint_url()
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 179, in authenticate_and_fetch_endpoint_url
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     self.authenticate()
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 231, in authenticate
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent     token_url = self.auth_url + "/tokens"
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
2014-05-28 23:42:27.885 1189 TRACE neutron.agent.metadata.agent
2014-05-28 23:42:27.889 1189 INFO eventlet.wsgi.server [req-ef237682-2b98-4842-ae06-9f1cf695febb None] 172.31.100.15,<local> - - [28/May/2014 23:42:27] "GET / HTTP/1.1" 500 229 0.004768