Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undercloud backup fails for osp14 #1

Open
ahrechanychenko opened this issue Mar 14, 2019 · 0 comments
Open

undercloud backup fails for osp14 #1

ahrechanychenko opened this issue Mar 14, 2019 · 0 comments

Comments

@ahrechanychenko
Copy link
Contributor

TASK [replace-controller : perform undercloud db backup] ***********************
task path: /home/rhos-ci/jenkins/workspace/DFG-df-controller_replacement-14-virthost-3cont_3comp_3ceph-yes_UC_SSL-yes_OC_SSL-ceph-ipv4-vxlan-replace_controller-corrupt_disk-RHELOSP-38495/infrared/plugins/cloud-config/post_tasks/roles/replace-controller/tasks/main.yml:4
Wednesday 13 March 2019 23:11:58 +0000 (0:00:01.081) 0:01:24.928 *******
[WARNING]: Consider using the file module with state=directory rather than
running 'mkdir'. If you need to use command because file is insufficient you
can add 'warn: false' to this command task or set 'command_warnings=False' in
ansible.cfg to get rid of this message.

changed: [undercloud-0] => {
"changed": true,
"cmd": "mkdir -p /home/stack/backup\n mysqldump --all-databases --quick --single-transaction | gzip > /home/stack/backup/dump_db_undercloud.sql.gz",
"delta": "0:00:00.008520",
"end": "2019-03-13 19:11:58.864072",
"rc": 0,
"start": "2019-03-13 19:11:58.855552"
}

STDERR:

/bin/sh: line 1: mysqldump: command not found

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/html-single/director_installation_and_usage/#preparing-for-controller-replacement

Way to fix:

  1. Install the database client tools:
    (undercloud) $ sudo yum -y install mariadb

2)Configure root user access to the database:
(undercloud) $ sudo cp /var/lib/config-data/puppet-generated/mysql/root/.my.cnf /root/.

3)Perform a backup of the undercloud databases:
(undercloud) $ mkdir /home/stack/backup
(undercloud) $ sudo mysqldump --all-databases --quick --single-transaction | gzip > /home/stack/backup/dump_db_undercloud.sql.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant