[openstack-dev] [Nova] links collection contains wrong URI base
Vishvananda Ishaya
vishvananda at gmail.com
Fri May 10 16:21:02 UTC 2013
I believe it is set by webob which appears to be parsing the url
via urlparse.urlsplit(path) in environ_from_url. I suppose this
means that if you terminate https via a proxy then it will give
you the internal url scheme.
That said, You can override these values using:
CONF.osapi_compute_link_prefix
CONF.osapi_glance_link_prefix
For example, for the api samples we use:
'http://openstack.example.com'
Vish
On May 10, 2013, at 6:48 AM, Jay Pipes <jaypipes at gmail.com> wrote:
> Hi all,
>
> Hoping to get some assistance here. We've noticed that the links
> collection(s) returned by various calls to OpenStack APIs (e.g.
> /servers) contain a base URI that is different from the compute endpoint
> returned by Keystone catalog.
>
> Specifically, the difference is that the links do not contain the
> correct scheme -- they are using HTTP instead of HTTPS. After looking
> into the code, I think that the URI is being constructed by the
> webob.Request object using its environ['wsgi.url_scheme'] value.
> However, I'm stumped as to how environ['wsgi.url_scheme'] actually gets set.
>
> Any help is appreciated,
> -jay
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list