This contains commands to demo the fix in this patch:
Postgres documents the types of locking it uses here:
https://www.postgresql.org/docs/current/explicit-locking.html
auth | |
[X] 0001_initial | |
[X] 0002_alter_permission_name_max_length | |
[X] 0003_alter_user_email_max_length | |
[X] 0004_alter_user_username_opts | |
[X] 0005_alter_user_last_login_null | |
[X] 0006_require_contenttypes_0002 | |
[X] 0007_alter_validators_add_error_messages | |
[X] 0008_alter_user_username_max_length | |
[X] 0009_alter_user_last_name_max_length |
[1m2024-09-04 19:22:58,406 INFO [60b4e28e] awx.api.authentication User admin performed a DELETE to /api/v2/users/2/ through the API using OAuth 2 token 1.[0m | |
[31;1m2024-09-04 19:22:58,618 ERROR [60b4e28e] django.request Internal Server Error: /api/v2/users/2/[0m | |
[31;1mTraceback (most recent call last):[0m | |
[31;1m File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/db/backends/base/base.py", line 313, in _commit[0m | |
[31;1m return self.connection.commit()[0m | |
[31;1m ^^^^^^^^^^^^^^^^^^^^^^^^[0m | |
[31;1m File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/psycopg/connection.py", line 896, in commit[0m | |
[31;1m self.wait(self._commit_gen())[0m | |
[31;1m File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/psycopg/connection.py", line 969, in wait[0m |
(awx) bash-5.1$ py.test awx/main/tests/functional/api/test_instance_group.py::test_instance_group_order_persistence awx/main/tests/docs/test_swagger_generation.py::TestSwaggerGeneration::test_sanity | |
========================================== test session starts ========================================== | |
platform linux -- Python 3.11.7, pytest-8.1.1, pluggy-1.5.0 | |
django: version: 4.2.6, settings: awx.main.tests.settings_for_test (from ini) | |
rootdir: /awx_devel | |
configfile: pytest.ini | |
plugins: anyio-4.3.0, django-test-migrations-1.3.0, asyncio-0.23.6, cov-5.0.0, django-4.8.0, forked-1.6.0, mock-1.11.1, timeout-2.3.1, xdist-1.34.0 | |
asyncio: mode=Mode.STRICT | |
collected 4 items |
-- Detecting notnull changes not implemented for this database backend | |
BEGIN; | |
-- Application: main | |
-- Model: Role | |
ALTER TABLE "main_rbac_roles" | |
MODIFY "object_id" integer; | |
-- Model: RoleAncestorEntry | |
ALTER TABLE "main_rbac_role_ancestors" | |
MODIFY "content_type_id" integer; |
{ | |
"count": 1, | |
"next": null, | |
"previous": null, | |
"results": [ | |
{ | |
"id": 14, | |
"type": "user", | |
"url": "/api/v2/users/14/", | |
"related": { |
{ | |
"role_permissions": { | |
"awx.credential": [ | |
"awx.use_credential", | |
"awx.change_credential", | |
"awx.delete_credential", | |
"awx.view_credential" | |
], | |
"awx.executionenvironment": [ | |
"awx.change_executionenvironment", |
$ cargo run --release | |
info: syncing channel updates for '1.76-x86_64-unknown-linux-gnu' | |
info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04) | |
info: downloading component 'cargo' | |
info: downloading component 'clippy' | |
info: downloading component 'rust-std' for 'aarch64-apple-darwin' | |
info: downloading component 'rust-std' for 'wasm32-wasi' | |
info: downloading component 'rust-std' for 'x86_64-apple-darwin' | |
info: downloading component 'rust-std' | |
info: downloading component 'rustc' |
{ | |
"count": 55, | |
"next": "/api/v2/organizations/33/access_list/?page=2", | |
"previous": null, | |
"results": [ | |
{ | |
"id": 1, | |
"type": "user", | |
"url": "/api/v2/users/1/", | |
"related": { |
system_administrator | |
instancegroup.admin_role | |
credential.admin_role | |
organization.admin_role | |
workflowjobtemplate.admin_role | |
project.admin_role | |
instancegroup.use_role | |
instancegroup.read_role | |
credential.use_role | |
credential.read_role |
This contains commands to demo the fix in this patch:
Postgres documents the types of locking it uses here:
https://www.postgresql.org/docs/current/explicit-locking.html