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 - DataSourceEc2.py[WARNING]:   07:12:08 [70/100]: http error [500]

I set an iptables nat rule on network node to change dst IP address from 169.254.169.254:80 to 10.50.4.22:8773(CC_host 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 10.50.4.22:8773 and get an output:

1.0
2007-01-19
2007-03-01
2007-08-29
2007-10-10
2007-12-15
2008-02-01
2008-09-01
2009-04-04

but when I run curl 10.50.4.22:8773/2009-04-04/, it turns out 404 error:

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



 </body>
</html>

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
1

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
0

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(10.50.4.24) in database and reply a http internal 500 error to instances.

edit flag offensive delete link more

Comments

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

Stats

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

Seen: 709 times

Last updated: Jan 05 '16