<div dir="ltr">Hi Jacob, i just tried using your configuration but i stil get the same answer from nova:<div><br></div><div><div></html>root@asado:~# curl <a href="http://172.19.136.10:8775/">http://172.19.136.10:8775/</a></div>
<div><html></div><div> <head></div><div> <title>404 Not Found</title></div><div> </head></div><div> <body></div><div> <h1>404 Not Found</h1></div><div> The resource could not be found.<br /><br /></div>
<div><br></div><div><br></div><div><br></div><div> </body></div><div></html>root@asado:~# </div></div><div><br></div><div style>The 8775 port is open:</div><div style><br></div><div style><div>root@asado:~# netstat -ntlp</div>
<div>Conexiones activas de Internet (solo servidores)</div><div>Proto Recib Enviad Dirección local Dirección remota Estado PID/Program name</div><div>tcp 0 0 <a href="http://0.0.0.0:6080">0.0.0.0:6080</a> 0.0.0.0:* ESCUCHAR 42400/python </div>
<div>tcp 0 0 <a href="http://0.0.0.0:8773">0.0.0.0:8773</a> 0.0.0.0:* ESCUCHAR 31318/python </div><div>tcp 0 0 <a href="http://0.0.0.0:8774">0.0.0.0:8774</a> 0.0.0.0:* ESCUCHAR 31318/python </div>
<div>tcp 0 0 <a href="http://0.0.0.0:8775">0.0.0.0:8775</a> 0.0.0.0:* ESCUCHAR 31318/python </div><div>tcp 0 0 <a href="http://172.19.136.10:9191">172.19.136.10:9191</a> 0.0.0.0:* ESCUCHAR 42434/python </div>
<div>tcp 0 0 <a href="http://172.19.136.10:5000">172.19.136.10:5000</a> 0.0.0.0:* ESCUCHAR 33371/python </div><div>tcp 0 0 <a href="http://172.19.136.10:11211">172.19.136.10:11211</a> 0.0.0.0:* ESCUCHAR 22543/memcached </div>
<div>tcp 0 0 <a href="http://172.19.136.10:9292">172.19.136.10:9292</a> 0.0.0.0:* ESCUCHAR 42425/python </div><div>tcp 0 0 <a href="http://0.0.0.0:5900">0.0.0.0:5900</a> 0.0.0.0:* ESCUCHAR 38527/kvm </div>
<div>tcp 0 0 <a href="http://0.0.0.0:5901">0.0.0.0:5901</a> 0.0.0.0:* ESCUCHAR 13269/kvm </div><div>tcp 0 0 <a href="http://0.0.0.0:80">0.0.0.0:80</a> 0.0.0.0:* ESCUCHAR 48995/apache2 </div>
<div>tcp 0 0 <a href="http://0.0.0.0:22">0.0.0.0:22</a> 0.0.0.0:* ESCUCHAR 1776/sshd </div><div>tcp 0 0 <a href="http://172.19.136.10:35357">172.19.136.10:35357</a> 0.0.0.0:* ESCUCHAR 33371/python </div>
<div>tcp 0 0 <a href="http://0.0.0.0:16509">0.0.0.0:16509</a> 0.0.0.0:* ESCUCHAR 2032/libvirtd </div><div>tcp6 0 0 :::22 :::* ESCUCHAR 1776/sshd </div>
<div>root@asado:~# </div><div><br></div><div style>Where does the metadata information com from? Because it says "The resource could not be found", maybe it's a source problem. </div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/5/14 Jacob Liberman <span dir="ltr"><<a href="mailto:jliberma@redhat.com" target="_blank">jliberma@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>i run metadata-api on the compute nodes<br>
<br>
<br>
Start with this:<br>
<br>
openstack-config --set /etc/nova/nova.conf DEFAULT metadata_listen
0.0.0.0<br>
openstack-config --set /etc/nova/nova.conf DEFAULT
metadata_manager nova.api.manager.MetadataManager<br>
openstack-config --set /etc/nova/nova.conf DEFAULT
metadata_listen_port 8775<br>
openstack-config --set /etc/nova/nova.conf DEFAULT metadata_host
172.19.136.10<br>
<br>
make sure 8775 is open<br>
<br>
start by listening at 0.0.0.0<br>
<br>
<br>
thanks, jacob<div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 05/13/2013 04:40 PM, Juan José Pavlik Salles wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi, i'm trying to get metadata-service working but
it's getting a bit complicated.
<div><br>
</div>
<div>When i start an instance i get these messages:</div>
<div><br>
</div>
<div>
<div>cloudinit start running: Mon, 13 May 2013 20:52:08 +0000.
up 3.44 seconds</div>
<div>20130513 20:52:19,756 util.py[WARNING]: '<a href="http://169.254.169.254/20090404/metadata/instanceid" target="_blank">http://169.254.169.254/20090404/metadata/instanceid</a>'
failed [11/120s]: http error [504]</div>
<div>20130513 20:52:28,821 util.py[WARNING]: '<a href="http://169.254.169.254/20090404/metadata/instanceid" target="_blank">http://169.254.169.254/20090404/metadata/instanceid</a>'
failed [20/120s]: http error [504]</div>
<div>20130513 20:52:38,892 util.py[WARNING]: '<a href="http://169.254.169.254/20090404/metadata/instanceid" target="_blank">http://169.254.169.254/20090404/metadata/instanceid</a>'
failed [30/120s]: http error [504]</div>
<div>20130513 20:52:47,955 util.py[WARNING]: '<a href="http://169.254.169.254/20090404/metadata/instanceid" target="_blank">http://169.254.169.254/20090404/metadata/instanceid</a>'
failed [39/120s]: http error [504]</div>
<div>20130513 20:52:57,064 util.py[WARNING]: '<a href="http://169.254.169.254/20090404/metadata/instanceid" target="_blank">http://169.254.169.254/20090404/metadata/instanceid</a>'
failed [48/120s]: http error [504]</div>
<div>20130513 20:53:06,132 util.py[WARNING]: '<a href="http://169.254.169.254/20090404/metadata/instanceid" target="_blank">http://169.254.169.254/20090404/metadata/instanceid</a>'
failed [57/120s]: http error [504]</div>
<div><br>
</div>
<div>I have two different but related problems here: first of
all i can't even get metadata locally from the nova-api
server and after fixing this i'll have to deal with the how
to get 169.254.169.254 be my metada-service.</div>
<div><br>
</div>
<div>I've checked nova.conf on my compute nodes and i have
these flags:</div>
<div><br>
</div>
<div>
<div>metadata_host=172.19.136.10</div>
<div>metadata_listen=172.19.136.10</div>
<div>
<div>enabled_apis=ec2,osapi_compute,metadata</div>
</div>
<div><br>
</div>
<div>When i try to reach the medata with curl (<a href="http://docs.openstack.org/trunk/openstack-compute/admin/content/metadata-service.html" target="_blank">http://docs.openstack.org/trunk/openstack-compute/admin/content/metadata-service.html</a>):</div>
<div><br>
</div>
</div>
<div>
<div>root@asado:~# curl <a href="http://172.19.136.10:8775/" target="_blank">http://172.19.136.10:8775/</a></div>
<div><html></div>
<div> <head></div>
<div> <title>404 Not Found</title></div>
<div> </head></div>
<div> <body></div>
<div> <h1>404 Not Found</h1></div>
<div> The resource could not be found.<br /><br
/></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> </body></div>
<div></html>root@asado:~# </div>
</div>
<div><br>
</div>
<div>In the nova-api.log file:</div>
<div><br>
</div>
<div>
<div>2013-05-13 21:06:56.024 22344 ERROR
nova.api.metadata.handler [-] Failed to get metadata for
ip: 172.19.136.10</div>
<div>2013-05-13 21:06:56.025 22344 INFO nova.api.ec2 [-]
0.638368s 172.19.136.10 GET / None:None 404 [curl/7.22.0
(x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a>
libidn/1.23 librtmp/2.3] text/plain text/html</div>
<div>2013-05-13 21:06:56.025 22344 INFO
nova.metadata.wsgi.server [-] 172.19.136.10 "GET /
HTTP/1.1" status: 404 len: 278 time: 0.6391542</div>
</div>
<div><br>
</div>
<div>Maybe i'm doing the wrong tests here. </div>
<div><br>
</div>
<div>-- <br>
</div>
<div dir="ltr">Pavlik Salles Juan José</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
OpenStack-operators mailing list
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>
</div>