Bug 2129483
| Summary: | Unable to update port as member user from Horizon | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Brendan Shephard <bshephar> |
| Component: | python-django-horizon | Assignee: | Radomir Dopieralski <rdopiera> |
| Status: | CLOSED ERRATA | QA Contact: | ikanias |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 16.2 (Train) | CC: | rdopiera |
| Target Milestone: | --- | Keywords: | Reopened, Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-django-horizon-16.2.3-2.20220926144724.d3d3d18.el8ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-12-07 19:27:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1670572 | ||
| Bug Blocks: | |||
|
Description
Brendan Shephard
2022-09-24 00:35:59 UTC
*** This bug has been marked as a duplicate of bug 1670572 *** Hey Radomir, Just providing some clarification on this BZ about why it was closed as a duplicate. So the fix linked on this bugzilla: https://review.opendev.org/859159 was merged into downstream RHOSP16.2 repos as part of changes linked to the other BZ. Checking the Fixed In Version linked to this BZ: python-django-horizon-16.2.3-2.20220926144724.d3d3d18.el8osttrunk I can see that it does indeed contain the fix: [fedora@fedora-work Downloads]$ tail -n23 0014-Don-t-try-and-update-port-security-if-its-not-changi.patch diff --git a/openstack_dashboard/dashboards/project/networks/ports/workflows.py b/openstack_dashboard/dashboards/project/networks/ports/workflows.py index fe9175d..ca1e04c 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/workflows.py +++ b/openstack_dashboard/dashboards/project/networks/ports/workflows.py @@ -406,10 +406,18 @@ class UpdatePort(workflows.Workflow): name = self.context['name'] or self.context['port_id'] return message % name + def _port_security_unchanged(self, request, port_id, params): + new = params.get('port_security_enabled') + port = api.neutron.port_get(request, port_id) + existing = port.get('port_security_enabled') + return existing == new + def handle(self, request, data): port_id = self.context['port_id'] LOG.debug('params = %s', data) params = self._construct_parameters(data) + if self._port_security_unchanged(request, port_id, params): + params.pop('port_security_enabled') try: api.neutron.port_update(request, port_id, **params) return True So for customers looking for this fix, it will be available in an upcoming z-stream of 16.2. While I can't talk about exact release dates publicly, I can say that it appears this has merged in time to be shipped with z4 which will be the next z-stream release. Sorry, I should have probably marked it as related, not duplicate, since it's a different version. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Low: Red Hat OpenStack Platform 16.2.4 (python-django-horizon) security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8856 |