OSC cannot list endpoint groups by name

Bug #1828565 reported by Jose Castro Leon on 2019-05-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Low
Jose Castro Leon

Bug Description

While using the openstack cli and searching by name as any other resource available, it sends as a query parameter the name of the resource to search.

This value gets ignored in keystone resulting in the whole list of endpoint groups returned.

On the openstack cli side, as it returns more than one entry, it throws an error like:

$ openstack endpoint group show eg_name
More than one endpointgroup exists with the name 'eg_name'.

This is due to a missing filter in the API for listing endpoint_groups by name.

Fix proposed to branch: master
Review: https://review.opendev.org/658359

Changed in keystone:
assignee: nobody → Jose Castro Leon (jose-castro-leon)
status: New → In Progress
Lance Bragstad (lbragstad) wrote :

I was able to recreate this using the following steps:

ubuntu@wheeler:~$ openstack endpoint group --os-cloud devstack-admin create epg1 epg1.json
+-------------+------------------------------------------------------------------------------+
| Field | Value |
+-------------+------------------------------------------------------------------------------+
| description | None |
| filters | {u'interface': u'admin', u'service_id': u'569dbe5299a44827b4413eb402dc3065'} |
| id | ff0e5d3ac6d2440da62df10347b910f5 |
| name | epg1 |
+-------------+------------------------------------------------------------------------------+
ubuntu@wheeler:~$ openstack endpoint group --os-cloud devstack-admin create epg2 epg2.json
+-------------+------------------------------------------------------------------------------+
| Field | Value |
+-------------+------------------------------------------------------------------------------+
| description | None |
| filters | {u'interface': u'admin', u'service_id': u'f3b50433a0ce46169fa44cfd5ae88a0f'} |
| id | 41251ca0c8de41a3beb423ac4494de9e |
| name | epg2 |
+-------------+------------------------------------------------------------------------------+
ubuntu@wheeler:~$ openstack endpoint group show epg1 --os-cloud devstack-admin
More than one endpointgroup exists with the name 'epg1'.
ubuntu@wheeler:~$ cat epg1.json
{
    "interface": "admin",
    "service_id": "569dbe5299a44827b4413eb402dc3065"
}
ubuntu@wheeler:~$ cat epg2.json
{
    "interface": "admin",
    "service_id": "f3b50433a0ce46169fa44cfd5ae88a0f"
}
ubuntu@wheeler:~$ openstack endpoint group list --os-cloud devstack-admin
+----------------------------------+------+-------------+
| ID | Name | Description |
+----------------------------------+------+-------------+
| 41251ca0c8de41a3beb423ac4494de9e | epg2 | None |
| ff0e5d3ac6d2440da62df10347b910f5 | epg1 | None |
+----------------------------------+------+-------------+

Changed in keystone:
importance: Undecided → Low

Reviewed: https://review.opendev.org/658359
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=6cdb3a8374599a95303dc9bf14dbe96c2d4c0f16
Submitter: Zuul
Branch: master

commit 6cdb3a8374599a95303dc9bf14dbe96c2d4c0f16
Author: Jose Castro Leon <email address hidden>
Date: Fri Apr 26 16:59:18 2019 +0200

    Allow to filter endpoint groups by name

    While using the openstack client command, the list on endpoint filters
    cannot be filtered by name. This adds an optional parameter on the query
    to allow the name to be specified as filter. This fixes the behavior on
    OSC to search.

    Change-Id: Ia1cbc9f4ded8f2494b1bf7ba5e953be0dfaf11f5
    Closes-Bug: #1828565

Changed in keystone:
status: In Progress → Fix Released

This issue was fixed in the openstack/keystone 16.0.0.0rc1 release candidate.

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

Other bug subscribers