Ask Your Question
0

Neutron Metadata Agent could not find Service or Region

asked 2014-05-24 15:35:15 -0500

gurubert gravatar image

updated 2014-05-24 15:36:12 -0500

Hi,

I followed the OpenStack installation guide for Ubuntu 14.04 and I am able to launch a cirros instance from the image.

But I see this in /var/log/neutron/metadata-agent.log:

2014-05-24 22:19:29.469 26396 ERROR neutron.agent.metadata.agent [req-3a62e13b-27b6-4f14-adb1-3ebf3e9e1b9c None] Unexpected error.
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent Traceback (most recent call last):
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 110, in __call__
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     instance_id, tenant_id = self._get_instance_and_tenant_id(req)
2014-05-24 22:19:29.469 26396 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-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     device_owner=n_const.DEVICE_OWNER_ROUTER_INTF)['ports']
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 111, in with_params
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     ret = self.function(instance, *args, **kwargs)
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 306, in list_ports
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     **_params)
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1250, in list
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     for r in self._pagination(collection, path, **params):
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1263, in _pagination
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     res = self.get(path, params=params)
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1236, in get
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     headers=headers, params=params)
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     headers=headers, params=params)
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1150, in do_request
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     self.httpclient.authenticate_and_fetch_endpoint_url()
2014-05-24 22:19:29.469 26396 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-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent     self.authenticate()
2014-05-24 22:19:29.469 26396 TRACE neutron.agent.metadata.agent   File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 252, in authenticate
2014-05-24 22:19:29.469 26396 TRACE neutron ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-28 10:09:22 -0500

timoteoverde gravatar image

This is a real issue, but whether or not it can be ignored depends on your desire to fetch metadata into your newly provisioned instance. Also, this will prohibit cloud-init (see https://help.ubuntu.com/community/UEC/Images (https://help.ubuntu.com/community/UEC...) ) enabled instances from getting auto-configured.

More than likely metadata_agent.ini on the Neutron server isn't properly configured. For example, I've seen the exact error message you describe above when auth_region (regionOne in the Ubuntu guide you are using) doesn't match what you already configured with Keystone. Note, this is also case sensitive. Run keystone endpoint-list and look at the region column to see if you've got it right.

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-05-24 15:35:15 -0500

Seen: 793 times

Last updated: May 28 '14