meta-data problem: 404 not found and http error 500

asked 2011-07-25 07:22:31 -0600

fhb1992 gravatar image

updated 2016-01-02 01:22:11 -0600

uts9 gravatar image

I have a small cluster of 8 machines , 4 of them are running compute node. The instances can't get meta-data with a console-output:

2011-07-25 07:12:08,521 -[WARNING]:   07:12:08 [70/100]: http error [500]

I set an iptables nat rule on network node to change dst IP address from to ip),and also set an SNAT rule so that the instances can access the Internet. I run tcpdump on the network node and controller node, both can get packets on port 8773, so I conclude the link between Controller and instances is OK. I also use an IP in the fixed_ip list to run curl and get an output:


but when I run curl, it turns out 404 error:

  <title>404 Not Found</title>
  <h1>404 Not Found</h1>
  The resource could not be found.<br /><br />


Then I checked the instance_metadata in Mysql database and find out it's empty.

I am confused and don't know why. Could somebody solve this problem? T.T

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-01-05 11:26:37 -0600

Radhakrishnan Rk gravatar image

1.Check whether neutron metadata agent running or not export your openstack credentials to the shell environment

neutron agent-list

image description

2.Check whether the connection is existing between neutron metadata agent and rabbitmq server. image description

edit flag offensive delete link more

answered 2011-07-26 13:22:46 -0600

fhb1992 gravatar image

I finally found out the result. Nova-API uses packet's src ip to identify instances. If I creat a SNAT rule, nova-api can't find the network node's IP( in database and reply a http internal 500 error to instances.

edit flag offensive delete link more


Could you please provide more details.

uts9 gravatar imageuts9 ( 2016-01-02 01:23:27 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-07-25 07:22:31 -0600

Seen: 709 times

Last updated: Jan 05 '16