Filters cluster list and node list APIs are not consistent

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

Bug Description

The cluster-list API accepts the following filter keys:

 status
 name
 project
 parent
 user

The node-list API accepts the following filter keys:
  status
  name

The node-list API accepts an additional query parameter:
  global_project

This inconsistency will cause a lot confusions in future, better fix it right now.

We need to decide whether queries can be done in a project-safe way, and how to do it if we want to support this.

Qiming Teng (tengqim)
Changed in senlin:
milestone: liberty-2 → mitaka-1
Qiming Teng (tengqim)
Changed in senlin:
assignee: nobody → Qiming Teng (tengqim)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

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

commit f99153d6fb23576589332a90e691accaf79b5708
Author: tengqm <email address hidden>
Date: Sun Nov 22 22:22:19 2015 -0500

    Fix cluster-list api inconsistency

    This patch fixes the API parameters for cluster-list call. The
    parameters 'project', 'parent', 'user' are removed to be consistent with
    node-list API call. We can add these parameters later when requested.
    This patch adds real support to 'global_project' for cluster-list, which
    was defaulted to 'True' before.

    Change-Id: Icab38c970de7704c3134afd1b96a03b3670bd2ad
    Closes-Bug: #1465924

Changed in senlin:
status: Triaged → Fix Committed
Qiming Teng (tengqim)
Changed in senlin:
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/senlin 1.0.0.0b2

This issue was fixed in the openstack/senlin 1.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.