Filters cluster list and node list APIs are not consistent
Bug #1465924 reported by
Qiming Teng
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.
Changed in senlin: | |
milestone: | liberty-2 → mitaka-1 |
Changed in senlin: | |
assignee: | nobody → Qiming Teng (tengqim) |
Changed in senlin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/248517 /git.openstack. org/cgit/ openstack/ senlin/ commit/ ?id=f99153d6fb2 3576589332a90e6 91accaf79b5708
Committed: https:/
Submitter: Jenkins
Branch: master
commit f99153d6fb23576 589332a90e691ac caf79b5708
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: Icab38c970de770 4c3134afd1b96a0 3b3670bd2ad
Closes-Bug: #1465924