Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionMartijn ten Heuvel
2016-10-24 15:07:15 UTC
Description of problem:
When running katello-backup /var/tmp (example) it changes ownership & rights of that directory
Version-Release number of selected component (if applicable):
[root@satellite62 virt-who.d]# yum provides /bin/katello-backup
Loaded plugins: product-id, search-disabled-repos, subscription-manager
katello-common-3.0.0-13.el7sat.noarch : Common runtime components of katello
Repo : @rhel-7-server-satellite-6.2-rpms
Matched from:
Filename : /bin/katello-backup
How reproducible:
100%
Steps to Reproduce:
1. login to satellite62 server.
2. become root
3. run katello-backup --skip-pulp-content /var/tmp
Actual results:
Ownership of /var/tmp is changed to:
drwxrwx---. 2 root postgres
which consequently breaks the startup of foreman-tasks
Expected results:
Don't change ownership of existing directories.
Additional info:
Suggested solution:
- Don't change ownership.
- If cared about ownership for some reason, fail with suggestion on ownership and/or creation of a new directory
Verification steps:
- Choose an existing directory to back up to (i.e. /tmp/backup), look at its ownership values
- Create a backup as root pointing at that existing directory (i.e. # katello-backup /tmp/backup)
- Verify the existing directory has its original ownership values (i.e. /tmp/backup ownership has not changed since the backup initiated)
Verified on Sat 6.2.9-1, as katello-backup now dumps data into a subdirectory, the destination's ownership is not altered. Checked with /var/tmp:
~]# ll /var
drwxrwxrwt. 4 root root 4096 Mar 24 08:19 tmp
...
~]# katello-backup --skip-pulp-content /var/tmp
...
~]# ll /var
drwxrwxrwt. 5 root root 4096 Mar 24 08:23 tmp
~]# ll /var/tmp
drwxrwx---. 2 root postgres 4096 Mar 24 08:23 katello-backup-2017-03-24T08:22:33-04:00
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-2017:1191