yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95061
[Bug 2089557] Re: 'Port' object has no attribute 'security_groups'
Reviewed: https://review.opendev.org/c/openstack/horizon/+/937666
Committed: https://opendev.org/openstack/horizon/commit/3ab66494ba56afb912de9586ad36533140837ec6
Submitter: "Zuul (22348)"
Branch: master
commit 3ab66494ba56afb912de9586ad36533140837ec6
Author: Takashi Kajinami <kajinamit@xxxxxxxxxxxxxxx>
Date: Fri Dec 13 12:34:08 2024 +0900
Fix the attribute to look up security group ids of a port
A port instance from openstacksdk exposes ids of the associated
security groups in the 'security_group_ids' attribute[1]. Replace
the old attribute name from neutronclient to fix the regression caused
by migration to openstacksdk[1].
[1] https://docs.openstack.org/openstacksdk/latest/user/resources/network/v2/port.html#openstack.network.v2.port.Port.security_group_ids
[2] c7a640733042ac49a24ce2a457741fd4fe511571
Closes-Bug: #2089557
Change-Id: I58a6d816d0591989abf57261ab98f3368f107a1c
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2089557
Title:
'Port' object has no attribute 'security_groups'
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
Versions:
- Horizon 25.1
- Neutron 25.0
To reproduce:
- Login as admin
- Project -> Network -> Create Network
- Name = demo-net, Shared = No, External = No, Admin State = True, Subnet = demo-subnet 10.0.0.0/24
- Create a port (setting doesn't matter)
- Press the "Edit Port" button
Error:
- Unable to retrieve security group list. Please try again later. Details 'Port' object has no attribute 'security_groups'
- If extension_drivers = port_security in ml2_conf.ini, the "Port Security" checkbox in "Edit Port" diaglog is always deselected even the default state should be selected for newly created ports as confirmed in database
Partial fix:
- use port.security_group_ids instead in https://opendev.org/openstack/horizon/src/commit/1b15f51babd107b82accbe9baea0fb882303267e/openstack_dashboard/dashboards/project/networks/ports/workflows.py#L377
- the status of the "Port Security" checkbox will need a further fix
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2089557/+subscriptions
References