<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 11:51 PM, Nathanael Burton <span dir="ltr"><<a href="mailto:nathanael.i.burton@gmail.com" target="_blank">nathanael.i.burton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="im">On Tue, Mar 19, 2013 at 11:39 PM, Lorin Hochstein <span dir="ltr"><<a href="mailto:lorin@nimbisservices.com" target="_blank">lorin@nimbisservices.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi All:<div><br></div><div><div>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. </div>


<div><br></div><div>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.</div>


<div><br></div><div>I assume that I don't have the right config in nova.conf (a template for that file is here: <<a href="https://github.com/lorin/openstack-ansible/blob/folsom/playbooks/templates/etc/nova/nova.conf" target="_blank">https://github.com/lorin/openstack-ansible/blob/folsom/playbooks/templates/etc/nova/nova.conf</a>>). 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.</div>


<div><br></div><div>Where in the nova Folsom code does the nova-compute service query the keystone service catalog to get the endpoint for glance? <br></div><div><div><br></div></div></div></div></blockquote><div><br></div>

</div><div>Lorin,<div><br></div><div>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 <a href="https://github.com/openstack/nova/blob/stable/folsom/nova/image/glance.py#L73" target="_blank">https://github.com/openstack/nova/blob/stable/folsom/nova/image/glance.py#L73</a></div>

<div><br></div><div>Nate</div></div><div><br></div></div></div></div></blockquote><div><br></div><div style>OK, so I'm not crazy, that means that I really do need to do something like:</div><div style><br></div><div style>
<div>glance_api_servers=<a href="http://192.168.206.130:9292">192.168.206.130:9292</a></div><div><br></div><div style>or (since the default port is used)</div><div style><br></div><div style>glance_host=192.168.206.130</div>
</div><div style><br></div><div style><br></div><div style>Lorin</div></div><div dir="ltr"></div>
</div></div>