Ask Your Question
0

public glance server without authentication

asked 2014-06-11 10:08:00 -0600

sTe gravatar image

Is it possible to set up a public glance server without authentication (without keystone)? I have set flavor=cachemanagement into /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf, in order to skip the keystone filter within the pipeline, but how can I upload images?

edit retag flag offensive close merge delete

Comments

So, your intend skip all steps mentioned above. Right ?

dbaxps gravatar imagedbaxps ( 2014-06-11 10:43:13 -0600 )edit

yes. no keystone at all, if it is possible.

sTe gravatar imagesTe ( 2014-06-11 10:44:48 -0600 )edit

I guess glance would be unable communicate with AMQP Server, Nova and other Openstack Services without creating glance database managed by keystone.

dbaxps gravatar imagedbaxps ( 2014-06-11 11:09:15 -0600 )edit

@dbaxps There's no releation between the AMQP server and what glance is using for authentication.

flaper87 gravatar imageflaper87 ( 2014-06-11 11:18:30 -0600 )edit

Image-id is used by Nova && Cinder and is stored in images table of glance database. I hardly understand, how Nova && Cinder will do their job not relaying on images table. It doesn't mean at all that it's impossible.

dbaxps gravatar imagedbaxps ( 2014-06-11 11:54:28 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-06-11 11:17:44 -0600

You've done what's needed server side. In order to upload an image, you need to tell the client where glance is and pass a fake token to it.

glance --os-image-api-version 2 -U http://127.0.0.1:9292/v2/ -A test image-create ...
edit flag offensive delete link more

Comments

the command doesn't work with --os-image-api-version 2. it only works with --os-image-api-version 1. does anybody know why?

sTe gravatar imagesTe ( 2014-06-18 04:45:24 -0600 )edit

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: 2014-06-11 10:08:00 -0600

Seen: 321 times

Last updated: Jun 11 '14