senlin cluster-policy-list policy id error

Bug #1704930 reported by chenyb4
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-senlinclient
Fix Released
Undecided
chenyb4

Bug Description

I was execute 'senlin cluster-policy-list cluster_001' the policy-id error, display as fllown:

# senlin cluster-policy-list cluster_001
WARNING (shell) "senlin cluster-policy-list" is deprecated and will be removed by Apr 2017, please use "openstack cluster policy binding list" instead.
+-----------+---------------+----------------------------+------------+
| policy_id | policy_name | policy_type | is_enabled |
+-----------+---------------+----------------------------+------------+
| e3b6c1d4 | policy-delete | senlin.policy.deletion-1.0 | True |
+-----------+---------------+----------------------------+------------+

I was execute 'senlin cluster-policy-list cluster_001 -F' the policy-id right, display as fllown:

# senlin cluster-policy-list cluster_001 -F
WARNING (shell) "senlin cluster-policy-list" is deprecated and will be removed by Apr 2017, please use "openstack cluster policy binding list" instead.
+--------------------------------------+---------------+----------------------------+------------+
| policy_id | policy_name | policy_type | is_enabled |
+--------------------------------------+---------------+----------------------------+------------+
| f5bff063-3a43-48b2-95db-f48b213ba9c8 | policy-delete | senlin.policy.deletion-1.0 | True |
+--------------------------------------+---------------+----------------------------+------------+

The policy display:
# senlin policy-list -F
WARNING (shell) "senlin policy-list" is deprecated and will be removed by Apr 2017, please use "openstack cluster policy list" instead.
+--------------------------------------+---------------+----------------------------+----------------------------+
| id | name | type | created_at |
+--------------------------------------+---------------+----------------------------+----------------------------+
| f5bff063-3a43-48b2-95db-f48b213ba9c8 | policy-delete | senlin.policy.deletion-1.0 | 2017-07-18T05:39:32.000000 |
+--------------------------------------+---------------+----------------------------+----------------------------+

So, when use 'senlin cluster-policy-list cluster_001' don't use -F arguments, the policy-id is error,
the policy-id display is the database record id.

chenyb4 (chenyb4)
Changed in python-senlinclient:
assignee: nobody → chenyb4 (chenyb4)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-senlinclient (master)

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

Changed in python-senlinclient:
status: New → In Progress
chenyb4 (chenyb4)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-senlinclient (master)

Reviewed: https://review.openstack.org/484637
Committed: https://git.openstack.org/cgit/openstack/python-senlinclient/commit/?id=3b958a31899bb8eed2204624ee5ff70efd445458
Submitter: Jenkins
Branch: master

commit 3b958a31899bb8eed2204624ee5ff70efd445458
Author: Yuanbin.Chen <email address hidden>
Date: Tue Jul 18 14:20:56 2017 +0800

    Fix senlin cluster policy list error

    This patch fix cluster policy list error when don't use -F arguments

    Closes-Bug: 1704930

    Change-Id: Idb2d1b9b27f8ea2f719712a5cba8f606a4691248
    Signed-off-by: Yuanbin.Chen <email address hidden>

Changed in python-senlinclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-senlinclient 1.4.0

This issue was fixed in the openstack/python-senlinclient 1.4.0 release.

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.