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:
- 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
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:
(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