[Openstack] glance_api_servers vs. glance_host vs. keystone?

Kevin L. Mitchell kevin.mitchell at rackspace.com
Fri Jun 15 20:58:10 UTC 2012


On Fri, 2012-06-15 at 16:26 -0400, Lars Kellogg-Stedman wrote:
> nova.conf appears to sport several configuration options related to
> glance, including:
> 
> - glance_host
> - glance_port
> - glance_api_servers
> 
> These seem suspiciously similar.  

Indeed.

> Do they do the same thing?  

Yes, they do.

> And
> shouldn't this information actually come from Keystone, in which there
> is an endpoint registered for the glance service?

Yes, it should :)

Now, a little history lesson:

First came nova.  Then, an index server was needed, and so the
glance_host and glance_port options were added.  Then, an enhancement:
use of multiple glance hosts, and so glance_api_servers was added, with
reasonable defaults drawn from glance_host and glance_port if it wasn't
provided.  Then, a centralized authentication service called Keystone
was added, and as a benefit, it added the concept of endpoints.

The reason these options have not gone away is probably a combination of
supporting non-Keystone authentication and general programmer laziness…
-- 
Kevin L. Mitchell <kevin.mitchell at rackspace.com>





More information about the Openstack mailing list