Specifying '-F' or '--field' parameter in the qos related commands, returns abnormal result

Bug #1587291 reported by xiewj
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Low
Yan Songming

Bug Description

Specifying '-F' or '--filed' parameter in the qos related commands, returns abnormal result

3 problems:
1) Specifying '-F' or '--field' parameter in addition to 'rules' in 'qos-policy-show' command, the result returned contains extra field 'rules',
while specifying '-F' as 'rules',the result is ok,having no more extra field.
2)Specifying '-F' or '--field' parameter in 'qos-bandwidth-limit-rule-show' command, returns abnormal info 'show_bandwidth_limit_rule() got an unexpected keyword argument 'fields''
3)Specifying '-F' or '--field' parameter in 'qos-dscp-marking-rule-show' command, returns abnormal info 'show_dscp_marking_rule() got an unexpected keyword argument 'fields''

The experiment process is as follows:

1)Specifying '-F' or '--field' parameter in addition to 'rules' in 'qos-policy-show' command, the result returned contains extra field 'rules',
while specifying '-F' as 'rules',the result is ok,having no more extra field.
[root@localhost home]# neutron qos-policy-show xwj_01
+-------------+--------------------------------------------------------------+
| Field | Value |
+-------------+--------------------------------------------------------------+
| description | |
| id | da92966e-840f-4834-bd38-b257dcee16ea |
| name | xwj_01 |
| rules | 4a2ae096-fdba-4029-bbdc-7f22a19d11ef (type: bandwidth_limit) |
| | 93ecc82f-d963-4708-833e-5a4eb92b5477 (type: dscp_marking) |
| shared | False |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
+-------------+--------------------------------------------------------------+
[root@localhost home]# neutron qos-policy-show xwj_01 -F description
+-------------+-------+
| Field | Value |
+-------------+-------+
| description | |
| rules | |
+-------------+-------+
[root@localhost home]# neutron qos-policy-show xwj_01 -F id
+-------+--------------------------------------+
| Field | Value |
+-------+--------------------------------------+
| id | da92966e-840f-4834-bd38-b257dcee16ea |
| rules | |
+-------+--------------------------------------+
[root@localhost home]# neutron qos-policy-show xwj_01 -F name
+-------+--------+
| Field | Value |
+-------+--------+
| name | xwj_01 |
| rules | |
+-------+--------+

[root@localhost home]# neutron qos-policy-show xwj_01 -F shared
+--------+-------+
| Field | Value |
+--------+-------+
| rules | |
| shared | False |
+--------+-------+
[root@localhost home]# neutron qos-policy-show xwj_01 -F tenant_id
+-----------+----------------------------------+
| Field | Value |
+-----------+----------------------------------+
| rules | |
| tenant_id | ee4bd2aeeac74bb3ad2b094fc5292cbf |
+-----------+----------------------------------+
[root@localhost home]#
[root@localhost home]# neutron qos-policy-show xwj_01 -F rules
+-------+--------------------------------------------------------------+
| Field | Value |
+-------+--------------------------------------------------------------+
| rules | 4a2ae096-fdba-4029-bbdc-7f22a19d11ef (type: bandwidth_limit) |
| | 93ecc82f-d963-4708-833e-5a4eb92b5477 (type: dscp_marking) |
+-------+--------------------------------------------------------------+

2) Specifying '-F' or '--field' parameter in 'qos-bandwidth-limit-rule-show' command, returns abnormal info 'show_bandwidth_limit_rule() got an unexpected keyword argument 'fields''

