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.
Bug 1518723 - Restored files have wrong SELinux contexts
Summary: Restored files have wrong SELinux contexts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Clone
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1533259
TreeView+ depends on / blocked
 
Reported: 2017-11-29 14:04 UTC by Lukas Zapletal
Modified: 2019-04-12 15:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-21 15:57:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github RedHatSatellite satellite-clone issues 277 0 None closed [HTB] Restored files have wrong SELinux contexts 2021-01-05 05:26:48 UTC

Description Lukas Zapletal 2017-11-29 14:04:44 UTC
When backups are restored and pulp/candlepin/katello selinux policies are not yet loaded (rpm packages are not even installed), then contexts cannot be restored. There are warnings during extracting tarballs:

tar: setfileconat: Cannot set SELinux context for file 'var/lib/candlepin/hornetq/bindings/hornetq-bindings-1.bindings': Invalid argument
Various components will then fail to start (e.g. Candlepin - unable to read CRT files) in enforcing.

SOLUTION: Install pulp-selinux, candlepin-selinux, foreman*-selinux and katello-selinux BEFORE any files gets extracted.

https://github.com/RedHatSatellite/satellite-clone/issues/277

Comment 4 John Mitsch 2017-11-29 15:34:46 UTC
I the order of the playbook, the backup should be restored after Satellite is installed. Do you have output from the playbook?


Note You need to log in before you can comment on or make changes to this bug.