Bug 1657269
Summary: | tmpfiles snippet needs updated path | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Rik Theys <rik.theys> |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | arpandey, candlepin-bugs, chaithco, chorn, dbodnarc, fadamo, fgozalo0, jhnidek, jpazdziora, jsefler, khowell, mezhang, mkielian, ofalk, peter.vreman, psklenar, redakkan, rjerrido, wpoteat, zguo |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.3 | ||
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: | 2020-11-04 01:38: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: | 1122832, 1805942, 1825061 |
Description
Rik Theys
2018-12-07 14:41:33 UTC
Hi! I'm seeing the same here on a fresh installed and updated RHEL8 box. [/usr/lib/tmpfiles.d/subscription-manager.conf:1] Line references path below legacy directory /var/run/, updating /var/run/rhsm → /run/rhsm; please update the tmpfiles.d/ drop-in file accordingly. I ran rpm, but in the end it doesn't matter; subscription-manager needs a fix. I believe, exactly here: https://github.com/candlepin/subscription-manager/blob/ef981cb356325b8c6588019e093f56edbe11876f/etc-conf/subscription-manager.conf.tmpfiles Oliver Problem still present in RHEL 8.2. For what I understand, the fix consists to change # cat /usr/lib/tmpfiles.d/subscription-manager.conf d /var/run/rhsm 0755 root root - in # cat /usr/lib/tmpfiles.d/subscription-manager.conf d /run/rhsm 0755 root root - Am I correct ? Yes, this should do the trick - analogous to the other files in /usr/lib/tmpfiles.d (with /run/). *** Bug 1716366 has been marked as a duplicate of this bug. *** *** Bug 1805942 has been marked as a duplicate of this bug. *** closing BZ#1805942 as duplicate of this one. Problem still present in RHEL 8.3 *** Bug 1833084 has been marked as a duplicate of this bug. *** *** Bug 1836742 has been marked as a duplicate of this bug. *** Reprodued issue in sub-man version: subscription-manager-1.27.9-1.el8.x86_64 Version-Release number of selected component (if applicable): [root@localhost ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.1.16-1 subscription management rules: 5.40 subscription-manager: 1.27.9-1.el8 [root@localhost /]# reboot [root@localhost ~]# cat /var/log/messages | grep "legacy directory" Jul 22 13:18:06 localhost systemd-tmpfiles[2807]: [/usr/lib/tmpfiles.d/subscription-manager.conf:1] Line references path below legacy directory /var/run/, updating /var/run/rhsm → /run/rhsm; please update the tmpfiles.d/ drop-in file accordingly. Note: such logs can also be seen on fresh installation of subscription-manager package without reboot ===================================================================================================== Verifying issue in subscription-manager-1.27.10-1.el8.x86_64 Version-Release number of selected component (if applicable): [root@localhost ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.1.16-1 subscription management rules: 5.40 subscription-manager: 1.27.10-1.el8 [root@localhost /]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 Beta (Ootpa) Steps to verify: [root@localhost ~]# rpm -qa subscription-manager --changelog | grep 1657269 - 1657269: Do not use /var/run, but use /run; ENT-1086 (jhnidek) [root@localhost /]# > /var/log/messages [root@localhost /]# service rsyslog restart Redirecting to /bin/systemctl restart rsyslog.service [root@localhost /]# reboot [root@localhost /]# cat /var/log/messages | grep "legacy directory" [root@localhost /]# Actual results: No logs about references to legacy directory seen in system logs Expected results: No logs about references to legacy directory should be seen in system logs 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 (subscription-manager bug fix and enhancement update), 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-2020:4460 |