port unset failed because of AttributeError

Bug #1664893 reported by Rui Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Undecided
Rui Chen

Bug Description

"port unset" command don't work because of AttributeError, like this:

stack@ubuntu1604 /opt/stack/python-openstackclient (master) $ openstack port show chenrui_port
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | |
| binding_profile | mykey='myvalue' |
| binding_vif_details | |
| binding_vif_type | unbound |
| binding_vnic_type | normal |
| created_at | 2017-02-15T08:35:18Z |
| description | |
| device_id | |
| device_owner | |
| dns_assignment | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address='10.0.0.10', subnet_id='b1fe4535-a97e-4b34-8135-4cf826e82500' |
| | ip_address='fdf6:958e:746a::7', subnet_id='7f328365-9e80-4cd0-82de-a7fa6535fa05' |
| id | bd161a91-b5ad-44cc-ad52-0578bf7a3702 |
| ip_address | None |
| mac_address | fa:16:3e:ad:cf:ab |
| name | chenrui_port |
| network_id | 31d87945-6371-4bf6-9362-c850d4020a69 |
| option_name | None |
| option_value | None |
| port_security_enabled | True |
| project_id | ec3a8427abbf401a84990f8901ba4165 |
| qos_policy_id | None |
| revision_number | 8 |
| security_groups | 2dadea9f-7ad9-427c-8e5b-a6436864ba75 |
| status | DOWN |
| subnet_id | None |
| updated_at | 2017-02-15T08:38:00Z |
+-----------------------+----------------------------------------------------------------------------------+
stack@ubuntu1604 /opt/stack/python-openstackclient (master) $ openstack port unset --binding-profile mykey chenrui_port
'Port' object has no attribute 'security_groups'

Rui Chen (kiwik-chenrui)
Changed in python-openstackclient:
assignee: nobody → Rui Chen (kiwik-chenrui)
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

"port set --security-group" command exist same issue.

(openstack) port set --security-group 05c20412-ca08-4efa-ae18-dbca110b55d0 chenrui_port
'Port' object has no attribute 'security_groups'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
Ankur (ankur-gupta-f) wrote :
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

Sorry, I didn't find that bug, will abandon my patch, and set the bug duplicated.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

Change abandoned by Rui Chen (<email address hidden>) on branch: master
Review: https://review.openstack.org/434254
Reason: replaced by https://review.openstack.org/#/c/430087/

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.