← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1381961] Re: Keystone API GET 5000/v3 returns wrong endpoint URL in response body

 

Reviewed:  https://review.openstack.org/368969
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=09f569b6a60e6426102212e650b490ea0dd5084f
Submitter: Jenkins
Branch:    master

commit 09f569b6a60e6426102212e650b490ea0dd5084f
Author: Adam Young <ayoung@xxxxxxxxxx>
Date:   Mon Sep 12 12:43:39 2016 -0400

    Unset Keystone public_endpoint
    
    The keystone public_endpoint value should be deduced from the calling
    request and not hardcoded, or it makes network isolation impossible.
    
    Change-Id: Ide6a65aa9393cb84591b0015ec5966cc01ffbcf8
    Closes-Bug: 1381961


** Changed in: tripleo
       Status: In Progress => Fix Released

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

Title:
  Keystone API GET 5000/v3 returns wrong endpoint URL in response body

Status in OpenStack Identity (keystone):
  Fix Released
Status in tripleo:
  Fix Released

Bug description:
  When I was invoking a GET request to  public endpoint of Keystone, I found the admin endpoint URL in response body, I assume it should be the public endpoint URL:
  GET https://192.168.101.10:5000/v3

  {
    "version": {
      "status": "stable",
      "updated": "2013-03-06T00:00:00Z",
      "media-types": [
        {
          "base": "application/json",
          "type": "application/vnd.openstack.identity-v3+json"
        },
        {
          "base": "application/xml",
          "type": "application/vnd.openstack.identity-v3+xml"
        }
      ],
      "id": "v3.0",
      "links": [
        {
          "href": "https://172.20.14.10:35357/v3/";,
          "rel": "self"
        }
      ]
    }
  }

  ===============================================================
  Btw, I can get the right URL for public endpoint in the response body of the versionless API call:
  GET https://192.168.101.10:5000

  {
    "versions": {
      "values": [
        {
          "status": "stable",
          "updated": "2013-03-06T00:00:00Z",
          "media-types": [
            {
              "base": "application/json",
              "type": "application/vnd.openstack.identity-v3+json"
            },
            {
              "base": "application/xml",
              "type": "application/vnd.openstack.identity-v3+xml"
            }
          ],
          "id": "v3.0",
          "links": [
            {
              "href": "https://192.168.101.10:5000/v3/";,
              "rel": "self"
            }
          ]
        },
        {
          "status": "stable",
          "updated": "2014-04-17T00:00:00Z",
          "media-types": [
            {
              "base": "application/json",
              "type": "application/vnd.openstack.identity-v2.0+json"
            },
            {
              "base": "application/xml",
              "type": "application/vnd.openstack.identity-v2.0+xml"
            }
          ],
          "id": "v2.0",
          "links": [
            {
              "href": "https://192.168.101.10:5000/v2.0/";,
              "rel": "self"
            },
            {
              "href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/";,
              "type": "text/html",
              "rel": "describedby"
            },
            {
              "href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf";,
              "type": "application/pdf",
              "rel": "describedby"
            }
          ]
        }
      ]
    }
  }

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


References