yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09597
[Bug 1279210] [NEW] Wrong arguments position in "neutron firewall-update" command
Public bug reported:
Havana on rhel6.5
Description
===========
The FIREWALL argument of "neutron firewall-update" should be the first argument in order to get the command successful, altough the help page mention that the FIREWALL argument should be the last argument.
Scenario 1
==========
# neutron firewall-show firewall_admin
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
# neutron firewall-update
usage: neutron firewall-update [-h] [--request-format {json,xml}] FIREWALL
neutron firewall-update: error: too few arguments
# neutron firewall-update --admin_state_up False 72c782b2-2838-4773-b736-aa79564ac2ef
Unable to find firewall with name 'False'
# neutron firewall-update 72c782b2-2838-4773-b736-aa79564ac2ef --admin_state_up False
Updated firewall: 72c782b2-2838-4773-b736-aa79564ac2ef
[root@puma10 ~(keystone_admin)]# neutron firewall-show firewall_admin
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | False |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
scenario 2
==========
# neutron firewall-show 72c782b2-2838-4773-b736-aa79564ac2ef
neu+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | False |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
# neutron firewall-update --admin_state_up True 72c782b2-2838-4773-b736-aa79564ac2ef
Unable to find firewall with name 'True'
# neutron firewall-update 72c782b2-2838-4773-b736-aa79564ac2ef --admin_state_up True
Updated firewall: 72c782b2-2838-4773-b736-aa79564ac2ef
# neutron firewall-show 72c782b2-2838-4773-b736-aa79564ac2ef
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
Note that the "--admin_state_down" option is not available in "neutron firewall-update" (although it does exist in "neutron firewall-create"):
# neutron firewall-update --admin_state_down 8f4ac76b-6786-4bc4-a4c8-9e23731f2675
Unrecognized attribute(s) 'admin_state_down'
# neutron firewall-update 8f4ac76b-6786-4bc4-a4c8-9e23731f2675 --admin_state_down
Unrecognized attribute(s) 'admin_state_down'
** Affects: neutron
Importance: Undecided
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/1279210
Title:
Wrong arguments position in "neutron firewall-update" command
Status in OpenStack Neutron (virtual network service):
New
Bug description:
Havana on rhel6.5
Description
===========
The FIREWALL argument of "neutron firewall-update" should be the first argument in order to get the command successful, altough the help page mention that the FIREWALL argument should be the last argument.
Scenario 1
==========
# neutron firewall-show firewall_admin
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
# neutron firewall-update
usage: neutron firewall-update [-h] [--request-format {json,xml}] FIREWALL
neutron firewall-update: error: too few arguments
# neutron firewall-update --admin_state_up False 72c782b2-2838-4773-b736-aa79564ac2ef
Unable to find firewall with name 'False'
# neutron firewall-update 72c782b2-2838-4773-b736-aa79564ac2ef --admin_state_up False
Updated firewall: 72c782b2-2838-4773-b736-aa79564ac2ef
[root@puma10 ~(keystone_admin)]# neutron firewall-show firewall_admin
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | False |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
scenario 2
==========
# neutron firewall-show 72c782b2-2838-4773-b736-aa79564ac2ef
neu+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | False |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
# neutron firewall-update --admin_state_up True 72c782b2-2838-4773-b736-aa79564ac2ef
Unable to find firewall with name 'True'
# neutron firewall-update 72c782b2-2838-4773-b736-aa79564ac2ef --admin_state_up True
Updated firewall: 72c782b2-2838-4773-b736-aa79564ac2ef
# neutron firewall-show 72c782b2-2838-4773-b736-aa79564ac2ef
+--------------------+--------------------------------------+
| Field | Value |
+--------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| firewall_policy_id | 3d723253-d7f6-4481-8f06-254007fd5f79 |
| id | 72c782b2-2838-4773-b736-aa79564ac2ef |
| name | firewall_admin |
| status | ACTIVE |
| tenant_id | 3384a1b666ac473b98dabcc385161a20 |
+--------------------+--------------------------------------+
Note that the "--admin_state_down" option is not available in "neutron firewall-update" (although it does exist in "neutron firewall-create"):
# neutron firewall-update --admin_state_down 8f4ac76b-6786-4bc4-a4c8-9e23731f2675
Unrecognized attribute(s) 'admin_state_down'
# neutron firewall-update 8f4ac76b-6786-4bc4-a4c8-9e23731f2675 --admin_state_down
Unrecognized attribute(s) 'admin_state_down'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1279210/+subscriptions
Follow ups
References