Bug 2024227 - [DDF] After restoring the database we have to set the mysql root passwort once again
Summary: [DDF] After restoring the database we have to set the mysql root passwort onc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.2 (Train)
Hardware: All
OS: All
medium
low
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Juan Larriba
QA Contact: myadla
URL:
Whiteboard:
Depends On:
Blocks: 2069076 2076121
TreeView+ depends on / blocked
 
Reported: 2021-11-17 16:15 UTC by Direct Docs Feedback
Modified: 2022-08-02 03:17 UTC (History)
6 users (show)

Fixed In Version: tripleo-ansible-0.8.1-2.20211223005854.b33463b.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2069076 2076121 (view as bug list)
Environment:
Last Closed: 2022-04-08 07:47:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1952099 0 None None None 2021-11-24 13:32:15 UTC
OpenStack gerrit 819108 0 None MERGED bnr - Remove the filter to backup the root grants [mysql] 2021-12-21 13:32:23 UTC
OpenStack gerrit 821898 0 None MERGED bnr - Remove the filter to backup the root grants [mysql] 2022-01-04 15:39:29 UTC
OpenStack gerrit 821899 0 None MERGED bnr - Remove the filter to backup the root grants [mysql] 2022-01-04 15:39:30 UTC
OpenStack gerrit 821900 0 None MERGED bnr - Remove the filter to backup the root grants [mysql] 2022-01-04 15:39:30 UTC
OpenStack gerrit 821901 0 None MERGED bnr - Remove the filter to backup the root grants [mysql] 2022-01-04 15:39:31 UTC
OpenStack gerrit 836610 0 None NEW Undercloud mysql database must be idempotent 2022-04-05 11:11:51 UTC
Red Hat Issue Tracker OSP-10841 0 None None None 2021-11-17 16:16:24 UTC
Red Hat Issue Tracker UPG-4790 0 None None None 2021-11-18 13:26:10 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:12:49 UTC

Description Direct Docs Feedback 2021-11-17 16:15:54 UTC
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 1 Juan Badia Payno 2021-11-24 13:32:16 UTC
As can be seen at [1], the password of the root user is not backed up.

[1] - https://github.com/openstack/tripleo-ansible/blob/stable/train/tripleo_ansible/roles/backup-and-restore/backup/tasks/db_backup.yml#L130

As a workaround and it's being suggested on the BZ. Which is setting back the password of the user root.

Comment 10 errata-xmlrpc 2022-03-23 22:12:24 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 16.2.2), 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:1001


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