Image Installation - Upload the kernel

Asked by Joeu

Hello,

We performed installation according to <Install and Deploy Manual>, and keystone is finished but we verify image installation steps, there's some error message as below:

In /etc/glance/glance-registry-paste.ini
[filter:authtoken]
admin_tenant_name = service
admin_user = glance
admin_password = glance

When upload the kernel.

Command1 to following guide without change:
root@gplab24:/tmp/images# glance --os_username=adminUser --os_password=secretword --os_tenant=openstackDemo --os_auth_url=http://127.0.0.1:5000/v2.0 add name="tty-linuxkernel" disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
=================================================[100%] 20.9M/s, ETA 0h 0m 0s
Uploading image 'tty-linuxkernel'
Failed to add image. Got error:
You are not authenticated.
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.

Command2 to change username and password as glance-registry-paste.ini:

root@gplab24:/tmp/images# glance --os_username=glance --os_password=glance --os_tenant=service --os_auth_url=http://127.0.0.1:35357/v2.0 add name="tty-linuxkernel" disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
===========================================================[100%] 41.5M/s, ETA 0h 0m 0s
Uploading image 'tty-linuxkernel'
Failed to add image. Got error:
You are not authenticated.
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
Note: Your image metadata may still be in the registry, but the image's status will likely[ 0%]

Can somebody help us? Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
openstack-org Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
koolhead17 (koolhead17) said :
#1

Possible debugging step :-

$ glance index (if it throws error)

Possibly the keystone middleware for glance is not configured correctly. Check exisiting doc and you will be able to solve it.

Can you help with this problem?

Provide an answer of your own, or ask Joeu for more information if necessary.

To post a message you must log in.