Bug 2069076

Summary: [DDF] After restoring the database we have to set the mysql root passwort once again
Product: Red Hat OpenStack Reporter: Juan Badia Payno <jbadiapa>
Component: tripleo-ansibleAssignee: Juan Larriba <jlarriba>
Status: CLOSED ERRATA QA Contact: myadla
Severity: high Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: ddf-bot, jbadiapa, jlarriba, jschluet, mariel, myadla
Target Milestone: z9Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tripleo-ansible-0.5.1-1.20220425094620.902c3c8.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2024227 Environment:
Last Closed: 2022-12-07 20:26:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2024227, 2076121    
Bug Blocks:    

Comment 4 Juan Badia Payno 2022-03-28 08:45:41 UTC
This is the original description of the bugzilla (the previous BZ)

After restoring the database we have to set the mysql root passwort once again. i noticed that after restoring the undercloud database the backup process failed. It failed because it uses the password from hieradata. 
And these are the steps to set the password to the correct one:
- Determining the password: 
root@director~ # hiera -c /etc/puppet/hiera.yaml mysql::server::root_password
- Setting the password:
root@director ~ #  podman exec -ti mysql bash
bash-4.4$ mysqladmin -u root password 

Reported by: rhn-support-tmicheli

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html/backing_up_and_restoring_the_undercloud_and_control_plane_nodes/assembly_restoring-the-undercloud-and-control-plane-nodes_br-undercloud-ctlplane#annotations:6d39c4db-4fca-456d-be2a-22be9813fd9a

Comment 12 errata-xmlrpc 2022-12-07 20:26:20 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.9 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/RHBA-2022:8795