<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 3, 2014 at 1:50 PM, Adam Young <span dir="ltr"><<a href="mailto:ayoung@redhat.com" target="_blank">ayoung@redhat.com</a>></span> wrote:<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">
HACK:  In a new client, look at the URL.  If it ends with /v2.0, chop it off and us the substring up to that point.<br>
<br>
Now, at this point you are probably going:  That is ugly, is it really necessary?  Can't we do something more correct?<br>
</blockquote><div><br></div><div>At this point I think we are stuck with hard-coding some legacy compatibility like this for the near future.  Fortunately Identity is an easy one to handle, Compute is going to be a #$^%! as the commonly documented case has a version not at the end.</div>
<div><br></div><div>I've been playing with variations on this strategy and I think it is our least bad option...</div><div><br></div><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">

Can we accept that this is necessary, and vow to never let this happen again by removing the versions from the URLs after the current set of clients are deprecated?<br></blockquote><div> </div><div>+1</div></div><br clear="all">
<div>There is another hack to think about:  if public_endpoint and/or admin_endpoint are not set in keystone.conf, all of the discovered urls use localhost: <a href="http://localhost:8770/v2.0/">http://localhost:8770/v2.0/</a>.  Discovery falls over aga</div>
<div><br></div><div>I don't know how common this is but I have encountered it at least once or twice.  Is this the only place those config values are used?  It seems like a better default could be worked out here too;  is 'localhost' ever the right thing to advertise in a real-world deployment?</div>
<div><br></div><div>dt</div><div><br></div>-- <br><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com">dtroyer@gmail.com</a><br>
</div></div>