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.
Bug 1657269 - tmpfiles snippet needs updated path
Summary: tmpfiles snippet needs updated path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: 8.3
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
: 1716366 1805942 1833084 1836742 (view as bug list)
Depends On:
Blocks: 1122832 1805942 1825061
TreeView+ depends on / blocked
 
Reported: 2018-12-07 14:41 UTC by Rik Theys
Modified: 2024-03-25 15:11 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:38:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2285 0 None closed 1657269: Do not use /var/run, but use /run; ENT-1086 2021-01-18 13:51:18 UTC
Red Hat Knowledge Base (Solution) 4154291 0 None None None 2021-09-10 23:36:41 UTC
Red Hat Product Errata RHBA-2020:4460 0 None None None 2020-11-04 01:38:57 UTC

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


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