<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 23, 2016 at 3:49 AM, Gyorgy Szombathelyi <span dir="ltr"><<a href="mailto:gyorgy.szombathelyi@doclerholding.com" target="_blank">gyorgy.szombathelyi@doclerholding.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Just noticed by a failing tempest.api.compute.test_versions.TestVersions.test_get_version_details test:<br>
The versions answer of the components always return the listen address of the corresponding daemon.<br>
Is this the intended behavior? I think it should tell the public endpoint, the listening address in a HA cluster<br>
cannot nor should be reached from the outside.<br>
<br>
E.g. we have a  setup, where every service have an apache proxy in front of it, so getting the versions returns:<br>
<br>
# curl <a href="http://192.168.168.100:8774" rel="noreferrer" target="_blank">http://192.168.168.100:8774</a><br>
<br>
{"versions": [{"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "<a href="http://127.0.0.1:8774/v2/" rel="noreferrer" target="_blank">http://127.0.0.1:8774/v2/</a>", "rel": "self"}], "min_version": "", "version": "", "id": "v2.0"}, {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "<a href="http://127.0.0.1:8774/v2.1/" rel="noreferrer" target="_blank">http://127.0.0.1:8774/v2.1/</a>", "rel": "self"}], "min_version": "2.1", "version": "2.12", "id": "v2.1"}]}<br>
<br>
Notice the href: "<a href="http://127.0.0.1:8774/xxx" rel="noreferrer" target="_blank">http://127.0.0.1:8774/xxx</a>" answer.<br>
<br>
Or the reason is to not return the public endpoint that it would require a keystone session, and the versions API must be lightweight?<br>
<br>
Br,<br>
György<br>
<br>
<br></blockquote><div><br></div><div>The endpoints are also generally not aware of their URL, and therefore try to determine via introspection. It would be a good change to make the endpoints aware of their URLs and/or handle the appropriate (not sure which HTTP header, or a specific one needs to be defined) to indicate the Apache/stunnel/nginx/HAProxy/etc front.<br><br></div><div>--Morgan <br></div></div><br></div></div>