Ask Your Question
0

Metadata server error

asked 2014-02-28 06:07:03 -0500

BuddyBoy13 gravatar image

I'm running an all-in-one setup created from packstack. Everything is working as it should except for the metadata server. This is a problem for a couple of reasons, the first being that I need it to work so that I can pass variables to the instances at startup. Even if that were not the case, some instances such as Ubuntu for example, won't start sshd if the metadata retrieval fails (at least I think that's how it works). Here's the error I'm receiving when I curl it manually from a CentOS instance:

 [root@host-10-230-0-2 ~]# curl http://169.254.169.254/latest
<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  Remote metadata server experienced an internal server error.<br /><br />
</body>

Oddly enough, if I reboot the controller (Where the metadata server is running), and then bring up the CentOS instance, it still fails to retrieve the metadata but if I curl it, I can get a response..........once. After that it gives me the 500 again.

[root@host-10-230-0-2 ~]# curl http://169.254.169.254/latest
meta-data/[root@host-10-230-0-2 ~]#

And then....

[root@host-10-230-0-2 ~]# curl http://169.254.169.254/latest
<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  Remote metadata server experienced an internal server error.<br /><br />
 </body>
</html>[root@host-10-230-0-2 ~]#

No and then!

I've been tailing all of the pertinent log files but not seeing anything that I interpret as a problem. I'm looking for any advice here, as to what the cause might be.

Thanks!

edit retag flag offensive close merge delete

Comments

You're using metadata proxy ? Do you see errors in the proxy server logs ? After that please check nova-api logs. Maybe you need to activate debuggin on proxy and nova api to find the problem.

foexle gravatar imagefoexle ( 2014-02-28 06:28:47 -0500 )edit

How can I determine if I'm using the proxy? Logfiles under /var/log/nova include: api.log cert.log compute.log conductor.log consoleauth.log console.log metadata-api.log scheduler.log xvpvncproxy.log Nova API logs are not showing any errors.

BuddyBoy13 gravatar imageBuddyBoy13 ( 2014-02-28 08:29:27 -0500 )edit
1

look at neutron ls -la /var/log/neutron/ there should be metadata proxy logs. You can check your settings in /etc/neutron/neutron.conf and /etc/neutron/metadata_agent.conf

foexle gravatar imagefoexle ( 2014-02-28 08:41:31 -0500 )edit

When I attempt to connect using curl from the instance to http://169.254.169.254, the metadata-agent.log shows this error: 2014-02-28 09:47:39.609 3524 ERROR neutron.agent.metadata.agent [-] Unexpected error. AttributeError: 'HTTPClient' object has no attribute 'auth_tenant_id'

BuddyBoy13 gravatar imageBuddyBoy13 ( 2014-02-28 08:49:29 -0500 )edit

Found this....https://ask.openstack.org/en/question/12439/metadata-agent-throwing-attributeerror-httpclient-object-has-no-attribute-auth_tenant_id-with-latest-release/

BuddyBoy13 gravatar imageBuddyBoy13 ( 2014-02-28 08:59:51 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-02-28 11:03:39 -0500

BuddyBoy13 gravatar image

Thanks foexle....your comment pointed me in the right direction. I needed to install python-neutronclient. Once I did that, the issue was resolved.

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-02-28 06:07:03 -0500

Seen: 3,584 times

Last updated: Feb 28 '14