Ask Your Question
3

glance image-list requires authentication [closed]

asked 2014-01-22 02:48:34 -0500

Qiang gravatar image

updated 2014-01-24 11:39:21 -0500

smaffulli gravatar image

I have installed keystone successfully as belows:

root@controller:~/images# keystone tenant-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+---------+---------+
|                id                |   name  | enabled |
+----------------------------------+---------+---------+
| 15bd3d67cd734636868b634306af4bf2 |  admin  |   True  |
| f9139c662f2f4f6993a42b075cc89bfb | service |   True  |
+----------------------------------+---------+---------+
root@controller:~/images# keystone user-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+---------+---------+--------------------+
|                id                |   name  | enabled |       email        |
+----------------------------------+---------+---------+--------------------+
| 6e263971f4ba4d48b968dcdad652b0d4 |  admin  |   True  |  admin@domain.com  |
| 2273bfedd6e14025a0404b6012a2f6ef |  cinder |   True  | cinder@domain.com  |
| 36ae04f15bd94e728bbb2cea23e82ba4 |  glance |   True  | glance@example.com |
| 24044cf1261649c795a30f9de32cc459 |   nova  |   True  |  nova@domain.com   |
| d56397c20208459a8618acaa81a69904 | quantum |   True  | quantum@domain.com |
+----------------------------------+---------+---------+--------------------+
root@controller:~/images#

have installed glance successfully according to http://docs.openstack.org/trunk/install-guide/install/apt/content/glance-install.html

However, when exec glance image-list, I am facing belows error:

root@controller:~/images# glance image-list
The request you have made requires authentication. (HTTP 401)


root@controller:~/images# tail /var/log/glance/api.log 
2014-01-22 13:51:58.292 12931 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.
2014-01-22 13:51:58.612 12931 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint


root@controller:~/images# tail /var/log/glance/registry.log 

2014-01-22 13:51:58.541 12936 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
2014-01-22 14:57:48.165 13511 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint

I have googled, unfortunately, I didn't find any solutions.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by smaffulli
close date 2014-08-07 13:37:42.119780

Comments

Hope you resolve the issue. Please confirm.

dheeru gravatar imagedheeru ( 2014-01-28 22:59:33 -0500 )edit

fixed. Thanks.

Qiang gravatar imageQiang ( 2014-07-14 20:50:41 -0500 )edit

Qiang Please can you share your solution with us because I am facing the same problem and I do not know what to do.

Robert gravatar imageRobert ( 2014-07-31 06:07:35 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
3

answered 2014-01-24 12:56:50 -0500

Meher gravatar image

updated 2014-01-27 17:45:03 -0500

smaffulli gravatar image

Did you forget to source your authentication file ? You can find more info here : http://docs.openstack.org/user-guide/content/cli_openrc.html

edit flag offensive delete link more
0

answered 2014-08-07 04:54:50 -0500

Qiang gravatar image

updated 2014-08-07 13:37:29 -0500

smaffulli gravatar image

Here is how I solved the problem:

export OS_USERNAME=username
export OS_PASSWORD=password
export OS_TENANT_NAME=projectName
export OS_AUTH_URL=https://identityHost:portNumber/v2.0
# The following lines can be omitted
export OS_TENANT_ID=tenantIDString
export OS_REGION_NAME=regionName
$ keystone --os-password PASSWORD service-list

Where PASSWORD is your password.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-01-22 02:48:34 -0500

Seen: 5,412 times

Last updated: Aug 07 '14