Bug 1815181

Summary: Rerunning openstack undercloud install fails when using output_dir --- Error message: The /home/stack/undercloud-passwords.conf file is missing. This will cause all service passwords to change and break the existing undercloud.
Product: Red Hat OpenStack Reporter: Andreas Karis <akaris>
Component: python-tripleoclientAssignee: Kevin Carter <kecarter>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: aschultz, drosenfe, emacchi, hbrock, jhajyahy, jslagle, kecarter, mburns
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.3.2-0.20200409182512.d4c35c0.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-29 07:51:01 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 Andreas Karis 2020-03-19 17:50:19 UTC
Rerunning openstack undercloud install fails when using output_dir  --- Error message: The /home/stack/undercloud-passwords.conf file is missing.  This will cause all service passwords to change and break the existing undercloud.

Redeployment fails with:
~~~
Error message: The /home/stack/undercloud-passwords.conf file is missing.  This will cause all service passwords to change and break the existing undercloud.
~~~

Customer provided this in undercloud.conf:
~~~
output_dir = /home/stack/undercloud-deployment-output-directory
~~~

- deploy the undecloud. The initial deployment will complete with below message:
~~~
<snip>
[...]
##########################################################

The Undercloud has been successfully installed.

Useful files:

Password file is at ~/undercloud-passwords.conf
The stackrc file is at ~/stackrc

Use these files to interact with OpenStack services, and
ensure they are secured.

##########################################################
</snip>
~~~

- update any configuration from the undercloud conf
- try to redeploy
- it will fail with:
---
Error message: The /home/stack/undercloud-passwords.conf file is missing.  This will cause all service passwords to change and break the existing undercloud.
---


-----------------

More details:

~~~
(undercloud) [stack@786895-director01 ~]$ openstack undercloud install
The /home/stack/undercloud-passwords.conf file is missing.  This will cause all service passwords to change and break the existing undercloud.
An error occurred during configuration validation, please check your host configuration and try again.
Error message: The /home/stack/undercloud-passwords.conf file is missing.  This will cause all service passwords to change and break the existing undercloud.
~~~

Workaround:
~~~
(undercloud) [stack@786895-director01 ~]$ find . -name undercloud-passwords.conf
./undercloud-deployment-output-directory/undercloud-passwords.conf
(undercloud) [stack@786895-director01 ~]$ cp ./undercloud-deployment-output-directory/undercloud-passwords.conf .
~~~

~~~
[stack@786895-director01 ~]$ openstack undercloud install
Running: (... this now works ...)
~~~

Comment 8 Jad Haj Yahya 2020-07-21 12:15:26 UTC
Move undercloud-passwords.conf file  to /home/stack/undercloud-deployment-output-directory/ and rerun undercloud deployment

Comment 10 errata-xmlrpc 2020-07-29 07:51:01 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, 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/RHBA-2020:3148