Bug 2223325

Summary: [Upgrade [OSP16.2 -> OSP17.1] ipa environment failed on updating content on compute-0 based on rhel-9
Product: Red Hat OpenStack Reporter: Juan Badia Payno <jbadiapa>
Component: openstack-tripleo-heat-templatesAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED ERRATA QA Contact: Khomesh Thakre <kthakre>
Severity: high Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: jpretori, lbezdick, mburns, pgrist
Target Milestone: gaKeywords: Triaged
Target Release: 17.1Flags: astillma: needinfo? (lbezdick)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-14.3.1-1.20230519151018.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 01:15:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juan Badia Payno 2023-07-17 11:32:17 UTC
2023-07-16 21:00:51.679 | TASK [tripleo-upgrade : run overcloud major upgrade for the host compute-0] ****
2023-07-16 21:00:51.681 | task path: /home/rhos-ci/jenkins/workspace/DFG-upgrades-ffu-17.1-9.2-passed_phase2-from-17.1-rhel-8.4-latest-RHOS-17.1-RHEL-8.4-3cont_2comp_3ceph_1ipa-ipv4-ovn_dvr/infrared/plugins/tripleo-upgrade/infrared_plugin/roles/tripleo-upgrade/tasks/fast-forward-upgrade/overcloud_upgrade_hosts.yaml:98
2023-07-16 21:00:51.684 | Sunday 16 July 2023  21:00:51 +0000 (0:00:00.050)       0:30:49.285 *********** 
2023-07-16 21:07:03.378 | fatal: [undercloud-0]: FAILED! => {
2023-07-16 21:07:03.383 |     "changed": true,
2023-07-16 21:07:03.387 |     "cmd": "set -o pipefail\n/home/stack/overcloud_upgrade_run-compute-0.sh 2>&1 | awk '{ print strftime(\"%Y-%m-%d %H:%M:%S |\"), $0; fflush(); }' >>    /home/stack/overcloud_upgrade_run-compute-0.log\n",
2023-07-16 21:07:03.391 |     "delta": "0:06:11.460213",
2023-07-16 21:07:03.395 |     "end": "2023-07-16 21:07:03.346209",
2023-07-16 21:07:03.399 |     "rc": 1,
2023-07-16 21:07:03.403 |     "start": "2023-07-16 21:00:51.885996"
2023-07-16 21:07:03.406 | }
2023-07-16 21:07:03.409 | 


On the openstack overcloud run --limit compute-0

2023-07-16 21:07:02 | 2023-07-16 21:07:02.786381 | 5254004b-43ce-b460-e935-000000002146 |      FATAL | add required services using custom module | undercloud | error={"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({{ tripleo_ipa_server_metadata | from_json | parse_service_metadata(base_server_fqdn) }}).\nMake sure your variable name does not contain invalid characters like '-': the JSON object must be str, bytes or bytearray, not AnsibleUndefined. the JSON object must be str, bytes or bytearray, not AnsibleUndefined. Unable to look up a name or access an attribute in template string ({{ tripleo_ipa_server_metadata | from_json | parse_service_metadata(base_server_fqdn) }}).\nMake sure your variable name does not contain invalid characters like '-': the JSON object must be str, bytes or bytearray, not AnsibleUndefined. the JSON object must be str, bytes or bytearray, not AnsibleUndefined\n\nThe error appears to be in '/usr/share/ansible/roles/tripleo_ipa_registration/tasks/main.yml': line 64, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: add required services using custom module\n  ^ here\n"}
2023-07-16 21:07:02 | 2023-07-16 21:07:02.787602 | 5254004b-43ce-b460-e935-000000002146 |     TIMING | tripleo_ipa_registration : add required services using custom module | undercloud | 0:06:08.224656 | 0.05s
2023-07-16 21:07:02 | 
2023-07-16 21:07:02 | PLAY RECAP *********************************************************************
2023-07-16 21:07:02 | compute-0                  : ok=283  changed=74   unreachable=0    failed=0    skipped=206  rescued=0    ignored=2   
2023-07-16 21:07:02 | undercloud                 : ok=50   changed=11   unreachable=0    failed=1    skipped=6    rescued=0    ignored=2   
2023-07-16 21:07:02 | 2023-07-16 21:07:02.821347 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comment 15 errata-xmlrpc 2023-08-16 01:15:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577