Missing service 'region' and endpoint name for EndpointFilterCatalog

Bug #1532768 reported by Einar Forselv
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Einar Forselv

Bug Description

This is similar to :
https://bugs.launchpad.net/keystone/+bug/1410543 : Include service name in filtered catalog
(Work has been done to collapse the catalog drivers into a single driver, but the progress on this has been fairly slow lately)

This bug is meant as a quick fix to get endpoint filtering to work and be consistent with the normal v3 catalog.

The current EndpointFilterCatalog are missing the following to be consistent with the normal v3 catalog :
* EndpointFilterCatalog only returns 'region_id'. The normal v3 catalog also includes 'region' for backwards compatibility. The vast amount of tools still use 'region' and will fail unless it's present.
* EndpointFilterCatalog doesn't include the endpoint's name.

EndpointFilterCatalog currently returns the following :

'endpoints': [{
  'url':'https://objects.zetta.io:8443/v1/AUTH_d67f3235ece449ecaf8a9f731ca9a10c',
  'interface': 'public',
  'region_id': 'no-osl1',
  'id': u'6513c4a646594292a3f8cdf65a0882f3'
 }],
 'type': 'object-store',
 'id': '7a806e12a8644d7ea67e6e4f4c287fec'
},

Normal v3 catalog returns the following

'endpoints': [{
  'url': 'https://objects.zetta.io:8443/v1/AUTH_d67f3235ece449ecaf8a9f731ca9a10c',
  'interface': 'public',
  'region_id': 'no-osl1',
  'region': 'no-osl1',
  'id': u'6513c4a646594292a3f8cdf65a0882f3'
 }],
 'type': 'object-store',
 'name': 'swift',
 'id': '7a806e12a8644d7ea67e6e4f4c287fec'
},

Einar Forselv (eforselv)
Changed in keystone:
assignee: nobody → Einar Forselv (eforselv)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/265797

Changed in keystone:
status: New → In Progress
Changed in keystone:
milestone: none → mitaka-2
importance: Undecided → Medium
Revision history for this message
Steve Martinelli (stevemar) wrote :

not gating, no tests, moving to mitaka-3

Changed in keystone:
milestone: mitaka-2 → mitaka-3
Changed in keystone:
assignee: Einar Forselv (eforselv) → Steve Martinelli (stevemar)
Changed in keystone:
assignee: Steve Martinelli (stevemar) → Einar Forselv (eforselv)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/265797
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=f767b641e8aecc4e1102f5241b9ede4b0ac46d9c
Submitter: Jenkins
Branch: master

commit f767b641e8aecc4e1102f5241b9ede4b0ac46d9c
Author: Einar Forselv <email address hidden>
Date: Mon Jan 11 13:07:28 2016 +0100

    Missing 'region' in service and 'name' in endpoint for EndpointFilterCatalog

    EndpointFilterCatalog should return a catalog consistent with the normal
    v3 catalog. This means that a service will return the 'region' property
    (same as 'region_id') for backwards compatibility. In addition each
    endpoint will return its name.

    Change-Id: I0f1a337dae1ee2f910d34c14624854a3c9f06358
    Closes-Bug: 1532768

Changed in keystone:
status: In Progress → Fix Released
Revision history for this message
Einar Forselv (eforselv) wrote :

Sorry for neglecting to follow up on this one. Thanks Steve for covering my back :)

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/keystone 9.0.0.0b3

This issue was fixed in the openstack/keystone 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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