You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We hit another version of
#281 from out in the
wild.
The report of this is ansible/awx#15185, and
although it is short on specific of what went on, with some speculation
I was able to mostly logically brute-force out the probable cause. The
imagined reproducer:
- In the "old" AWX UI, go to give a team permission to 2 different roles
to the same thing, like inventory update and adhoc roles.
- It is assumed that this team has members already.
- Submit the requests to assign those permissions concurrently.
This fixes that issue by ignoring conflicts on bulk creation of role evaluations.
thedoubl3j
pushed a commit
to thedoubl3j/django-ansible-base
that referenced
this issue
Jun 18, 2024
…e#401)
We hit another version of
ansible#281 from out in the
wild.
The report of this is ansible/awx#15185, and
although it is short on specific of what went on, with some speculation
I was able to mostly logically brute-force out the probable cause. The
imagined reproducer:
- In the "old" AWX UI, go to give a team permission to 2 different roles
to the same thing, like inventory update and adhoc roles.
- It is assumed that this team has members already.
- Submit the requests to assign those permissions concurrently.
This fixes that issue by ignoring conflicts on bulk creation of role evaluations.
Please confirm the following
security@ansible.com
instead.)Bug Summary
"I updated to the latest version of AWX, everything works perfectly except for the permission update for a team.
When I try to add new permissions to a team, I get the following error:
`
POST api/v2/teams/3/roles/ 400
duplicate key value violates unique constraint "one_entry_per_object_permission_and_role" DETAIL: Key (object_id, content_type_id, codename, role_id)=(37, 6, view_workflowjobtemplate, 65) already exists.
`
I've already tried deleting all permissions and reassigning them, but I still have the same problem."
AWX version
24.3.1
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
"I had a clean installation on version 24, in which I created templates, teams, assigned permissions, and more.
Then I gradually updated until reaching the latest version. Everything works perfectly except for updating permissions for a team."
Expected results
Being able to update permissions correctly.
Actual results
Unable to assign new permissions.
Additional information
No response
The text was updated successfully, but these errors were encountered: