upload a kernel error

Asked by nihao on 2012-05-02

i upload a kernel use command "glance --os_username=adminUser --os_password=nihao --os_tenant=openstackDemo --os_auth_url= add name="tty-linux-kernel" disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz" .but get information "Failed to add image. Got error:Response from Keystone does not contain a Glance endpoint..Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'". please help me

Question information

English Edit question
Glance Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Eoghan Glynn (eglynn) said : #1

Have you tried creating the glance endpoint in the keystone catalog?


  $ GLANCE_HOST=<your_glance_host>
  $ keystone-manage endpointTemplates add RegionOne glance http://$GLANCE_HOST:9292/v1 http://$GLANCE_HOST:9292/v1 http://$GLANCE_HOST:9292/v1 1 1

nihao (xieyf) said : #2

I created the glance ednpoint by use the command "keystone --token ADMIN --endpoint user-create --tenant_id eebbdcb86e644c7297b9d443702987f5 --name glance --pass nihao --enabled true",if do something wrong . I use the openstack-install-guide-trunk[1] installed it .

nihao (xieyf) said : #3

tkanks everyone , i have solved it ,the reason is because when i use keystone i make some mistake!

Daniel Nunez E. (danielnuneze) said : #4

Dear nihao

how do you solved it? I have the same problem.

digitalwonk (digitalwonk) said : #5

I'm encountering the same problem. I would be interested in the solution, too.


digitalwonk (digitalwonk) said : #6

Sadly, after posting this, I had a typo in my keystone database after having to resort to the python debugger. You have to ensure you that your os_*parameters (or OS_* env) are exactly right for it to work.

Here is the minimum set of OS_* environment I needed for glance to work:

One thing I found a little frustrating is that the glance client does not accept the same parameters as the keystone client in this regard. For example, I needed to use names instead of the ids (e.g. tenant name vs. tenant id). Another thing that is a little confusing is that if you define os_ name AND id, it's not clear to the user which one is used, and this could cause the user to get a bad catalog list or invalid authentication.

To verify that you have the right environment or settings, use "keystone catalog" (or "keystone catalog --service image") with the same environment. A successful call should result in the list service endpoints.

As a note to the developers, it would be nice if the command-line tools would produce more information, such as the settings used to authenticate particularly if debugging is enabled.

Jay Pipes (jaypipes) said : #7

Hi DigitalWonk,

The inconsistencies with the parameters are addressed in the next-generation client (http://github.com/openstack/python-glanceclient). The old glance client will be deprecated in the Grizzly release cycle.