Bug 2031863 - [UPG 16.2 -> 17.1] Undercloud upgrade won't start due to missing tripleo-undercloud-passwords.yaml file
Summary: [UPG 16.2 -> 17.1] Undercloud upgrade won't start due to missing tripleo-unde...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 17.1
Assignee: Sergii Golovatiuk
QA Contact: Khomesh Thakre
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-13 15:38 UTC by Jose Luis Franco
Modified: 2023-08-16 01:11 UTC (History)
7 users (show)

Fixed In Version: python-tripleoclient-16.4.1-0.20220317214636.b7b58c4
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 01:10:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1954753 0 None None None 2021-12-14 10:23:24 UTC
OpenStack gerrit 821710 0 None MERGED Check old passwords file path during uc validation 2022-06-15 13:20:19 UTC
OpenStack gerrit 826217 0 None MERGED Check old passwords file path during uc validation 2022-02-12 15:35:43 UTC
Red Hat Issue Tracker OSP-11813 0 None None None 2021-12-13 15:43:12 UTC
Red Hat Issue Tracker UPG-4876 0 None None None 2021-12-13 18:51:36 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:11:32 UTC

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


Note You need to log in before you can comment on or make changes to this bug.