Ask Your Question
0

curl http://169.254.169.254 fail on instance : code 500

asked 2015-08-21 09:51:23 -0500

p4ul gravatar image

updated 2015-08-25 02:18:55 -0500

hello

when I do wget http://169.254.169.254 (curl not installed on cirros) I get an error 500 (somebody answer to me \o/)

If I check the log on my network node I have http://paste.openstack.org/show/yhn7FESOH2JucKK3GAuZ/ (http://paste.openstack.org/show/yhn7F...)

34.108 8343 INFO eventlet.wsgi.server [-] (8343) accepted ''
2015-08-21 14:31:34.112 8343 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2015-08-21 14:31:34.189 8343 ERROR neutron.agent.metadata.agent [-] Unexpected error.
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent Traceback (most recent call last):
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 125, in __call__
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     instance_id, tenant_id = self._get_instance_and_tenant_id(req)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 189, in _get_instance_and_tenant_id
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     ports = self._get_ports(remote_address, network_id, router_id)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 177, in _get_ports
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     networks = self._get_router_networks(router_id)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 100, in __call__
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     return self._get_from_cache(target_self, *args, **kwargs)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 78, in _get_from_cache
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     item = self.func(target_self, *args, **kwargs)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 145, in _get_router_networks
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     n_const.DEVICE_OWNER_DVR_INTERFACE])['ports']
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     ret = self.function(instance, *args, **kwargs)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 313, in list_ports
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     **_params)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1335, in list
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     for r in self._pagination(collection, path, **params):
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1348, in _pagination
2015-08-21 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-08-25 02:44:44 -0500

busyboy gravatar image

looks like your metadata-agent.ini. is not correct.

resync all your related file, there must be something wrong in either

1) neutron.con 2) metadata_agent.ini 3) l3_agent.ini etc.

edit flag offensive delete link more

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-08-21 09:51:23 -0500

Seen: 314 times

Last updated: Aug 25 '15