Ask Your Question
0

Using glance without authentication

asked 2013-09-08 12:39:19 -0500

mmoya gravatar image

I'm trying to setup a glance service for hosting images but I don't want to mess with keystone installation and configuration.

After installing glance I just removed the flavor = setting from _glance-api.conf_, I suppose that without explicit flavor the default pipeline is used. The default pipeline doesn't include the keystone filter so I guess the service will just answer requests without going through the token stuff. This is not the case, glance raises a exception.NotAuthenticated() for every request.

My question: is it possible (and if so, how?) to get glance working bypassing the authentication part?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-10 01:11:22 -0500

unmesh-gurjar gravatar image

updated 2013-09-10 01:19:43 -0500

Yes its possible! You need to configure the glance-api and glance-registry to use the default flavor ('glance-api' and 'glance-registry' respectively). You can achieve that by changing the entry 'flavor = my-flavor' to 'flavor = glance-api' and 'flavor = glance-registry' in the 'paste_deploy' section of glance-api.conf and glance-registry.conf respectively. Also, commenting out 'flavor' entry would give the same behavior as it defaults to no auth. Restart both the services and you are good to go!

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: 2013-09-08 12:39:19 -0500

Seen: 437 times

Last updated: Sep 10 '13