error getting metadata

Bug #1519868 reported by Paul Carlton
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

When cloud init runs I get these errors in the meta.log

2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent [-] Unexpected error.
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent Traceback (most recent call last):
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/home/pcarlton/openstack/neutron/neutron/agent/metadata/agent.py", line 92, in __call__
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent return self._proxy_request(instance_id, tenant_id, req)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/home/pcarlton/openstack/neutron/neutron/agent/metadata/agent.py", line 195, in _proxy_request
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent body=req.body)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1609, in request
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1351, in _request
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent (response, content) = self._conn_request(conn, request_uri, method, body, headers)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1307, in _conn_request
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent response = conn.getresponse()
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/httplib.py", line 1049, in getresponse
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent response = self.response_class(*args, **kwds)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/httplib.py", line 352, in __init__
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent self.fp = sock.makefile('rb', 0)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 296, in makefile
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent dupped = self.dup()
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent File "/usr/local/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 287, in dup
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent newsock = type(self)(sock, set_nonblocking=False)
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent TypeError: __init__() got an unexpected keyword argument 'set_nonblocking'
2015-11-25 15:04:27.125 124970 ERROR neutron.agent.metadata.agent
2015-11-25 15:04:27.132 124970 INFO eventlet.wsgi.server [-] 10.10.10.5,<local> - - [25/Nov/2015 15:04:27] "GET /2009-04-04/meta-data/instance-id HTTP/1.1" 500 229 0.490421

Revision history for this message
Paul Carlton (paul-carlton2) wrote :

can't remember exactly but I think it was a proxy issue

Revision history for this message
Prashant Shetty (prashantshetty) wrote :

Looks like issue on my setup was also due to proxy setting on network nodes.
We had http, https and ftp proxy settings to pull packages from internet.

As metadata request were using http, proxy caused above problem. Removed proxy settings and it seems to work fine now... Thanks.

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.