Using glance without authentication

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

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

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

unmesh-gurjar gravatar image

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-09-08 12:39:19 -0600

Seen: 453 times

Last updated: Sep 10 '13