The output of event list by filter "cluster_id" is empty

Bug #1642869 reported by miaohb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Low
Qiming Teng

Bug Description

stack@tecs:/home$ openstack cluster event list --filters cluster_id=a346d481

stack@tecs:/home$

Because we input short id, it returns empty. Actually, only full id can get correct result here.

miaohb (miao-hongbao)
Changed in senlin:
assignee: nobody → miaohb (miao-hongbao)
status: New → In Progress
Revision history for this message
Qiming Teng (tengqim) wrote :

This can be fixed by doing a cluster_find when the filters contain cluster_id.
A simpler workaround is to just use the full ID and explicitly telling users that.

Fixing this in the listing call doesn't look like it will hurt a lot.

Changed in senlin:
status: In Progress → Triaged
importance: Undecided → Low
Qiming Teng (tengqim)
Changed in senlin:
assignee: miaohb (miao-hongbao) → Qiming Teng (tengqim)
milestone: none → pike-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/457116
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=491677e9e8002fa9a0d690009e3cced2c772099f
Submitter: Jenkins
Branch: master

commit 491677e9e8002fa9a0d690009e3cced2c772099f
Author: tengqm <email address hidden>
Date: Sun Apr 16 22:08:16 2017 -0400

    Enable more inclusive cluster filtering when listing events

    This patch adds logic so that when listing events with cluster 'id' as
    filters, users can actually specify the name, full-id or short-id of a
    cluster. It will be more convenient for users.
    If any of the specified cluster is not found from the database, we
    return an empty list of events.

    Closes-Bug: #1642869
    Change-Id: Ic27053e6b90658f35b577038d26b4aebb9d4475f

Changed in senlin:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/senlin 4.0.0.0b2

This issue was fixed in the openstack/senlin 4.0.0.0b2 development milestone.

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

Other bug subscribers

Remote bug watches

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