Authentication required, Glance whit Keystone
Hi
I use Auth-Token with User and password when whit keystone and glance.
i have this tenants, users and roles
root@d1:~# keystone --token 0123456789 --endpoint http://
+------
| id | name | enabled |
+------
| 493415f4c05c481
| 68926cab8fdc47f
| dc68f8dc805e465
+------
root@d1:~# keystone --token 0123456789 --endpoint http://
+------
| id | enabled | email | name |
+------
| 4f42b01789a2447
| 95cd8682a92b4bc
| d00af1cf662f4b0
| e2d46ee3f1474c5
| ef6903d2258a433
+------
root@d1:~# keystone --token 0123456789 --endpoint http://
+------
| id | name |
+------
| 6864f147697345d
+------
the relation are between the user Administrador, role administrador and tenant servicio.
root@d1:~# keystone --token 0123456789 --endpoint http://
the fiter auth token in /etc/glance/
[filter:authtoken]
paste.filter_
#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_token = 0123456789
#auth_uri = http://
#admin_tenant_name = default
admin_user = Administrador
admin_password = daniel
and the error is
root@d1:~# glance -I Administrador -K daniel index --deb
Traceback (most recent call last):
File "/usr/bin/glance", line 1040, in <module>
result = command(options, args)
File "/usr/bin/glance", line 63, in wrapper
ret = func(*args, **kwargs)
File "/usr/bin/glance", line 551, in images_index
print_
File "/usr/bin/glance", line 497, in _images_index
images = client.
File "/usr/lib/
res = self.do_
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
headers=
File "/usr/lib/
return func(self, method, url, body, headers)
File "/usr/lib/
raise exception.
glance.
Details: 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.
Authentication required
I dont understand where the error is? i use the correct credentials? the configuration files are fine?
please help me.
Att
Daniel N
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: