"neutron help port-update" missing some help info

Bug #1377360 reported by Danny Choi
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Low
Amandeep

Bug Description

OpenStack version: Juno

ubuntu@trusty1:~/devstack$ nova-manage version
2015.1.0

Issue: "neutron help port-update" missing the following help info
   --name
   --admin_state_up
   --device_id
   --device_owner

ubuntu@trusty1:~/devstack$ neutron help port-update
usage: neutron port-update [-h] [--request-format {json,xml}]
                           [--security-group SECURITY_GROUP | --no-security-groups]
                           [--extra-dhcp-opt EXTRA_DHCP_OPTS]
                           PORT

Update port's information.

positional arguments:
  PORT ID or name of port to update.

optional arguments:
  -h, --help show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --security-group SECURITY_GROUP
                        Security group associated with the port. You can
                        repeat this option.
  --no-security-groups Associate no security groups with the port.
  --extra-dhcp-opt EXTRA_DHCP_OPTS
                        Extra dhcp options to be assigned to this port:
                        opt_name=<dhcp_option_name>,opt_value=<value>. You can
                        repeat this option.

<1> User is able to update "name":
==============================
ubuntu@trusty1:~/devstack$ neutron port-list
+--------------------------------------+--------------+-------------------+-----------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+--------------+-------------------+-----------------------------------------------------------------------------------+
| 904f3dff-7298-4e63-a399-97fec10020b0 | | fa:16:3e:ff:b4:c8 | {"subnet_id": "3f5b84c5-937e-44ae-b645-64758386a501", "ip_address": "10.0.0.14"} |
+--------------------------------------+--------------+-------------------+-----------------------------------------------------------------------------------+
ubuntu@trusty1:~/devstack$ neutron port-show 904f3dff-7298-4e63-a399-97fec10020b0
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3f5b84c5-937e-44ae-b645-64758386a501", "ip_address": "10.0.0.14"} |
| id | 904f3dff-7298-4e63-a399-97fec10020b0 |
| mac_address | fa:16:3e:ff:b4:c8 |
| name | |
| network_id | b18a4a3f-7167-4c61-87f5-b21f87118160 |
| security_groups | b65b1238-ca73-46ae-8670-f61fd22a8d52 |
| status | DOWN |
| tenant_id | db81f81239f54d5d89293dacc7a284d2 |
+-----------------------+----------------------------------------------------------------------------------+
ubuntu@trusty1:~/devstack$ neutron port-update 904f3dff-7298-4e63-a399-97fec10020b0 --name TEST_PORT <<< update the "name" attribute
Updated port: 904f3dff-7298-4e63-a399-97fec10020b0
ubuntu@trusty1:~/devstack$ neutron port-show 904f3dff-7298-4e63-a399-97fec10020b0
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3f5b84c5-937e-44ae-b645-64758386a501", "ip_address": "10.0.0.14"} |
| id | 904f3dff-7298-4e63-a399-97fec10020b0 |
| mac_address | fa:16:3e:ff:b4:c8 |
| name | TEST_PORT | <<< "name" updated
| network_id | b18a4a3f-7167-4c61-87f5-b21f87118160 |
| security_groups | b65b1238-ca73-46ae-8670-f61fd22a8d52 |
| status | DOWN |
| tenant_id | db81f81239f54d5d89293dacc7a284d2 |
+-----------------------+----------------------------------------------------------------------------------+

<2> User is able to update "admin_state_up":
==========================
ubuntu@trusty1:~/devstack$ neutron port-update 904f3dff-7298-4e63-a399-97fec10020b0 --admin_state_up false <<< update the "admin_state_up" attribute
Updated port: 904f3dff-7298-4e63-a399-97fec10020b0
ubuntu@trusty1:~/devstack$ neutron port-show 904f3dff-7298-4e63-a399-97fec10020b0
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| admin_state_up | False | <<< "admin_state_up" updated
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3f5b84c5-937e-44ae-b645-64758386a501", "ip_address": "10.0.0.14"} |
| id | 904f3dff-7298-4e63-a399-97fec10020b0 |
| mac_address | fa:16:3e:ff:b4:c8 |
| name | TEST_PORT |
| network_id | b18a4a3f-7167-4c61-87f5-b21f87118160 |
| security_groups | b65b1238-ca73-46ae-8670-f61fd22a8d52 |
| status | DOWN |
| tenant_id | db81f81239f54d5d89293dacc7a284d2 |
+-----------------------+----------------------------------------------------------------------------------+

<3> User is able to update "device_id":
===========================
ubuntu@trusty1:~/devstack$ neutron port-update 904f3dff-7298-4e63-a399-97fec10020b0 --device_id 1df2b3a0-f37a-4279-963d-a6f4573763a8 <<< update the "device_id" attribute
Updated port: 904f3dff-7298-4e63-a399-97fec10020b0
ubuntu@trusty1:~/devstack$ neutron port-show 904f3dff-7298-4e63-a399-97fec10020b0
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| admin_state_up | False |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | 1df2b3a0-f37a-4279-963d-a6f4573763a8 | <<< "device_id" updated
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3f5b84c5-937e-44ae-b645-64758386a501", "ip_address": "10.0.0.14"} |
| id | 904f3dff-7298-4e63-a399-97fec10020b0 |
| mac_address | fa:16:3e:ff:b4:c8 |
| name | TEST_PORT |
| network_id | b18a4a3f-7167-4c61-87f5-b21f87118160 |
| security_groups | b65b1238-ca73-46ae-8670-f61fd22a8d52 |
| status | DOWN |
| tenant_id | db81f81239f54d5d89293dacc7a284d2 |
+-----------------------+----------------------------------------------------------------------------------+

<4> User is able to update "device_owner":
=============================
ubuntu@trusty1:~/devstack$ neutron port-update 904f3dff-7298-4e63-a399-97fec10020b0 --device_owner network:router_interface <<< update the "device_owner" attribute
Updated port: 904f3dff-7298-4e63-a399-97fec10020b0
ubuntu@trusty1:~/devstack$ neutron port-show 904f3dff-7298-4e63-a399-97fec10020b0
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| admin_state_up | False |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | 1df2b3a0-f37a-4279-963d-a6f4573763a8 |
| device_owner | network:router_interface | <<< "device_owner" updated
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "3f5b84c5-937e-44ae-b645-64758386a501", "ip_address": "10.0.0.14"} |
| id | 904f3dff-7298-4e63-a399-97fec10020b0 |
| mac_address | fa:16:3e:ff:b4:c8 |
| name | TEST_PORT |
| network_id | b18a4a3f-7167-4c61-87f5-b21f87118160 |
| security_groups | b65b1238-ca73-46ae-8670-f61fd22a8d52 |
| status | DOWN |
| tenant_id | db81f81239f54d5d89293dacc7a284d2 |
+-----------------------+----------------------------------------------------------------------------------+

Changed in python-neutronclient:
assignee: nobody → Amandeep (rattenpal-amandeep)
Changed in python-neutronclient:
assignee: Amandeep (rattenpal-amandeep) → nobody
Changed in python-neutronclient:
assignee: nobody → tcs_openstack_group (tcs-openstack-group)
Changed in python-neutronclient:
assignee: tcs_openstack_group (tcs-openstack-group) → P. Watsalya Mishra (watsalya-mishra)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)

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

Changed in python-neutronclient:
status: New → In Progress
Kyle Mestery (mestery)
Changed in python-neutronclient:
milestone: none → 2.3.9
importance: Undecided → Low
Kyle Mestery (mestery)
Changed in python-neutronclient:
milestone: 2.3.9 → 2.3.10
Kyle Mestery (mestery)
Changed in python-neutronclient:
milestone: 2.3.10 → 2.3.11
Changed in python-neutronclient:
assignee: P. Watsalya Mishra (watsalya-mishra) → Amandeep (rattenpal-amandeep)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-neutronclient (master)

Change abandoned by Amandeep (<email address hidden>) on branch: master
Review: https://review.openstack.org/145698
Reason: similar patch already merged.

Revision history for this message
Elena Ezhova (eezhova) wrote :
Changed in python-neutronclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by P. Watsalya Mishra (<email address hidden>) on branch: master
Review: https://review.openstack.org/134882
Reason: Similar patch has already merged.

Kyle Mestery (mestery)
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.

Other bug subscribers

Remote bug watches

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