← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1587291] Re: Specifying '-F' or '--field' parameter in the qos related commands, returns abnormal result

 

** Summary changed:

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

** Project changed: neutron => python-neutronclient

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1587291

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

Status in python-neutronclient:
  In Progress

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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/1587291/+subscriptions


References