[Openstack-operators] Failed to get metada

Juan José Pavlik Salles jjpavlik at gmail.com
Tue May 14 16:04:17 UTC 2013


Hi Jacob, i just tried using your configuration but i stil get the same
answer from nova:

</html>root at asado:~# curl http://172.19.136.10:8775/
<html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  The resource could not be found.<br /><br />



 </body>
</html>root at asado:~#

The 8775 port is open:

root at asado:~# netstat -ntlp
Conexiones activas de Internet (solo servidores)
Proto  Recib Enviad Dirección local         Dirección remota       Estado
    PID/Program name
tcp        0      0 0.0.0.0:6080            0.0.0.0:*
ESCUCHAR    42400/python
tcp        0      0 0.0.0.0:8773            0.0.0.0:*
ESCUCHAR    31318/python
tcp        0      0 0.0.0.0:8774            0.0.0.0:*
ESCUCHAR    31318/python
tcp        0      0 0.0.0.0:8775            0.0.0.0:*
ESCUCHAR    31318/python
tcp        0      0 172.19.136.10:9191      0.0.0.0:*
ESCUCHAR    42434/python
tcp        0      0 172.19.136.10:5000      0.0.0.0:*
ESCUCHAR    33371/python
tcp        0      0 172.19.136.10:11211     0.0.0.0:*
ESCUCHAR    22543/memcached
tcp        0      0 172.19.136.10:9292      0.0.0.0:*
ESCUCHAR    42425/python
tcp        0      0 0.0.0.0:5900            0.0.0.0:*
ESCUCHAR    38527/kvm
tcp        0      0 0.0.0.0:5901            0.0.0.0:*
ESCUCHAR    13269/kvm
tcp        0      0 0.0.0.0:80              0.0.0.0:*
ESCUCHAR    48995/apache2
tcp        0      0 0.0.0.0:22              0.0.0.0:*
ESCUCHAR    1776/sshd
tcp        0      0 172.19.136.10:35357     0.0.0.0:*
ESCUCHAR    33371/python
tcp        0      0 0.0.0.0:16509           0.0.0.0:*
ESCUCHAR    2032/libvirtd
tcp6       0      0 :::22                   :::*
 ESCUCHAR    1776/sshd
root at asado:~#

Where does the metadata information com from? Because it says "The resource
could not be found", maybe it's a source problem.


2013/5/14 Jacob Liberman <jliberma at redhat.com>

>  i run metadata-api on the compute nodes
>
>
> Start with this:
>
> openstack-config --set /etc/nova/nova.conf DEFAULT metadata_listen 0.0.0.0
> openstack-config --set /etc/nova/nova.conf DEFAULT metadata_manager
> nova.api.manager.MetadataManager
> openstack-config --set /etc/nova/nova.conf DEFAULT metadata_listen_port
> 8775
> openstack-config --set /etc/nova/nova.conf DEFAULT metadata_host
> 172.19.136.10
>
> make sure 8775 is open
>
> start by listening at 0.0.0.0
>
>
> thanks, jacob
>
>
>
>
>
>
>
>
>
> On 05/13/2013 04:40 PM, Juan José Pavlik Salles wrote:
>
> Hi, i'm trying to get metadata-service working but it's getting a bit
> complicated.
>
>  When i start an instance i get these messages:
>
>  cloudinit start running: Mon, 13 May 2013 20:52:08 +0000. up 3.44 seconds
> 20130513 20:52:19,756  util.py[WARNING]: '
> http://169.254.169.254/20090404/metadata/instanceid' failed [11/120s]:
> http error [504]
> 20130513 20:52:28,821  util.py[WARNING]: '
> http://169.254.169.254/20090404/metadata/instanceid' failed [20/120s]:
> http error [504]
> 20130513 20:52:38,892  util.py[WARNING]: '
> http://169.254.169.254/20090404/metadata/instanceid' failed [30/120s]:
> http error [504]
> 20130513 20:52:47,955  util.py[WARNING]: '
> http://169.254.169.254/20090404/metadata/instanceid' failed [39/120s]:
> http error [504]
> 20130513 20:52:57,064  util.py[WARNING]: '
> http://169.254.169.254/20090404/metadata/instanceid' failed [48/120s]:
> http error [504]
> 20130513 20:53:06,132  util.py[WARNING]: '
> http://169.254.169.254/20090404/metadata/instanceid' failed [57/120s]:
> http error [504]
>
>  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.
>
>  I've checked nova.conf on my compute nodes and i have these flags:
>
>  metadata_host=172.19.136.10
> metadata_listen=172.19.136.10
>  enabled_apis=ec2,osapi_compute,metadata
>
>  When i try to reach the medata with curl (
> http://docs.openstack.org/trunk/openstack-compute/admin/content/metadata-service.html
> ):
>
>   root at asado:~# curl http://172.19.136.10:8775/
> <html>
>  <head>
>   <title>404 Not Found</title>
>  </head>
>  <body>
>   <h1>404 Not Found</h1>
>   The resource could not be found.<br /><br />
>
>
>
>   </body>
> </html>root at asado:~#
>
>  In the nova-api.log file:
>
>  2013-05-13 21:06:56.024 22344 ERROR nova.api.metadata.handler [-] Failed
> to get metadata for ip: 172.19.136.10
> 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/1.2.3.4 libidn/1.23 librtmp/2.3]
> text/plain text/html
> 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
>
>  Maybe i'm doing the wrong tests here.
>
>  --
>  Pavlik Salles Juan José
>
>
> _______________________________________________
> OpenStack-operators mailing listOpenStack-operators at lists.openstack.orghttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
>


-- 
Pavlik Salles Juan José
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130514/24d0f3d0/attachment.html>


More information about the OpenStack-operators mailing list