yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95974
[Bug 2112556] [NEW] Non-admin user cannot create ports in Horizon
Public bug reported:
When trying to create a new port as a non-admin user, it results in a policy error of this type:
ForbiddenException: 403: Client Error for url [...] (rule:create_port and rule:create_port:port_security_enabled) is disallowed by policy
Creating the port from CLI works, but the issue appears when using
horizon since the dashboard forces the appearance of a checkbox that
coincides with a flag that cannot be used by a non-admin user (--enable-
port-security).
This is similar to this bug:
https://bugs.launchpad.net/horizon/+bug/1841050.
This should've been fixed in:
https://review.opendev.org/c/openstack/horizon/+/859154?tab=change-view-
tab-header-zuul-results-summary, but it seems like only the update
option was fixed and the create option still has this bug:
https://review.opendev.org/c/openstack/horizon/+/859154/1/openstack_dashboard/dashboards/project/networks/ports/workflows.py#392
** Affects: horizon
Importance: Undecided
Status: New
--
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/2112556
Title:
Non-admin user cannot create ports in Horizon
Status in OpenStack Dashboard (Horizon):
New
Bug description:
When trying to create a new port as a non-admin user, it results in a policy error of this type:
ForbiddenException: 403: Client Error for url [...] (rule:create_port and rule:create_port:port_security_enabled) is disallowed by policy
Creating the port from CLI works, but the issue appears when using
horizon since the dashboard forces the appearance of a checkbox that
coincides with a flag that cannot be used by a non-admin user
(--enable-port-security).
This is similar to this bug:
https://bugs.launchpad.net/horizon/+bug/1841050.
This should've been fixed in:
https://review.opendev.org/c/openstack/horizon/+/859154?tab=change-
view-tab-header-zuul-results-summary, but it seems like only the
update option was fixed and the create option still has this bug:
https://review.opendev.org/c/openstack/horizon/+/859154/1/openstack_dashboard/dashboards/project/networks/ports/workflows.py#392
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2112556/+subscriptions