"openstack undercloud backup" creates empty files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Toure Dunnon |
Bug Description
The file undercloud backup file downloaded from swift contains two empty files (the DBs and the filesystem):
To reproduce:
1.- Install the undercloud (Ensure apply patch https:/
2.- Do the undercloud backup, execute: "openstack undercloud backup"
3.- Download the backup to a temporary directory
mkdir tmp
cd tmp
swift list
__cache__
overcloud
overcloud
tripleo-
underclou
underclou
swift download undercloud-backups
4.- Check the backup files
(undercloud) [stack@undercloud tmp]$ ls
UC-backup-
(undercloud) [stack@undercloud tmp]$ tar xvf UC-backup-
./
./all-
./filesystem-
(undercloud) [stack@undercloud tmp]$ ls -lhrt
total 36K
-rw-r--r--. 1 stack stack 10K Jan 23 06:57 filesystem-
-rw-r--r--. 1 stack stack 20 Jan 23 06:57 all-databases-
-rw-rw-r--. 1 stack stack 20K Jan 23 06:57 UC-backup-
(undercloud) [stack@undercloud tmp]$ gzip -d all-databases-
(undercloud) [stack@undercloud tmp]$ ls -la
total 36
drwx------. 2 stack stack 119 Jan 23 07:13 .
drwx------. 10 stack stack 4096 Jan 23 07:11 ..
-rw-r--r--. 1 stack stack 0 Jan 23 06:57 all-databases-
-rw-r--r--. 1 stack stack 10240 Jan 23 06:57 filesystem-
-rw-rw-r--. 1 stack stack 20480 Jan 23 06:57 UC-backup-
(undercloud) [stack@undercloud tmp]$ tar xvf filesystem-
(undercloud) [stack@undercloud tmp]$ tar -tvf filesystem-
Changed in tripleo: | |
assignee: | nobody → Martin Mágr (mmagr) |
Changed in tripleo: | |
milestone: | none → stein-3 |
status: | New → In Progress |
Changed in tripleo: | |
milestone: | stein-3 → stein-rc1 |
Changed in tripleo: | |
importance: | Undecided → Medium |
milestone: | stein-rc1 → train-1 |
Changed in tripleo: | |
milestone: | train-1 → train-2 |
Changed in tripleo: | |
assignee: | Martin Mágr (mmagr) → Toure Dunnon (toure) |
Changed in tripleo: | |
milestone: | train-2 → train-3 |
The CreateDatabaseB ackup depends on the mysqldump command which is not installed on the mistral_executor container.
https:/ /github. com/openstack/ tripleo- common/ blob/master/ tripleo_ common/ actions/ undercloud. py#L83
The CreateFileSyste mBackup depends on "sudo" and the visibility of the filesystem. The container has none of them.
https:/ /github. com/openstack/ tripleo- common/ blob/master/ tripleo_ common/ actions/ undercloud. py#L136
(undercloud) [stack@undercloud ~]$ sudo podman exec -it mistral_executor /bin/bash undercloud /]$ ls -l /home/ undercloud /]$ sudo tar cvfz /var/tmp/test.tgz /home/
()[mistral@
total 0
drwx------. 2 validations validations 62 Jan 21 15:17 validations
()[mistral@
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for mistral: