Bug 1867920 - overcloud export command exports the generated password values even if user provided values were set
Summary: overcloud export command exports the generated password values even if user p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 16.1 (Train on RHEL 8.2)
Assignee: James Slagle
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-11 08:10 UTC by Eduard Barrera
Modified: 2023-10-06 21:28 UTC (History)
19 users (show)

Fixed In Version: python-tripleoclient-12.3.2-1.20200914164926.72161e0.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-28 15:38:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1891388 0 None None None 2020-08-12 19:13:34 UTC
OpenStack gerrit 746160 0 None MERGED Use user set password values in overcloud export 2020-12-13 12:37:15 UTC
Red Hat Issue Tracker OSP-29518 0 None None None 2023-10-06 21:28:09 UTC
Red Hat Product Errata RHEA-2020:4284 0 None None None 2020-10-28 15:39:12 UTC

Comment 6 James Slagle 2020-08-12 19:10:46 UTC
The issue with the wrong password being in central-export.yaml is a problem with openstack overcloud export. It assumes the "passwords" key in plan-environment.yaml are the passwords used during the deployment. One would think that would be the case, however those passwords are actually always the generated passwords regardless of if a user defined password was used or not. The export command needs to look at parameter_defaults from plan-environment.yaml to get the user defined values, and fall back to passwords if none was specified.

Comment 12 Marian Krcmarik 2020-09-30 18:43:39 UTC
$ grep debug overcloud_deploy.sh 
-e /home/stack/central/debug.yaml \
$ grep AdminPassword /home/stack/central/debug.yaml 
    AdminPassword: nazdar
$ openstack overcloud export --force-overwrite --stack central --output-file /home/stack/new-central-export.yaml > /dev/null
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 35040), raddr=('192.168.24.2', 13000)>
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 34430), raddr=('192.168.24.2', 13004)>
$ grep AdminPassword /home/stack/new-central-export.yaml 
  AdminPassword: nazdar

Comment 19 errata-xmlrpc 2020-10-28 15:38:46 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 (Red Hat OpenStack Platform 16.1 bug fix and enhancement 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/RHEA-2020:4284

Comment 20 Red Hat Bugzilla 2023-09-14 06:05:37 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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