Ask Your Question
0

glance add problem:NotAuthorized: None

asked 2012-03-22 09:27:19 -0500

i want to add image use glance with this command:"glance add -A 39a3f95c-bbc0-4b2c-a0b3-e390c81aed38 name="tty-kernel" is_public=true container_format=aki disk_format=aki < stackimages/aki-tty/image " get this result: Failed to add image. Got error: Internal Server error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 113, in __call__ response = req.get_response(self.application) File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response application, catch_exc_info=False) File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 110, in __call__ response = self.process_request(req) File "/usr/lib/python2.7/dist-packages/glance/common/context.py", line 104, in process_request raise exception.NotAuthorized() NotAuthorized: None

Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.

how can i resolve this problem,thanks

i have use command"sudo keystone-manage token list"to list the token

token user expiration tenant

11121314151617181920 1 2015-02-05 00:00:00 2 6325f6b8-d532-4805-949d-5cdab5ebd835 1 2012-03-20 18:31:04 None 79306847-8c1e-444c-b55e-880dbeb24abd 1 2012-03-21 23:23:52 None 39a3f95c-bbc0-4b2c-a0b3-e390c81aed38 1 2012-03-23 01:16:38 None

find tenant is NONE,is this the problem?

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2012-03-22 15:34:49 -0500

jaypipes gravatar image

What version of Keystone and Glance are you using? Thanks!

edit flag offensive delete link more
0

answered 2012-03-23 00:50:28 -0500

glance 2011.3.1 dev keystone 2011.3.1

edit flag offensive delete link more
0

answered 2012-03-23 01:13:48 -0500

wanglu@ubuntu:~$ dpkg -l | grep glance ii glance 2011.3.1~20120117~1549-0mit1~22.gbp5e7c88 OpenStack Image Registry and Delivery Service - Daemons ii python-glance 2011.3.1~20120117~1549-0mit1~22.gbp5e7c88 OpenStack Image Registry and Delivery Service - Python library wanglu@ubuntu:~$ dpkg -l | grep keystone ii keystone 2011.3.1+20120119~0000-0mit1~14.gbp0e5503 Proposed OpenStack identity service - Daemons ii python-keystone 2011.3.1+20120119~0000-0mit1~14.gbp0e5503 Proposed OpenStack identity service - Python library

edit flag offensive delete link more
0

answered 2012-03-28 16:19:05 -0500

gongysh gravatar image

For current trunk version.

check if your keystone configuration is using keystone as auth: you need in your glance-api.conf [paste_deploy] flavor = keystone and check glance-api-paste.ini to make sure the right credentials are used: [filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory service_protocol = http service_host = 127.0.0.1 service_port = 5000 auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http auth_uri = http://127.0.0.1:5000/ admin_tenant_name = admin admin_user = admin admin_password = password

also check the glance-registry's configurations.

#for keystone client export SERVICE_ENDPOINT=http://localhost:35357/v2.0 export SERVICE_TOKEN=ADMIN

for glance client

export OS_AUTH_USER=admin export OS_AUTH_KEY=password export OS_AUTH_TENANT=admin export OS_AUTH_URL=http://localhost:35357/v2.0 export OS_AUTH_STRATEGY=keystone

to run glance add

edit flag offensive delete link more
0

answered 2012-03-30 06:13:41 -0500

zhonghuabaima0913 gravatar image

Dear yong, i did it under you introduction,but glance service cannot start also.

Who can help me?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-22 09:27:19 -0500

Seen: 34 times

Last updated: Mar 30 '12