wrong warning (The Keystone URL (either in Horizon settings or in service catalog) points to a v2.0 Keystone endpoint)

Bug #1621137 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
jichenjc

Bug Description

wrong warning printed in current code

I added some log and seems we need use ["/v2.0"] instead "/v2.0"

[Wed Sep 07 15:09:40.951167 2016] [:error] [pid 29875] path is /v3, subs is /v2.0, t is True
[Wed Sep 07 15:09:40.951254 2016] [:error] [pid 29875] The Keystone URL (either in Horizon settings or in service catalog) points to a v2.0 Keystone endpoint, but v3 is specified as the API version to use by Horizon. Using v3 endpoint for authentication.https://9.60.29.98:35357/v3

def has_in_url_path(url, subs):
    """Test if any of `subs` strings is present in the `url` path."""
    scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
    t = any([sub in path for sub in subs])
    LOG.warn('path is %s, subs is %s, t is %s' % (path, subs, t))
    return t

if get_keystone_version() >= 3 and has_in_url_path(auth_url, "/v2.0"):
        LOG.warning("The Keystone URL (either in Horizon settings or in "
                    "service catalog) points to a v2.0 Keystone endpoint, "
                    "but v3 is specified as the API version to use by "
                    "Horizon. Using v3 endpoint for authentication.%s", auth_url)
        auth_url = url_path_replace(auth_url, "/v2.0", "/v3", 1)

jichenjc (jichenjc)
Changed in horizon:
assignee: nobody → jichenjc (jichenjc)
David Lyle (david-lyle)
Changed in horizon:
importance: Undecided → High
status: New → Confirmed
tags: added: newton-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/django_openstack_auth 2.4.1

This issue was fixed in the openstack/django_openstack_auth 2.4.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/django_openstack_auth 3.0.0

This issue was fixed in the openstack/django_openstack_auth 3.0.0 release.

Changed in horizon:
status: Confirmed → Fix Released
tags: removed: newton-backport-potential
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.