meta-data problem: 404 not found and http error 500
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