** Changed in: horizon
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1621137

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

Status in OpenStack Dashboard (Horizon):
  Fix Released

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1621137/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to