Bug 1815181 - 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.
Summary: Rerunning openstack undercloud install fails when using output_dir --- Error...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 16.1 (Train on RHEL 8.2)
Assignee: Kevin Carter
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-19 17:50 UTC by Andreas Karis
Modified: 2023-10-06 19:27 UTC (History)
8 users (show)

Fixed In Version: python-tripleoclient-12.3.2-0.20200409182512.d4c35c0.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-29 07:51:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1868619 0 None None None 2020-03-23 21:16:47 UTC
OpenStack gerrit 716281 0 None MERGED Normalize the 'undercloud-passwords.conf' return data 2021-01-21 20:05:02 UTC
OpenStack gerrit 718415 0 None MERGED Ensure the undercloud output dir constant is consistent 2021-01-21 20:05:02 UTC
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:51:16 UTC

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


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