Description of problem: "openstack undercloud install" fails during the tripleo-ansible task "Async assignment of Keystone user to roles." This is a bug that was fixed back in March and April 2020. See https://bugs.launchpad.net/tripleo/+bug/1867608 There are two commits in the launchpad bug report. Only the second commit actually appears in the tripleo-ansible distributed as part of RHOSP 16.1. The first commit (https://opendev.org/openstack/tripleo-ansible/commit/e86977ab48e4d7e66bda9060e51e396d4f6a85fe) is not present. I applied this by hand and the undercloud install finished successfully. How reproducible: Always Actual results: TASK [tripleo-keystone-resources : Async assignment of Keystone user to roles] ******************************** *************************************************** Wednesday 30 December 2020 09:12:09 -0700 (0:00:00.188) 0:12:04.505 **** changed: [ni-dir] => (item={'glance': {'project': 'service'}}) changed: [ni-dir] => (item={'heat': {'project': 'service'}}) An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'str' object has no attribute 'get' failed: [ni-dir] (item={'heat_stack_domain_admin': {'domain': 'heat_stack'}}) => {"ansible_loop_var": "tripleo_keystone_resources_data_user", "changed": false, "tripleo_keystone_resources_data_user": {"heat_stack_domain_admin": {"domain": "heat_stack"}}} changed: [ni-dir] => (item={'ironic': {'project': 'service'}}) changed: [ni-dir] => (item={'ironic-inspector': {'project': 'service'}}) changed: [ni-dir] => (item={'mistral': {'project': 'service'}}) changed: [ni-dir] => (item={'neutron': {'project': 'service'}}) changed: [ni-dir] => (item={'nova': {'project': 'service'}}) changed: [ni-dir] => (item={'placement': {'project': 'service'}}) changed: [ni-dir] => (item={'swift': {'project': 'service'}}) Expected results: TASK [tripleo-keystone-resources : Async assignment of Keystone user to roles] *********************************************************************************** Wednesday 30 December 2020 09:52:33 -0700 (0:00:00.229) 0:11:39.812 **** changed: [ni-dir] => (item={'glance': {'project': 'service'}}) changed: [ni-dir] => (item={'heat': {'project': 'service'}}) changed: [ni-dir] => (item={'heat_stack_domain_admin': {'domain': 'heat_stack'}}) changed: [ni-dir] => (item={'ironic': {'project': 'service'}}) changed: [ni-dir] => (item={'ironic-inspector': {'project': 'service'}}) changed: [ni-dir] => (item={'mistral': {'project': 'service'}}) changed: [ni-dir] => (item={'neutron': {'project': 'service'}}) changed: [ni-dir] => (item={'nova': {'project': 'service'}}) changed: [ni-dir] => (item={'placement': {'project': 'service'}}) changed: [ni-dir] => (item={'swift': {'project': 'service'}}) Additional info:
Hello Tim, Care to show the version of the tripleo-ansible package you're using? Thank you. Cheers, C.
Hi, Looks like the RPM is tripleo-ansible-0.4.2-0.20200404124615.67005aa.el8ost.noarch [~]$ rpm -qi tripleo-ansible Name : tripleo-ansible Version : 0.4.2 Release : 0.20200404124615.67005aa.el8ost Architecture: noarch Install Date: Tue 29 Dec 2020 04:04:11 PM MST Group : System Environment/Base Size : 1141130 License : ASL 2.0 Signature : RSA/SHA256, Mon 04 May 2020 12:07:05 AM MDT, Key ID 199e2f91fd431d51 Source RPM : tripleo-ansible-0.4.2-0.20200404124615.67005aa.el8ost.src.rpm Build Date : Thu 30 Apr 2020 08:46:48 AM MDT Build Host : x86-vm-07.build.eng.bos.redhat.com Relocations : (not relocatable) Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> Vendor : Red Hat, Inc. URL : https://git.openstack.org/cgit/openstack/tripleo-ansible Summary : Ansible project for TripleO Description : Ansible project for TripleO Thanks, Tim
This is likely a bug in the ansible module os_user_role as that's what is being called here. If possible would it be able to run with --debug?
Yes, it's the same bug as described in https://bugs.launchpad.net/tripleo/+bug/1867608. Applying the patch at https://opendev.org/openstack/tripleo-ansible/commit/e86977ab48e4d7e66bda9060e51e396d4f6a85fe fixes it. I have confirmed on my testbed.
Ah you have the version of tripleo-ansible for OSP16.0. You need to yum update tripleo-ansible to bring it current with what is expected. 0.5.1-x is the version for 16.1
Ok, that explains it. I tried to yum update tripleo-ansible but it says I am current. I think there is a problem with my subscription as I'm unable to access the EUS repositories. I'm opening a support case. I suspect that once I have access to the proper repositories for 16.1 that this will be resolved. If you want me to confirm in this ticket let me know. Thanks for your help. Tim
Yes that is likely the issue. Please reopen this bug if it continues to be a problem once you have 0.5.1 of tripleo-ansible