<pre> # katello-backup . Starting backup: 2018-02-12 11:11:37 +0000 Creating backup folder ./katello-backup-20180212111138 Generating metadata ... /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here Done. Backing up config files... Failed 'tar --selinux --create --gzip --file=./katello-backup-20180212111138/config_files.tar.gz --listed-incremental=./katello-backup-20180212111138/.config.snar /etc/foreman-proxy /etc/httpd /etc/foreman-installer /etc/pki/katello /etc/pki/katello-certs-tools /etc/pki/pulp /etc/pulp /etc/puppet /etc/qpid /etc/qpid-dispatch /root/ssl-build /var/www/html/pub /etc/squid /etc/puppetlabs /opt/puppetlabs/puppet/cache/foreman_cache_data /opt/puppetlabs/puppet/ssl/ /var/lib/puppet/foreman_cache_data /var/lib/puppet/ssl /etc/candlepin /etc/foreman /etc/hammer /etc/sysconfig/tomcat* /etc/tomcat* /var/lib/candlepin 2>/dev/null' with exit code 141 Cleaning up backup folder and starting any stopped services... /usr/share/ruby/fileutils.rb:125: warning: conflicting chdir during another chdir block Done. </pre> Calling <code>katello-backup $(pwd)</code> works as expected.
Created from redmine issue http://projects.theforeman.org/issues/22548
Upstream bug assigned to egolov
Failed QA in Satellite 6.2.15. The code fix is not present in the currently packaged version of katello-backup and the error is still present. -bash-4.2# sed -n 70p /usr/bin/katello-backup @dir = ARGV[0].dup
Verified in Satellite 6.2.15 Snap 2. -bash-4.2# mcd /tmp/backup -bash-4.2# pwd /tmp/backup -bash-4.2# katello-backup . Starting backup: 2018-04-27 15:05:41 -0400 Creating backup folder /tmp/backup/katello-backup-20180427150541 Generating metadata ... Done. Backing up config files... Done. WARNING: This script will stop your services. Do you want to proceed(y/n)? y Redirecting to /bin/systemctl stop foreman-tasks.service Redirecting to /bin/systemctl stop httpd.service Redirecting to /bin/systemctl stop pulp_workers.service Redirecting to /bin/systemctl stop pulp_streamer.service Redirecting to /bin/systemctl stop pulp_resource_manager.service Redirecting to /bin/systemctl stop pulp_celerybeat.service Redirecting to /bin/systemctl stop tomcat.service Redirecting to /bin/systemctl stop postgresql.service Redirecting to /bin/systemctl stop mongod.service Backing up Pulp data... Done. Backing up postgres db... Done. Backing up mongo db... Done. Redirecting to /bin/systemctl start mongod.service Redirecting to /bin/systemctl start postgresql.service Redirecting to /bin/systemctl start tomcat.service Redirecting to /bin/systemctl start pulp_celerybeat.service Redirecting to /bin/systemctl start pulp_resource_manager.service Redirecting to /bin/systemctl start pulp_streamer.service Redirecting to /bin/systemctl start pulp_workers.service Redirecting to /bin/systemctl start httpd.service Redirecting to /bin/systemctl start foreman-tasks.service Done with backup: 2018-04-27 15:10:38 -0400 **** BACKUP Complete, contents can be found in: /tmp/backup/katello-backup-20180427150541 **** -bash-4.2# catline 70 /usr/bin/katello-backup @dir = File.expand_path(ARGV[0].dup)
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, 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-2018:1672