Bug 1444069
Summary: | katello-backup --online-backup fails to create foreman.dump and candlepin.dump | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Ondrejka <pondrejk> |
Component: | Backup & Restore | Assignee: | Christine Fouant <cfouant> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.2.9 | CC: | andrew.schofield, bbuckingham, bkearney, cfouant, daniele, kabbott, mverma |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 16:54:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1439123 |
Description
Peter Ondrejka
2017-04-20 13:49:22 UTC
workaround: this issue does not occur when the backup directory is created under /tmp/ When attempting to create backups using a full path to a custom destination directory like this: # katello-backup --online-backup /root/backup_directory ...pg_dump produces a different error: -bash: /root/backup_directory/katello-backup-2017-04-20T10:36:36-04:00/foreman.dump: Permission denied -bash: /root/backup_directory/katello-backup-2017-04-20T10:36:36-04:00/candlepin.dump: Permission denied This occurs with setenforce 0 as well, may be related to https://bugzilla.redhat.com/show_bug.cgi?id=1432013 So there are 2 problems here: - pg_dump used in online backup requires full path to the destination dir - pg_dump doesn't get permission to write to custom destination dirs Hi Peter, Currently right now this is an issue that is fixed but will not be available until 6.1.12: https://bugzilla.redhat.com/show_bug.cgi?id=1432013 For right now in the docs we need to provide a note to run katello-backup --online-backup in the /tmp directory. Once this is fixed in 6.2.12 we can remove this note from the docs. Most customers should be using /tmp anyways and then push it to where they want to store it. Hi Christine, good to know, thanks. I filed https://bugzilla.redhat.com/show_bug.cgi?id=1452659 to let documentation know. Verified on satellite-6.3.0-17.0.beta.el7sat.noarch, when obeying the recommendation to use /tmp or /var/tmp, the dump files are created as expected ~]# ll /var/tmp/backup/katello-backup-20170905084527/ total 4980 -rw-r--r--. 1 postgres postgres 267615 Sep 5 08:46 candlepin.dump -rw-r--r--. 1 root root 674369 Sep 5 08:45 config_files.tar.gz -rw-r--r--. 1 postgres postgres 4099807 Sep 5 08:46 foreman.dump -rw-r--r--. 1 root root 48812 Sep 5 08:45 metadata.yml drwxr-xr-x. 5 root root 52 Sep 5 08:46 mongo_dump -rw-r--r--. 1 postgres postgres 650 Sep 5 08:46 pg_globals.dump 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/RHSA-2018:0336
|