Bug 2031863

Summary: [UPG 16.2 -> 17.1] Undercloud upgrade won't start due to missing tripleo-undercloud-passwords.yaml file
Product: Red Hat OpenStack Reporter: Jose Luis Franco <jfrancoa>
Component: python-tripleoclientAssignee: Sergii Golovatiuk <sgolovat>
Status: CLOSED ERRATA QA Contact: Khomesh Thakre <kthakre>
Severity: high Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: hbrock, jpretori, jschluet, jslagle, lbezdick, mburns, sgolovat
Target Milestone: betaKeywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-16.4.1-0.20220317214636.b7b58c4 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 01:10:52 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 Jose Luis Franco 2021-12-13 15:38:46 UTC
Description of problem:

During the initial upgrade testing from OSP16.2 to OSP17.0, the undercloud upgrade fails due to the following preflight validation:

2021-12-13 14:09:13 | The /home/stack/tripleo-deploy/undercloud/tripleo-undercloud-passwords.yaml file is missing.  This will cause all service passwords to change and break the existing undercloud. 
2021-12-13 14:09:13 | An error occurred during configuration validation, please check your host configuration and try again.
2021-12-13 14:09:13 | Error message: The /home/stack/tripleo-deploy/undercloud/tripleo-undercloud-passwords.yaml file is missing.  This will cause all service passwords to change and break the existing undercloud. 

Log: http://rhos-ci-logs.lab.eng.tlv2.redhat.com/logs/staging/DFG-upgrades-ffu-17.0-from-16.2-latest_cdn-3cont_2comp_3ceph_1ipa-ipv4-ovn_dvr/4/undercloud-0/home/stack/ffu_undercloud_upgrade.log.gz

However, this file is being created during the migration step to ephemeral heat which takes place at the beginning of the Undercloud upgrade:

https://github.com/openstack/tripleo-heat-templates/blob/stable/wallaby/deployment/undercloud/undercloud-upgrade-ephemeral-heat.yaml#L66-L67

https://github.com/openstack/tripleo-heat-templates/blob/stable/wallaby/scripts/undercloud-upgrade-ephemeral-heat.py#L392

Therefore, this preflight validation should be skipped when the command being triggered is an undercloud upgrade. 

Version-Release number of selected component (if applicable):

python3-tripleoclient-12.5.1-2.20210603180733.95feb7c.el8ost.1.noarch

How reproducible:

Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 17 errata-xmlrpc 2023-08-16 01:10:52 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