Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the nova endpoint URL is throwing error

I am using ubuntu 11.04 machine and installed the nova compute,identity and dashbaord service in the same machine.I have used single machine to install all the component of open-stack. I am using 2011.3 version of open-stack. I have created tenant,user in the keystone.I have defined the services and the endpoints as well. Here is the output of following commands:

root@XXX:/var/log# keystone-manage endpointTemplates list

output:

service region Public URL

nova RegionOne http://XX.XX.XX.XX:8774/v1.0 keystone RegionOne http://XX.XX.XX.XX:5000/v2.0 glance RegionOne http://XX.XX.XX.XX:9292/v1

root@XXX:/var/log# keystone-manage token list

output:

token user expiration tenant

11121314151617181920 1 2015-02-05 00:00:00 4 999888777666 3 2015-02-05 00:00:00 1 77da154a-53ee-4479-b805-6bd08f227eb2 1 2012-05-25 05:00:45 3

root@XXX:/var/log#curl -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://XX.XX.XX.XX:35357/v2.0/tokens | python -mjson.tool

output:

{ "access": { "serviceCatalog": [ { "endpoints": [ { "adminURL": "http://XX.XX.XX.XX:8774/v1.0/", "internalURL": "http://XX.XX.XX.XX:8774/v1.0/", "publicURL": "http://XX.XX.XX.XX:8774/v1.0", "region": "RegionOne" } ], "name": "nova", "type": "compute" }, { "endpoints": [ { "adminURL": "http://XX.XX.XX.XX:9292/v1", "internalURL": "http://XX.XX.XX.XX:8774/v1.0/", "publicURL": "http://XX.XX.XX.XX:9292/v1", "region": "RegionOne" } ], "name": "glance", "type": "image" }, { "endpoints": [ { "adminURL": "http://XX.XX.XX.XX:35357/v2.0", "internalURL": "http://XX.XX.XX.XX:8774/v1.0/", "publicURL": "http://XX.XX.XX.XX:5000/v2.0", "region": "RegionOne" } ], "name": "keystone", "type": "identity" } ], "token": { "expires": "2012-05-25T05:00:45", "id": "77da154a-53ee-4479-b805-6bd08f227eb2", "tenant": { "id": "3", "name": "openstackDemo" } }, "user": { "id": "1", "name": "adminUser", "roles": [ { "id": "1", "name": "Admin", "tenantId": "3" }, { "id": "1", "name": "Admin" }, { "id": "1", "name": "Admin" } ] } } }

So I got the token from the abode command.

Now I have used the curl command to validate the nova and glance endpoint URL.

root@XXX:/var/log#curl -v -X GET -H 'X-Auth-Token:77da154a-53ee-4479-b805-6bd08f227eb2' http://localhost:8774/v1.1

output:

About to connect() to localhost port 8774 (#0) * Trying ::1... Connection refused * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 8774 (#0)

GET /v1.1 HTTP/1.1 User-Agent: curl/7.21.3 (xXX-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 Host: localhost:8774 Accept: / X-Auth-Token:77da154a-53ee-4479-b805-6bd08f227eb2

< HTTP/1.1 401 Unauthorized < Content-Length: 358 < Content-Type: text/html; charset=UTF-8 < Date: Thu, 24 May 2012 12:14:03 GMT < <html> <head> <title>401 Unauthorized</title> </head> <body>

401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

</body> * Connection #0 to host localhost left intact * Closing connection #0

But I have used the latest valid token.I have configured the api-paste.ini as well.

Please help me to resolve this issue. Thanks in Advance!!

Thanks, Arpita