I've removed the role assignments, here's the trace of the failed rerun:
TASK [openstack.osa.service_setup : Add service users to roles] ****************************************************************************************************************************************************************** task path: /etc/ansible/ansible_collections/openstack/osa/roles/service_setup/tasks/setup_roles.yml:32 container_name: "cont01_utility_container-94aa78da" physical_host: "cont01" Container confirmed Container type "lxc" The full traceback is: File "/tmp/ansible_openstack.cloud.role_assignment_payload_142909u1/ansible_openstack.cloud.role_assignment_payload.zip/ansible_collections/openstack/cloud/plugins/module_utils/openstack.py", line 415, in __call__ results = self.run() File "/tmp/ansible_openstack.cloud.role_assignment_payload_142909u1/ansible_openstack.cloud.role_assignment_payload.zip/ansible_collections/openstack/cloud/plugins/modules/role_assignment.py", line 179, in run File "/openstack/venvs/utility-27.3.0/lib/python3.8/site-packages/openstack/cloud/_identity.py", line 1238, in grant_role data = self._get_grant_revoke_params( File "/openstack/venvs/utility-27.3.0/lib/python3.8/site-packages/openstack/cloud/_identity.py", line 1199, in _get_grant_revoke_params raise exc.OpenStackCloudException( failed: [cont01_magnum_container-07246985 -> cont01_utility_container-94aa78da(192.168.233.89)] (item=admin) => { "ansible_loop_var": "role", "attempts": 5, "changed": false, "extra_data": { "data": null, "details": "None", "response": "None" }, "invocation": { "module_args": { "api_timeout": null, "auth": null, "auth_type": null, "ca_cert": null, "client_cert": null, "client_key": null, "domain": "magnum", "endpoint_type": "admin", "group": null, "interface": "admin", "project": "", "region_name": null, "role": "admin", "sdk_log_level": "INFO", "sdk_log_path": null, "state": "present", "system": null, "timeout": 180, "user": "trustee_domain_admin", "validate_certs": true, "wait": true } }, "msg": "Must specify either a user or a group", "role": "admin" }
I've removed the role assignments, here's the trace of the failed rerun:
TASK [openstack. osa.service_ setup : Add service users to roles] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* * ansible_ collections/ openstack/ osa/roles/ service_ setup/tasks/ setup_roles. yml:32 utility_ container- 94aa78da" openstack. cloud.role_ assignment_ payload_ 142909u1/ ansible_ openstack. cloud.role_ assignment_ payload. zip/ansible_ collections/ openstack/ cloud/plugins/ module_ utils/openstack .py", line 415, in __call__ openstack. cloud.role_ assignment_ payload_ 142909u1/ ansible_ openstack. cloud.role_ assignment_ payload. zip/ansible_ collections/ openstack/ cloud/plugins/ modules/ role_assignment .py", line 179, in run venvs/utility- 27.3.0/ lib/python3. 8/site- packages/ openstack/ cloud/_ identity. py", line 1238, in grant_role grant_revoke_ params( venvs/utility- 27.3.0/ lib/python3. 8/site- packages/ openstack/ cloud/_ identity. py", line 1199, in _get_grant_ revoke_ params oudException( magnum_ container- 07246985 -> cont01_ utility_ container- 94aa78da( 192.168. 233.89) ] (item=admin) => { loop_var" : "role",
"module_ args": {
"api_ timeout" : null,
"auth_ type": null,
"ca_ cert": null,
"client_ cert": null,
"client_ key": null,
"domain" : "magnum",
"endpoint_ type": "admin",
"group" : null,
"interface ": "admin",
"project" : "",
"region_ name": null,
"sdk_ log_level" : "INFO",
"sdk_ log_path" : null,
"state" : "present",
"system" : null,
"timeout" : 180, domain_ admin",
"validate_ certs": true,
task path: /etc/ansible/
container_name: "cont01_
physical_host: "cont01"
Container confirmed
Container type "lxc"
The full traceback is:
File "/tmp/ansible_
results = self.run()
File "/tmp/ansible_
File "/openstack/
data = self._get_
File "/openstack/
raise exc.OpenStackCl
failed: [cont01_
"ansible_
"attempts": 5,
"changed": false,
"extra_data": {
"data": null,
"details": "None",
"response": "None"
},
"invocation": {
"auth": null,
"role": "admin",
"user": "trustee_
"wait": true
}
},
"msg": "Must specify either a user or a group",
"role": "admin"
}