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 1769823 - [RHEL 8.2] mdcheck_start.service can't start successfully
Summary: [RHEL 8.2] mdcheck_start.service can't start successfully
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: mdadm
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: XiaoNi
QA Contact: Fine Fan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-07 14:53 UTC by Pino Toscano
Modified: 2020-04-28 17:01 UTC (History)
7 users (show)

Fixed In Version: mdadm-4.1-11.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)
Fixed service files (682 bytes, application/gzip)
2019-11-07 14:53 UTC, Pino Toscano
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1890 0 None None None 2020-04-28 17:01:11 UTC

Description Pino Toscano 2019-11-07 14:53:23 UTC
Created attachment 1633684 [details]
Fixed service files

Description of problem:
mdadm 4.1-9 adds few new service files:
- /lib/systemd/system/mdcheck_continue.service
- /lib/systemd/system/mdcheck_start.service
- /lib/systemd/system/mdmonitor-oneshot.service
I noticed that augeas [1] cannot parse these files, with parse errors in the Environment= keys.
In particular, there are double quoting, and even more covering just the values and not the whole Environment= string (at least, according to my reading systemd.service(5) man page).
Furthermore, the two mdcheck_*.service files refer to /usr/share/mdadm/mdcheck in ExecStart=, and that executable does not even exist.

[1] a library to parse & edit configuration files

Version-Release number of selected component (if applicable):
mdadm 4.1-9

How reproducible:


Steps to Reproduce:
1. install mdadm and augeas
2. run `augtool print /augeas//error | grep lib/systemd/system`

Actual results:
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/pos = "341"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/line = "12"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/char = "0"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/message = "Get did not match entire input"
/augeas/files/lib/systemd/system/mdcheck_start.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/pos = "370"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/line = "14"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/char = "0"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/message = "Get did not match entire input"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/pos = "409"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/line = "14"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/char = "0"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/message = "Get did not match entire input"

Expected results:
No output

Additional info:
I tried to fix the .service files according to the documentation, although I did not have the possibility to test them; I will attach them.

Comment 33 Fine Fan 2020-02-20 08:55:53 UTC
Hi All,

I've talked with xni, and did the test on mdadm-4.1-11.el8.
on mdadm-4.1-11.el8 the mdcheck_start.service could start normally,but still got some output from "augtool print /augeas//error | grep lib/systemd/system".

#####################
#####mdadm-4.1-10.el8
#####################

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

[root@localhost ~]# systemctl start mdcheck_start.service
Job for mdcheck_start.service failed because the control process exited with error code.
See "systemctl status mdcheck_start.service" and "journalctl -xe" for details.
[root@localhost ~]# 

---------------------
[root@localhost ~]# augtool print /augeas//error | grep lib/systemd/system
/augeas/files/lib/systemd/system/mdcheck_continue.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/pos = "409"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/line = "14"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/char = "0"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/message = "Get did not match entire input"
/augeas/files/lib/systemd/system/mdcheck_start.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/pos = "370"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/line = "14"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/char = "0"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/message = "Get did not match entire input"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/pos = "341"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/line = "12"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/char = "0"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/message = "Get did not match entire input"
[root@localhost ~]# 



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

During one terminal excuted "system start mdcheck_strt.service"
I got below output from another terminal:

[root@localhost ~]# systemctl status mdcheck_start.service
● mdcheck_start.service - MD array scrubbing
   Loaded: loaded (/usr/lib/systemd/system/mdcheck_start.service; static; vendor preset: disabled)
   Active: activating (start) since Thu 2020-02-20 10:13:20 EST; 3s ago
  Process: 14813 ExecStartPre=/usr/lib/mdadm/mdadm_env.sh (code=exited, status=0/SUCCESS)
 Main PID: 14815 (mdcheck)
    Tasks: 2
   Memory: 960.0K
   CGroup: /system.slice/mdcheck_start.service
           ├─14815 /bin/bash /usr/share/mdadm/mdcheck --duration 6 hours
           └─14833 sleep 120

Feb 20 10:13:20 localhost.localdomain systemd[1]: Starting MD array scrubbing...

-------------------
But augtool still got some output:

[root@localhost ~]# augtool print /augeas//error | grep lib/systemd/system
/augeas/files/lib/systemd/system/mdcheck_continue.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/pos = "409"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/line = "14"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/char = "0"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdcheck_continue.service/error/message = "Get did not match entire input"
/augeas/files/lib/systemd/system/mdcheck_start.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/pos = "370"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/line = "14"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/char = "0"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdcheck_start.service/error/message = "Get did not match entire input"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error = "parse_failed"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/pos = "341"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/line = "12"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/char = "0"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/lens = "/usr/share/augeas/lenses/dist/inifile.aug:497.25-.43:"
/augeas/files/lib/systemd/system/mdmonitor-oneshot.service/error/message = "Get did not match entire input"
[root@localhost ~]# 


xni has made mdadm-4.1-13.el8, which I've tested too, it works well with both "mdcheck_start.service" and "augtool" problem, but we still need to wait for the upstream's accept.
so I changed the status into VERIFIED.


#####################
#####mdadm-4.1-13.el8
#####################


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


During one terminal excuted "system start mdcheck_strt.service"
I got below output from another terminal:

[root@el8 ~]# systemctl status mdcheck_start.service
● mdcheck_start.service - MD array scrubbing
   Loaded: loaded (/usr/lib/systemd/system/mdcheck_start.service; static; vendor preset: disabled)
   Active: activating (start) since Thu 2020-02-20 11:29:50 EST; 5s ago
  Process: 8729 ExecStartPre=/usr/lib/mdadm/mdadm_env.sh (code=exited, status=0/SUCCESS)
 Main PID: 8731 (mdcheck)
    Tasks: 2
   Memory: 960.0K
   CGroup: /system.slice/mdcheck_start.service
           ├─8731 /bin/bash /usr/share/mdadm/mdcheck --duration 6 hours
           └─8749 sleep 120

Feb 20 11:29:50 el8.localdomain systemd[1]: Starting MD array scrubbing...
[root@el8 ~]# 

---------------------
[root@el8 ~]# augtool print /augeas//error | grep lib/systemd/system
[root@el8 ~]# 

BR
Fine

Comment 35 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.