[Openstack] nova-compute and querying keystone for glance endpoint

Nathanael Burton nathanael.i.burton at gmail.com
Wed Mar 20 03:51:52 UTC 2013


On Tue, Mar 19, 2013 at 11:39 PM, Lorin Hochstein
<lorin at nimbisservices.com>wrote:

> Hi All:
>
> I was doing a Folsom deployment from scratch, and when I tried to launch
> an instance my compute host failed to connect to the glance server to
> download the image, instead it tried to connect to itself.
>
> I can resolve this by putting "glance_host=<ip>" into nova.conf. But I'd
> prefer if my compute host fetched this information from keystone rather
> than hard-code (hard-configure?) like this.
>
> I assume that I don't have the right config in nova.conf (a template for
> that file is here: <
> https://github.com/lorin/openstack-ansible/blob/folsom/playbooks/templates/etc/nova/nova.conf>).
> However, tracing through the nova code, I couldn't figure out where it was
> that the compute host was supposed to connect to keystone to get the right
> endpoint for glance.
>
> Where in the nova Folsom code does the nova-compute service query the
> keystone service catalog to get the endpoint for glance?
>
>
Lorin,

I don't believe nova pulls the glance endpoint from keystone's service
catalog.  I believe it's based on FLAGS.glance_api_servers here
https://github.com/openstack/nova/blob/stable/folsom/nova/image/glance.py#L73

Nate



> Take care,
>
> Lorin
> --
> Lorin Hochstein
> Lead Architect - Cloud Services
> Nimbis Services, Inc.
> www.nimbisservices.com
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130319/d6ea8a7c/attachment.html>


More information about the Openstack mailing list