← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1597168] [NEW] There's no way to update '--shared' argument of qos-policy to False by using qos-policy-update command.

 

Public bug reported:

In Mitaka,
There's no way to update '--shared' argument of qos-policy to False by using qos-policy-update command.
Actually,we may need to update --shared to False in qos-policy-update command,
Such as in the qos-policy rbac scenario, we may need to change the rbac policy  
by updating ‘--shared’ parameters to False,so that we can cancel sharing the qos-policy to all tenants

[root@localhost devstack]# neutron qos-policy-create qos-policy-01
Created a new policy:
+-------------+--------------------------------------+
| Field       | Value                                |
+-------------+--------------------------------------+
| description |                                      |
| id          | 53e278d6-ad97-4875-9eb3-374e46d5fe9c |
| name        | qos-policy-01                        |
| rules       |                                      |
| shared      | False                                |
| tenant_id   | aced7a29bb134dec82307a880d1cc542     |
+-------------+--------------------------------------+
[root@localhost devstack]# neutron qos-policy-update qos-policy-01 --shared     
Updated policy: qos-policy-01
[root@localhost devstack]# neutron qos-policy-show qos-policy-01
+-------------+--------------------------------------+
| Field       | Value                                |
+-------------+--------------------------------------+
| description |                                      |
| id          | 53e278d6-ad97-4875-9eb3-374e46d5fe9c |
| name        | qos-policy-01                        |
| rules       |                                      |
| shared      | True                                 |
| tenant_id   | aced7a29bb134dec82307a880d1cc542     |
+-------------+--------------------------------------+
[root@localhost devstack]# neutron qos-policy-update qos-policy-01 --shared=False
usage: neutron qos-policy-update [-h] [--request-format {json}] [--name NAME]
                                 [--description DESCRIPTION] [--shared]
                                 POLICY
neutron qos-policy-update: error: argument --shared: ignored explicit argument u'False'
Try 'neutron help qos-policy-update' for more information.
[root@localhost devstack]# 

[root@localhost devstack]# neutron help qos-policy-update
usage: neutron qos-policy-update [-h] [--request-format {json}] [--name NAME]
                                 [--description DESCRIPTION] [--shared]
                                 POLICY

Update a given qos policy.

positional arguments:
  POLICY                ID or name of policy to update.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json}
                        DEPRECATED! Only JSON request format is supported.
  --name NAME           Name of QoS policy.
  --description DESCRIPTION
                        Description of the QoS policy.
  --shared              Accessible by other tenants. Set shared to True
                        (default is False).
[root@localhost devstack]#

** Affects: neutron
     Importance: Undecided
     Assignee: QunyingRan (ran-qunying)
         Status: New

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

Title:
  There's no way to update '--shared' argument of qos-policy to False by
  using qos-policy-update command.

Status in neutron:
  New

Bug description:
  In Mitaka,
  There's no way to update '--shared' argument of qos-policy to False by using qos-policy-update command.
  Actually,we may need to update --shared to False in qos-policy-update command,
  Such as in the qos-policy rbac scenario, we may need to change the rbac policy  
  by updating ‘--shared’ parameters to False,so that we can cancel sharing the qos-policy to all tenants

  [root@localhost devstack]# neutron qos-policy-create qos-policy-01
  Created a new policy:
  +-------------+--------------------------------------+
  | Field       | Value                                |
  +-------------+--------------------------------------+
  | description |                                      |
  | id          | 53e278d6-ad97-4875-9eb3-374e46d5fe9c |
  | name        | qos-policy-01                        |
  | rules       |                                      |
  | shared      | False                                |
  | tenant_id   | aced7a29bb134dec82307a880d1cc542     |
  +-------------+--------------------------------------+
  [root@localhost devstack]# neutron qos-policy-update qos-policy-01 --shared     
  Updated policy: qos-policy-01
  [root@localhost devstack]# neutron qos-policy-show qos-policy-01
  +-------------+--------------------------------------+
  | Field       | Value                                |
  +-------------+--------------------------------------+
  | description |                                      |
  | id          | 53e278d6-ad97-4875-9eb3-374e46d5fe9c |
  | name        | qos-policy-01                        |
  | rules       |                                      |
  | shared      | True                                 |
  | tenant_id   | aced7a29bb134dec82307a880d1cc542     |
  +-------------+--------------------------------------+
  [root@localhost devstack]# neutron qos-policy-update qos-policy-01 --shared=False
  usage: neutron qos-policy-update [-h] [--request-format {json}] [--name NAME]
                                   [--description DESCRIPTION] [--shared]
                                   POLICY
  neutron qos-policy-update: error: argument --shared: ignored explicit argument u'False'
  Try 'neutron help qos-policy-update' for more information.
  [root@localhost devstack]# 

  [root@localhost devstack]# neutron help qos-policy-update
  usage: neutron qos-policy-update [-h] [--request-format {json}] [--name NAME]
                                   [--description DESCRIPTION] [--shared]
                                   POLICY

  Update a given qos policy.

  positional arguments:
    POLICY                ID or name of policy to update.

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json}
                          DEPRECATED! Only JSON request format is supported.
    --name NAME           Name of QoS policy.
    --description DESCRIPTION
                          Description of the QoS policy.
    --shared              Accessible by other tenants. Set shared to True
                          (default is False).
  [root@localhost devstack]#

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1597168/+subscriptions


Follow ups