[root@localhost home]# neutron qos-bandwidth-limit-rule-show 4a2ae096-fdba-4029-bbdc-7f22a19d11ef xwj_01
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| id | 4a2ae096-fdba-4029-bbdc-7f22a19d11ef |
| max_burst_kbps | 700000 |
| max_kbps | 1000000 |
+----------------+--------------------------------------+
[root@localhost home]# neutron qos-bandwidth-limit-rule-show 4a2ae096-fdba-4029-bbdc-7f22a19d11ef xwj_01 -F id
show_bandwidth_limit_rule() got an unexpected keyword argument 'fields'
[root@localhost home]# neutron qos-bandwidth-limit-rule-show 4a2ae096-fdba-4029-bbdc-7f22a19d11ef xwj_01 -F max_burst_kbps
show_bandwidth_limit_rule() got an unexpected keyword argument 'fields'
[root@localhost home]# neutron qos-bandwidth-limit-rule-show 4a2ae096-fdba-4029-bbdc-7f22a19d11ef xwj_01 -F max_kbps
show_bandwidth_limit_rule() got an unexpected keyword argument 'fields'
[root@localhost home]# neutron qos-bandwidth-limit-rule-show 4a2ae096-fdba-4029-bbdc-7f22a19d11ef xwj_01 --field id
show_bandwidth_limit_rule() got an unexpected keyword argument 'fields'
[root@localhost home]#

3) Specifying '-F' or '--field' parameter in 'qos-dscp-marking-rule-show' command, returns abnormal info 'show_dscp_marking_rule() got an unexpected keyword argument 'fields''
[root@localhost home]# neutron qos-dscp-marking-rule-show 93ecc82f-d963-4708-833e-5a4eb92b5477 xwj_01
+-----------+--------------------------------------+
| Field | Value |
+-----------+--------------------------------------+
| dscp_mark | 26 |
| id | 93ecc82f-d963-4708-833e-5a4eb92b5477 |
+-----------+--------------------------------------+
[root@localhost home]# neutron qos-dscp-marking-rule-show 93ecc82f-d963-4708-833e-5a4eb92b5477 xwj_01 -F id
show_dscp_marking_rule() got an unexpected keyword argument 'fields'
[root@localhost home]# neutron qos-dscp-marking-rule-show 93ecc82f-d963-4708-833e-5a4eb92b5477 xwj_01 -F dscp_mark
show_dscp_marking_rule() got an unexpected keyword argument 'fields'

Tags: qos
Changed in neutron:
assignee: nobody → dongwenshuai (dong-wenshuai)
Changed in neutron:
status: New → In Progress
tags: added: qos
Changed in neutron:
importance: Undecided → Low
Akihiro Motoki (amotoki)
summary: - Specifying '-F' or '--filed' parameter in the qos related commands,
+ Specifying '-F' or '--field' parameter in the qos related commands,
returns abnormal result
affects: neutron → python-neutronclient
Revision history for this message
Akihiro Motoki (amotoki) wrote :
Changed in python-neutronclient:
assignee: dongwenshuai (dong-wenshuai) → Yan Songming (songmingyan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-neutronclient (master)

Reviewed: https://review.openstack.org/329852
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=c5c705120a3e9d45e9d868f728531316029284a7
Submitter: Jenkins
Branch: master

commit c5c705120a3e9d45e9d868f728531316029284a7
Author: dongwenshuai <email address hidden>
Date: Wed Jun 15 17:46:56 2016 +0800

    Fix the problem of "qos-dscp-marking-rule-show"

    Add an arg "**_params" in show_dscp_marking_rule() to use the
    "-F" option.

    Change-Id: I7634d205430ce01de28ac1ecf571696d84d865d3
    Partial-Bug: #1587291

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/326902
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=d875cb34b94c9efe9767cc5ccd89e462bc0e7614
Submitter: Jenkins
Branch: master

commit d875cb34b94c9efe9767cc5ccd89e462bc0e7614
Author: SongmingYan <email address hidden>
Date: Wed Jun 8 04:19:39 2016 -0400

    Fix the problem of "qos-bandwidth-limit-rule-show"

    Add a arg "**_params" in show_bandwidth_limit_rule() to use the
    "-F" option.

    Change-Id: I1bee877a2e83801527bcccffe404053b6aafe012
    Partial-Bug: #1587291

Changed in python-neutronclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-neutronclient (master)

Change abandoned by Ihar Hrachyshka (<email address hidden>) on branch: master
Review: https://review.openstack.org/324545
Reason: It's not a critical fix, and we deprecated neutronclient in Ocata; so this bug won't be fixed; you may try luck with OSC if it's applicable there.

Changed in python-neutronclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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