Ask Your Question
0

Metadata proxy 500 error from instances havana

asked 2014-07-08 17:05:34 -0500

amcbride gravatar image

I installed the havana release of openstack on dedicated Ubuntu 12.04 physical blades about 2 months ago. I am using neutron networking with vlan tenancy. The networking seems to be functioning correctly, I am able to access instances when I add floating IP's etc.

I have spent several hours over the past few weeks trying to get this deployment fully functional and cannot figure out what I have done wrong.

My issue is failing metadata requests when instances are running cloud-init.

If I login to an instance from the vnc console, and try to hit the metadata proxy with curl, I get this error:

$ curl http://169.254.169.254/
<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  An unknown error has occurred. Please try your request again.<br /><br />


 </body>
</html>$

If I check the logs for the metadata proxy on the network node:

==> /var/log/neutron/neutron-ns-metadata-proxy-eb198f21-ac73-4050-8f9c-faa15e326843.log <==
2014-07-08 17:40:25.224 27272 ERROR neutron.agent.metadata.namespace_proxy [-] Unexpected error.
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy Traceback (most recent call last):
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/namespace_proxy.py", line 74, in __call__
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     req.body)
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/namespace_proxy.py", line 105, in _proxy_request
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     connection_type=UnixDomainHTTPConnection)
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     (response, content) = self._conn_request(conn, request_uri, method, body, headers)
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1132, in _conn_request
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     conn.connect()
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/namespace_proxy.py", line 48, in connect
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     self.sock.connect(cfg.CONF.metadata_proxy_socket)
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 192, in connect
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy     while not socket_connect(fd, address):
2014-07-08 17:40:25.224 27272 TRACE neutron.agent.metadata.namespace_proxy   File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-14 15:30:25 -0500

Eric GH gravatar image

Not sure if runing "export no_proxy=169.254.169.254" helps in your situation.

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: 2014-07-08 17:05:34 -0500

Seen: 512 times

Last updated: Jul 14 '14