Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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.
Description of problem:
Current restore procedure lacks the steps of SELinux labeling to rsynced directories and files.
It causes inconsistency between original node and recovered node.
This inconsistency may cause the issue by SELinux in the future change in undercloud.
c.f. https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html-single/back_up_and_restore_the_director_undercloud/#restore_the_undercloud
As far as I checked, following directories are mapped to usr_tmp_t label.
/var/lib/glance
/var/lib/docker
/var/lib/registry
/var/lib/registry/docker
These directories should be
/var/lib/glance: glance_var_lib_t
/var/lib/docker: container_var_lib_t
/var/lib/registry: var_lib_t
/var/lib/registry/docker: container_var_lib_t
Most of them will be restored with restorecon command but restorecon to /var/lib/registry/docker might not work because predefined selinux policy doesn't exist for /var/lib/registry.
It looks that openstack-selinux policy doesn't have proper context in it
Additional info:
The /var/lib/registry directory is covered by the following file context rule:
/var/lib(/.*)? all files system_u:object_r:var_lib_t:s0
To my knowledge the /var/lib/registry/docker directory does not require container_var_lib_t. The docker-distribution package, which provides /var/lib/registry, does not require container-selinux, and works correctly without it.
Are you having an issue with docker-distribution and files marked var_lib_t?
Hello Derrick,
The context, var_lib_t doesn't have any issue currently.
However, usually user expects that a recovery procedure makes the system recovered as same as when backup is taken.
And current var_lib_t context to /var/lib/registry/docker may not have trouble now but it is not guaranteed in the future.
So, a customer thinks we should add the proper context to /var/lib/registry/docker into container-selinux.
In my opinion, they have a good point. How do you think about it?
Hello Derrick,
Could you share your thoughts regarding my comment in c#3?
If the issue should be covered by documentation, please let me know.
Best Regards,
Keigo Noha
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-2019:0861