Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

hello

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

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

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 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     res = self.get(path, params=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 1321, in get
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     headers=headers, params=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 1298, in retry_request
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     headers=headers, params=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 1233, in do_request
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self.httpclient.authenticate_and_fetch_endpoint_url()
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 150, in authenticate_and_fetch_endpoint_url
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self.authenticate()
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 247, in authenticate
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self._authenticate_keystone()
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 236, in _authenticate_keystone
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self._extract_service_catalog(resp_body)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 202, in _extract_service_catalog
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     endpoint_type=self.endpoint_type)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     return func(*args, **kwargs)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/keystoneclient/service_catalog.py", line 231, in url_for
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     raise exceptions.EndpointNotFound(msg)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent EndpointNotFound: adminURL endpoint for network service not found
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent
2015-08-21 14:31:34.191 8343 INFO eventlet.wsgi.server [-] 192.168.2.103,<local> - - [21/Aug/2015 14:31:34] "GET / HTTP/1.1" 500 229 0.081963

don't know where I need to search ? to solve the problem

One the controller I can access the metadata service on port 8775 on the admin IP One the network I can see the redirect in the iptables on the qrouter (https://ask.openstack.org/en/question/1515/metadata-server-cannot-be-reached-which-port-is-used-by-quantum-service/)

best regards

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

hello

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

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

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 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     res = self.get(path, params=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 1321, in get
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     headers=headers, params=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 1298, in retry_request
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     headers=headers, params=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 1233, in do_request
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self.httpclient.authenticate_and_fetch_endpoint_url()
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 150, in authenticate_and_fetch_endpoint_url
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self.authenticate()
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 247, in authenticate
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self._authenticate_keystone()
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 236, in _authenticate_keystone
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     self._extract_service_catalog(resp_body)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 202, in _extract_service_catalog
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     endpoint_type=self.endpoint_type)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     return func(*args, **kwargs)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/keystoneclient/service_catalog.py", line 231, in url_for
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent     raise exceptions.EndpointNotFound(msg)
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent EndpointNotFound: adminURL endpoint for network service not found
2015-08-21 14:31:34.189 8343 TRACE neutron.agent.metadata.agent
2015-08-21 14:31:34.191 8343 INFO eventlet.wsgi.server [-] 192.168.2.103,<local> - - [21/Aug/2015 14:31:34] "GET / HTTP/1.1" 500 229 0.081963

don't know where I need to search ? to solve the problem

One the controller I can access the metadata service on port 8775 on the admin IP One the network I can see the redirect in the iptables on the qrouter (https://ask.openstack.org/en/question/1515/metadata-server-cannot-be-reached-which-port-is-used-by-quantum-service/)

best regards