Ask Your Question
0

REST compute API resource not found [closed]

asked 2013-11-12 04:52:39 -0500

Romain gravatar image

updated 2014-01-22 15:12:55 -0500

Evgeny gravatar image

Hello everyone,

I'm following this guide to use the REST Api provided by Openstack. http://docs.openstack.org/api/quick-start/content/

For both my manual and devstack installations of Openstack, I have a surprising error while I'm trying to get the list of servers of a given tenant. By using Curl or RestClient, GET http://localhost:5000/v2/32cedcb572884151ac2a2e58ad0a2e70/servers I got the following error message: The resource could not be found

Even GET http://localhost:5000/v2 gives this error message.

However, GET http://localhost:5000/v2.0 or http://localhost:5000/v3 works as expected

Why can't I have access to Compute APIs?

Thanks beforehand.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-11-23 10:06:28.632578

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-11-12 08:23:04 -0500

Romain gravatar image

Hello, I've solved my issue thanks to the command line API. I've figured out using --debug that I was using a wrong port. Thanks for you help.

edit flag offensive delete link more

Comments

Hi This is cool. Can you help in voting my ans. Just click on up-arrow which on the left side of my ans.

dheeru gravatar imagedheeru ( 2013-11-12 11:42:41 -0500 )edit

I'm closing this question. Nice working with you.

dheeru gravatar imagedheeru ( 2013-11-23 10:06:14 -0500 )edit
2

answered 2013-11-12 05:26:53 -0500

dheeru gravatar image

I suspect that issue with tenant id. Just try the following

Can you try the following ?

  1. 'keystone token-get' from command prompt
  2. Note the token and tenant id from the output.
  3. Use this token and tenant id

e.g curl -v -H "X-Auth-Token:<your token="">" h8774/v2/<your tenant-id="">/servers</your></your>

Can you check with the necessary checks as in following link ? http://docs.openstack.org/content/

edit flag offensive delete link more

Comments

Hello Dheeru. I've tried what you explained. Keystone token-get provides a token which id is fairly long and a user_id (not a tenant_id) Then: curl -v -H "X-Auth-Token:<mytoken>" http://localhost:5000/v2/%3Cadmin_tenant_id%3E/servers (http://localhost:5000/v2/<admin_tenant_id>/servers). This results in a HTML 404: The resource could not be found.

Romain gravatar imageRomain ( 2013-11-12 07:55:07 -0500 )edit
0

answered 2013-11-23 04:30:09 -0500

HRITCU ANDREI gravatar image

Hello Romain.

I am also trying to get the list of servers of a given tenant.

Can you please give me the complete url.

edit flag offensive delete link more

Comments

1. 'keystone token-get' from command prompt 2. Note the token and tenant id from the output. 3. Use this token and tenant id e.g curl -v -H "X-Auth-Token:<your token="">" http://localhost:5000/v2/<admin_tenant_id>/servers If this works you are fine. If not use --debug option to troubleshoot further

dheeru gravatar imagedheeru ( 2013-11-23 10:04:12 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-12 04:52:39 -0500

Seen: 1,260 times

Last updated: Nov 23 '13