← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1482772] Re: Region filtering for endpoints does not work

 

OSC and KSC do already have the filter, however the filter it is passing
is "region" instead of "region_id".

There are still some work needed to change the filter name to region_id.

** Changed in: python-keystoneclient
       Status: Invalid => Confirmed

** Changed in: python-openstackclient
       Status: Invalid => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1482772

Title:
  Region filtering for endpoints does not work

Status in Keystone:
  In Progress
Status in python-keystoneclient:
  Confirmed
Status in python-openstackclient:
  Confirmed

Bug description:
  When i run “openstack endpoint list --os-url http://192.168.33.10:5000/v3 --os-identity-api-version=3 --service identity --interface public --region RegionTwo” i would expect that it only lists endpoints from RegionTwo. But i get the identity endpoint from RegionOne. Here is the output:
  +----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
  | ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                            |
  +----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
  | 4b3efc615c044fb4a2c70ca2e5e7bba9 | RegionOne | keystone     | identity     | True    | public    | http://192.168.33.10:5000/v2.0 |
  +----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+

  As this snippet from the debug output from openstackclient shows, the
  client sends the correct query to keystone. So i assume this is a
  filtering problem in keystone.

  DEBUG: requests.packages.urllib3.connectionpool "GET /v3/endpoints?interface=public&service_id=050872861656437184778a822032d8d6&region=RegionTwo HTTP/1.1" 200 506
  DEBUG: keystoneclient.session RESP: [200] content-length: 506 vary: X-Auth-Token keep-alive: timeout=5, max=96 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Fri, 07 Aug 2015 19:37:08 GMT content-type: application/json x-openstack-request-id: req-72481573-7fff-4ae0-9a2f-33584b476bd3
  RESP BODY: {"endpoints": [{"region_id": "RegionOne", "links": {"self": "http://192.168.33.10:35357/v3/endpoints/4b3efc615c044fb4a2c70ca2e5e7bba9"}, "url": "http://192.168.33.10:5000/v2.0";, "region": "RegionOne", "enabled": true, "interface": "public", "service_id": "050872861656437184778a822032d8d6", "id": "4b3efc615c044fb4a2c70ca2e5e7bba9"}], "links": {"self": "http://192.168.33.10:35357/v3/endpoints?interface=public&service_id=050872861656437184778a822032d8d6&region=RegionTwo";, "previous": null, "next": null}}

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


References