Bug 1657269

Summary: tmpfiles snippet needs updated path
Product: Red Hat Enterprise Linux 8 Reporter: Rik Theys <rik.theys>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0CC: arpandey, candlepin-bugs, chaithco, chorn, dbodnarc, fadamo, fgozalo0, jhnidek, jpazdziora, jsefler, khowell, mezhang, mkielian, ofalk, peter.vreman, psklenar, redakkan, rjerrido, wpoteat, zguo
Target Milestone: rcKeywords: 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
Description of problem:
When booting a RHEL 8 beta, the following message is displayed in the system log:

systemd-tmpfiles[635]: [/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.


The snippet needs to be updated with the new default path.

Version-Release number of selected component (if applicable):
subscription-manager-1.23.8-1.el8.x86_64


How reproducible:
always

Steps to Reproduce:
1. Boot system with package installed
2.
3.

Actual results:
Message about legacy path in use

Expected results:
No messages

Additional info:

Comment 1 Christian Horn 2019-02-08 07:22:17 UTC
Duplicate of bz1657265 ?

Comment 2 Oliver Falk 2019-03-29 13:38:53 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

Comment 8 yuk 2020-04-29 09:55:07 UTC
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 ?

Comment 9 Oliver Falk 2020-04-29 10:07:58 UTC
Yes, this should do the trick - analogous to the other files in /usr/lib/tmpfiles.d (with /run/).

Comment 10 Oliver Falk 2020-05-08 14:29:02 UTC
*** Bug 1716366 has been marked as a duplicate of this bug. ***

Comment 11 Petr Sklenar 2020-05-11 07:03:16 UTC
*** Bug 1805942 has been marked as a duplicate of this bug. ***

Comment 12 Petr Sklenar 2020-05-11 07:04:34 UTC
closing BZ#1805942 as duplicate of this one.
Problem still present in RHEL 8.3

Comment 13 Rehana 2020-05-12 09:03:30 UTC
*** Bug 1833084 has been marked as a duplicate of this bug. ***

Comment 14 Rehana 2020-05-18 07:50:45 UTC
*** Bug 1836742 has been marked as a duplicate of this bug. ***

Comment 23 Archana Pandey 2020-07-22 08:02:22 UTC
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

Comment 26 errata-xmlrpc 2020-11-04 01:38:37 UTC
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