internal error when contactive the metadata service

asked 2016-12-13 17:57:05 -0600

bme gravatar image

I have two machines setup following the RDO guide for newton with the exception that I used openvswitch. Everything seems to be working apart from the fact that when instances contact the metadata service it returns 500. Digging into the nova-api logs I see lots of lines like the following:

2016-12-12 16:49:49.221 30364 ERROR nova.api.metadata.handler Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-387aefdc-15a3-4021-b7ca-6ca2fd5c0d0f) 2016-12-12 16:49:49.221 30364 ERROR nova.api.metadata.handler 2016-12-12 16:49:49.227 30364 INFO nova.metadata.wsgi.server [req-817e7ade-3f7e-44f4-96ba-42ca58fce9be - - - - -], "GET /2009-04-04/meta-data/instance-id HTTP/1.1" status: 500 len: 229 time: 0.3256161 2016-12-12 16:49:51.437 30364 ERROR nova.api.metadata.handler [req-27a03f3d-7376-4958-ba95-052e17739fe2 - - - - -] Failed to get metadata for instance id: a85b5c06-2174-4a63-9ec3-7ae8589b4583

I am assuming that there is some mis-configuration that means relevant auth config is being propagated but I don't know where to start looking.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-15 07:53:18 -0600

bme gravatar image

updated 2016-12-15 08:05:36 -0600

This was being caused by an incorrect password being supplied in the neutron section of the nova.conf file on the controller.

This was discovered by:

Observing the 401 in the logs and deducing that the service was calling someone else, and getting a 401, running tcpdump to get a quick pcap, noting the 401 returned from keystone, grabbing the json from the original nova post and observing the incorrect password.

It then wasn't hard to tie this back to the config file.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-12-13 17:57:05 -0600

Seen: 240 times

Last updated: Dec 15 '16