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
Using aap_configuration.dispatch role on a configuration set of yaml files, specifying a complete configuration of the gateway fails.
The order of the roles the dispatch role calls is incorrect, trying to map roles to users that aren't created yet.
ansible installation method: one of source, pip, OS package, EE
OS / ENVIRONMENT
Desired Behavior
The dispatch role should run the user creation after the organization creation and before the user_role mapping.
There might be more simular problems with execution ordering of roles in the dispatch role.
This would resolve the error.
Actual Behavior
Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:
TASK [infra.aap_configuration.gateway_role_user_assignments : Role User Assignments | Wait for finish the configuration] *******************************************************************task path: /home/wilco/.ansible/collections/ansible_collections/infra/aap_configuration/roles/gateway_role_user_assignments/tasks/main.yml:32<aap_dev> ESTABLISH LOCAL CONNECTION FOR USER: wilco<aap_dev> EXEC /bin/sh -c 'echo ~wilco && sleep 0'<aap_dev> EXEC /bin/sh -c 'echo ~wilco && sleep 0'<aap_dev> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/wilco/.ansible/tmp `"&& mkdir "` echo /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963 `" && echo ansible-tmp-1734518669.9778216-9370-133732776628963="` echo /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963 `" ) && sleep 0'Using module file /home/wilco/.local/lib/python3.9/site-packages/ansible/modules/async_status.py<aap_dev> PUT /home/wilco/.ansible/tmp/ansible-local-8500v7vk1nmz/tmpp5_114ns TO /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963/AnsiballZ_async_status.py<aap_dev> EXEC /bin/sh -c 'chmod u+x /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963/ /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963/AnsiballZ_async_status.py && sleep 0'<aap_dev> EXEC /bin/sh -c '/usr/bin/python3 /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963/AnsiballZ_async_status.py && sleep 0'<aap_dev> EXEC /bin/sh -c 'rm -f -r /home/wilco/.ansible/tmp/ansible-tmp-1734518669.9778216-9370-133732776628963/ > /dev/null 2>&1 && sleep 0'The full traceback is: File "/tmp/ansible_ansible.platform.role_user_assignment_payload__bj31mnc/ansible_ansible.platform.role_user_assignment_payload.zip/ansible_collections/ansible/platform/plugins/module_utils/aap_module.py", line 264, in make_request response_body = response.read()failed: [aap_dev] (item=Create/Update Role Organization Member | Wait for finish the Roles creation) => { "__gateway_role_user_assignments_job_async_results_item": { "__gateway_role_user_assignments_item": { "object_id": 2, "role_definition": "Organization Member", "user": "wilco" }, "ansible_job_id": "j999485484068.9126", "ansible_loop_var": "__gateway_role_user_assignments_item", "changed": false, "failed": 0, "finished": 0, "results_file": "/home/wilco/.ansible_async/j999485484068.9126", "started": 1 }, "ansible_job_id": "j999485484068.9126", "ansible_loop_var": "__gateway_role_user_assignments_job_async_results_item", "attempts": 1, "changed": false, "finished": 1, "invocation": { "module_args": { "gateway_hostname": "https://aapserver3.localdomain:443", "gateway_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "gateway_request_timeout": 60.0, "gateway_token": null, "gateway_username": "admin", "gateway_validate_certs": false, "object_ansible_id": null, "object_id": 2, "role_definition": "Organization Member", "state": "present", "user": "wilco", "user_ansible_id": null } }, "msg": "c{'user': 'Provide exactly one of user or user_ansible_id', 'user_ansible_id': 'Provide exactly one of user or user_ansible_id'}", "results_file": "/home/wilco/.ansible_async/j999485484068.9126", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
STEPS TO REPRODUCE
Create a simple configuration which adds a user and map the 'Organization admin' role to the same user.
Create a playbook to include the vars and run the aap_configuration.dispatch role.
This will give the above error
The text was updated successfully, but these errors were encountered:
Summary
Using aap_configuration.dispatch role on a configuration set of yaml files, specifying a complete configuration of the gateway fails.
The order of the roles the dispatch role calls is incorrect, trying to map roles to users that aren't created yet.
Issue Type
Ansible, Collection, Controller details
OS / ENVIRONMENT
Desired Behavior
The dispatch role should run the user creation after the organization creation and before the user_role mapping.
There might be more simular problems with execution ordering of roles in the dispatch role.
This would resolve the error.
Actual Behavior
Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:
STEPS TO REPRODUCE
Create a simple configuration which adds a user and map the 'Organization admin' role to the same user.
Create a playbook to include the vars and run the aap_configuration.dispatch role.
This will give the above error
The text was updated successfully, but these errors were encountered: