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 1657265 - [RHEL 8.2] tmpfiles snippet needs updated path
Summary: [RHEL 8.2] tmpfiles snippet needs updated path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: mdadm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: XiaoNi
QA Contact: Fine Fan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-07 14:38 UTC by Rik Theys
Modified: 2024-03-25 15:11 UTC (History)
13 users (show)

Fixed In Version: mdadm-4.1-12.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 17:00:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4154291 0 None None None 2021-09-10 23:35:53 UTC
Red Hat Product Errata RHBA-2020:1890 0 None None None 2020-04-28 17:01:11 UTC

Internal Links: 1893472

Description Rik Theys 2018-12-07 14:38:10 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/mdadm.conf:1] Line references path below legacy directory /var/run/, updating /var/run/mdadm → /run/mdadm; 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):
mdadm-4.1-rc1_2.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 Nigel Croxon 2018-12-11 15:01:31 UTC
This is not a specific mdadm problem, but a packaging problem.

Comment 2 ChanghuiZhong 2018-12-13 06:12:20 UTC
Hi,Nigel Croxon

The same problem occurs on the RHEL 8 beta OS. When using the RPM package to install mdadm, the same message appears.

[root@storageqe-09 ~]# rpm -ivh mdadm-4.1-rc1_3.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:mdadm-4.1-rc1_3.el8              ################################# [100%]
[/usr/lib/tmpfiles.d/mdadm.conf:1] Line references path below legacy directory /var/run/, updating /var/run/mdadm → /run/mdadm; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/pesign.conf:1] Line references path below legacy directory /var/run/, updating /var/run/pesign → /run/pesign; please update the tmpfiles.d/ drop-in file accordingly.
[/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.
[root@storageqe-09 ~]# 

I want to know how this problem will be dealt with next.

Comment 3 Nigel Croxon 2019-01-15 12:53:41 UTC
Hello Changhui,

Does this problem still exist with later versions of RHEL8 snapshots?

Comment 4 ChanghuiZhong 2019-01-16 03:22:28 UTC
Hi,Nigel Croxon

This problem still exists in the latest RHEL-8.0-Snapshot-3.1 :(RHEL-8.0-20181220.1-x86_64-dvd1.iso)

[root@intel-mahobay-01 ~]# 
[root@intel-mahobay-01 ~]# uname -a
Linux intel-mahobay-01.lab.eng.rdu.redhat.com 4.18.0-56.el8.x86_64 #1 SMP Mon Dec 17 13:56:22 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@intel-mahobay-01 ~]# 
[root@intel-mahobay-01 ~]# rpm -q mdadm
package mdadm is not installed
[root@intel-mahobay-01 ~]# 
[root@intel-mahobay-01 ~]# rpm -ivh mdadm-4.1-3.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:mdadm-4.1-3.el8                  ################################# [100%]
[/usr/lib/tmpfiles.d/mdadm.conf:1] Line references path below legacy directory /var/run/, updating /var/run/mdadm → /run/mdadm; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/pesign.conf:1] Line references path below legacy directory /var/run/, updating /var/run/pesign → /run/pesign; please update the tmpfiles.d/ drop-in file accordingly.
[/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.
[root@intel-mahobay-01 ~]# rpm -q mdadm
mdadm-4.1-3.el8.x86_64
[root@intel-mahobay-01 ~]# 

thanks,
Changhui Zhong

Comment 6 Christian Horn 2019-02-08 07:56:53 UTC
I see this on a nightly build.
Probable duplicate: bz1657269

Comment 7 XiaoNi 2019-02-14 08:00:25 UTC
Hi all

This patch can fix this problem

diff --git a/mdadm.conf b/mdadm.conf
index 6200117..3207dda 100644
--- a/mdadm.conf
+++ b/mdadm.conf
@@ -1 +1 @@
-d /var/run/mdadm 0710 root root -
+d /run/mdadm 0710 root root -


[root@storageqe-29 ~]# rpm -ivh mdadm-4.1-5.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:mdadm-4.1-5.el8                  ################################# [100%]
[/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 don't know the root cause. Because I'm not familiar with the detail of rpm. Why does it complain about this. 
But it's too late to fix this problem. It's not a serious problem. It just gives a warning message. The rpm
package can be installed successfully. 

So it's better to fix this in rhel8.1

Thanks
Xiao

Comment 9 ChanghuiZhong 2019-06-12 08:39:48 UTC
Hello

This problem still exists in mdadm-4.1-6.el8:

[root@hp-z8-g4-01 ~]# rpm -ivh mdadm-4.1-6.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:mdadm-4.1-6.el8                  ################################# [100%]
[/usr/lib/tmpfiles.d/mdadm.conf:1] Line references path below legacy directory /var/run/, updating /var/run/mdadm → /run/mdadm; please update the tmpfiles.d/ drop-in file accordingly.
[/usr/lib/tmpfiles.d/pesign.conf:1] Line references path below legacy directory /var/run/, updating /var/run/pesign → /run/pesign; please update the tmpfiles.d/ drop-in file accordingly.
[/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.
[root@hp-z8-g4-01 ~]#

Comment 10 Pino Toscano 2019-07-23 12:50:53 UTC
(In reply to XiaoNi from comment #7)
> Hi all
> 
> This patch can fix this problem
> 
> diff --git a/mdadm.conf b/mdadm.conf
> index 6200117..3207dda 100644
> --- a/mdadm.conf
> +++ b/mdadm.conf
> @@ -1 +1 @@
> -d /var/run/mdadm 0710 root root -
> +d /run/mdadm 0710 root root -

This seems correct to me, although I'm not a systemd expert.

> [root@storageqe-29 ~]# rpm -ivh mdadm-4.1-5.el8.x86_64.rpm 
> Verifying...                          #################################
> [100%]
> Preparing...                          #################################
> [100%]
> Updating / installing...
>    1:mdadm-4.1-5.el8                  #################################
> [100%]
> [/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 don't know the root cause. Because I'm not familiar with the detail of
> rpm. Why does it complain about this. 
> But it's too late to fix this problem. It's not a serious problem. It just
> gives a warning message. The rpm
> package can be installed successfully. 

This is not an RPM issue, but a systemd message: the mdadm RPM contains .service files for systemd, so when it is updated, systemd is invoked to reload its units.
/var/run is considered a legacy path, and /run is the "canonical" location, so systemd prints that message.

Also, the message quoted above is not from mdadm, but from subscription-manager (see the [/usr/lib/tmpfiles.d/subscription-manager.conf:1] prefix in the message text).

Comment 14 Fine Fan 2020-03-06 08:55:55 UTC
Hi All,

RHEL-8.2.0-20191219.0
[root@localhost ~]# rpm -q subscription-manager
subscription-manager-1.25.17-1.el8.x86_64

[root@localhost ~]# rpm -q mdadm
package mdadm is not installed

[root@localhost ~]# rpm -ivh mdadm-4.1-12.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:mdadm-4.1-12.el8                 ################################# [100%]
[/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.

[root@localhost ~]# rpm -q mdadm
mdadm-4.1-12.el8.x86_64

BR
Fine

Comment 19 errata-xmlrpc 2020-04-28 17:00:47 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, 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:1890


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