Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am using keystone 2011.3 version and I felt this doesn't support normal keystone command to create the service end-point. So, I have created the end-point using the following command.

$ keystone-manage endpointTemplates add RegionOne nova http://XX.XX.XX.XX:8774/v1.1/%tenant_id% http://XX.XX.XX.XX:8774/v1.1/%tenant_id% http://XX.XX.XX.XX:8774/v1.1/%tenant_id% 1 1

I have followed the following link to create user,tenants, roles and service end-point. http://docs.openstack.org/diablo/openstack-compute/install/openstack-install-guide-diablo.pdf

I have used both the admin port 35357 as well as service port 5000 and got the same result of curl command.

I have used nova list command and received the following error message.

$ nova --debug list

output

connect: (XX.XX.XX.XX, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: XX.XX.XX.XX:5000\r\nContent-Length: 117\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "secretword"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json; charset=UTF-8 header: Content-Length: 955 header: Date: Fri, 25 May 2012 13:58:35 GMT resp : {'date': 'Fri, 25 May 2012 13:58:35 GMT', 'status': '200', 'content-length': '955', 'content-type': 'application/json; charset=UTF-8'} token: 7f3618d9-668e-40f4-afe3-178d5f0f1ac0 connect: (XX.XX.XX.XX, 8774) send: u'GET /v1.1/1/servers/detail?fresh=1337954315.09 HTTP/1.1\r\nHost: XX.XX.XX.XX:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 7f3618d9-668e-40f4-afe3-178d5f0f1ac0\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Content-Length: 253 header: Content-Type: text/plain; charset=UTF-8 header: Date: Fri, 25 May 2012 13:58:35 GMT resp : {'date': 'Fri, 25 May 2012 13:58:35 GMT', 'status': '401', 'content-length': '253', 'content-type': 'text/plain; charset=UTF-8'} n/a (HTTP 401)