Project

General

Profile

Actions

Bug #23637

closed

backup does not backup /var/lib/foreman-proxy/ssh dir for proxy

Added by Martin Bacovsky almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Procedure
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Backup is missing `/var/lib/foreman-proxy/ssh` which contains the actual keys. We backup just the symlink /usr/share/foreman-proxy/.ssh.

Another related issue is that due to bug in the installer [1] the symlink can be replaced with the actual content and restore fails with

I, [2018-05-17 09:10:18+0000 #27076]  INFO -- : --- Execution step 'Restore configs from backup' started ---
D, [2018-05-17 09:10:18+0000 #27076] DEBUG -- : Running command tar --selinux --extract --file=/tmo/katello-backup-2018-05-17-08-53-41/config_files.tar.gz --overwrite --gzip --listed-incremental=/dev/null --directory=/ with stdin nil
D, [2018-05-17 09:10:23+0000 #27076] DEBUG -- : output of the command:
 tar: usr/share/foreman-proxy/.ssh: Cannot open: File exists
E, [2018-05-17 09:10:23+0000 #27076] ERROR -- : Failed executing tar --selinux --extract --file=/tmo/katello-backup-2018-05-17-08-53-41/config_files.tar.gz --overwrite --gzip --listed-incremental=/dev/null --directory=/, exit status 2:

[1] http://projects.theforeman.org/issues/23592


Related issues 1 (0 open1 closed)

Related to Katello - Bug #23592: foreman-installer --reset changes /usr/share/foreman-proxy/.ssh symlink to directoryClosedJohn MitschActions
Actions

Also available in: Atom PDF