port set --security-group: 'Port' object has no attribute 'security_groups'

Bug #1656788 reported by Dennis Schridde on 2017-01-16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

(openstack) port list --long
| ID | Name | MAC Address | Fixed IP Addresses | Status | Security Groups | Device Owner |
| 1ff97542-ab3b-4f91-b8b8-b113f7443052 | port2 | fa:16:3e:06:1d:10 | ip_address='', subnet_id='8c9c6652 | ACTIVE | 721f6ebc-8eb3-42da-9a73-78d7cb30a45f | |
| | | | -b87c-46ed-aaab-2982cbe76aa2' | | | |

(openstack) port set --security-group c9ee9216-8d74-4e73-91d9-26a80e3620ca 1ff97542-ab3b-4f91-b8b8-b113f7443052
'Port' object has no attribute 'security_groups'

What I would expect: No "has no attribute" error should appear, as this flag is even documented:
(openstack) port set -h
usage: port set [-h] [--description <description>] [--device <device-id>]
                [--device-owner <device-owner>] [--vnic-type <vnic-type>]
                [--host <host-id>] [--dns-name dns-name]
                [--enable | --disable] [--name <name>]
                [--fixed-ip subnet=<subnet>,ip-address=<ip-address>]
                [--no-fixed-ip] [--binding-profile <binding-profile>]
                [--no-binding-profile] [--security-group <security-group>]
                [--enable-port-security | --disable-port-security]
  --security-group <security-group>
                        Security group to associate with this port (name or
                        ID) (repeat option to set multiple security groups)

Dennis Schridde (urzds) on 2017-01-16
affects: maas → python-openstackclient
summary: - port set --security-group - 'Port' object has no attribute
+ port set --security-group: 'Port' object has no attribute
Revision history for this message
Ankur (ankur-gupta-f) wrote :
Changed in python-openstackclient:
assignee: nobody → Ankur (ankur-gupta-f)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/430087
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=9d946f0f45c83c5677e9dd2688830c45cb6a24af
Submitter: Jenkins
Branch: master

commit 9d946f0f45c83c5677e9dd2688830c45cb6a24af
Author: Ankur Gupta <email address hidden>
Date: Mon Feb 6 22:37:46 2017 -0800

    Port set/unset SecGroup Bug Fix

    Throwing error 'Port' object has no attribute 'security_groups'
    Fix for set and unset.

    Change-Id: I1a0625b5a432c7a91cf40249ce4f7c883f53d704
    Closes-Bug: #1656788

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.9.0

This issue was fixed in the openstack/python-openstackclient 3.9.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers