Bug 1595019

Summary: systemctl status srp_daemon.service -l shows errors like "Unknown lvalue in section 'Service'"
Product: Red Hat Enterprise Linux 7 Reporter: zguo <zguo>
Component: rdma-coreAssignee: Jarod Wilson <jarod>
Status: CLOSED ERRATA QA Contact: zguo <zguo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.6CC: bhu, honli, infiniband-qe, jarod, rdma-dev-team
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rdma-core-17.2-3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 11:17:35 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: 1532680    

Description zguo 2018-06-26 01:44:42 UTC
Description of problem:


Version-Release number of selected component (if applicable):
$ rpm -q kernel rdma-core
kernel-3.10.0-907.el7.x86_64
rdma-core-17.2-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
$ systemctl status srp_daemon.service -l
● srp_daemon.service - Daemon that discovers and logs in to SRP target systems
   Loaded: loaded (/usr/lib/systemd/system/srp_daemon.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:srp_daemon
           file:/etc/srp_daemon.conf

Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: Stopped Daemon that discovers and logs in to SRP target systems.
Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:12] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:15] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:16] Unknown lvalue 'RestrictRealtime' in section 'Service'
Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:12] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:15] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Jun 25 21:36:19 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:16] Unknown lvalue 'RestrictRealtime' in section 'Service'
Jun 25 21:36:25 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:12] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
Jun 25 21:36:25 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:15] Unknown lvalue 'ProtectKernelModules' in section 'Service'
Jun 25 21:36:25 rdma-qe-14.lab.bos.redhat.com systemd[1]: [/usr/lib/systemd/system/srp_daemon.service:16] Unknown lvalue 'RestrictRealtime' in section 'Service'

$ systemctl start srp_daemon.service -l

$ systemctl status srp_daemon.service -l
● srp_daemon.service - Daemon that discovers and logs in to SRP target systems
   Loaded: loaded (/usr/lib/systemd/system/srp_daemon.service; disabled; vendor preset: disabled)
   Active: active (exited) since Mon 2018-06-25 21:41:21 EDT; 8s ago
     Docs: man:srp_daemon
           file:/etc/srp_daemon.conf
  Process: 51020 ExecStart=/usr/libexec/srp_daemon/start_on_all_ports (code=exited, status=0/SUCCESS)
 Main PID: 51020 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/srp_daemon.service

Jun 25 21:41:21 rdma-qe-14.lab.bos.redhat.com systemd[1]: Starting Daemon that discovers and logs in to SRP target systems...
Jun 25 21:41:21 rdma-qe-14.lab.bos.redhat.com systemd[1]: Started Daemon that discovers and logs in to SRP target systems.


Actual results:
Show 'Unknown lvalue' messages. srp_daemon.service can be started successfully.

Expected results:
No 'Unknown lvalue' messages.

Additional info:
It's a regression. No this issue on RHEL-7.5.
$ rpm -q rdma-core kernel
rdma-core-15-6.el7.x86_64
kernel-3.10.0-862.el7.x86_64

Comment 2 Honggang LI 2018-06-26 03:43:11 UTC
Jarod

Two rhel-7 specific patches had been removed when rebase rdma-core-v17. Can you please add these patches back?

0001-srp_daemon-Remove-unsupported-systemd-configurations.patch
0001-srp_daemon-srp_daemon.service-should-be-started-afte.patch

They are redhat-7 specific because rhel-7.5/7.6 has systemd-219, which is much older than systemd used in fedora.

DISTRO=RHEL-7.6-20180621.n.0
[root@rdma-dev-07 ~]$ rpm -qa | grep systemd
systemd-python-219-58.el7.x86_64
systemd-sysv-219-58.el7.x86_64
systemd-219-58.el7.x86_64
systemd-libs-219-58.el7.x86_64

Comment 3 Jarod Wilson 2018-06-26 14:10:59 UTC
(In reply to Honggang LI from comment #2)
> Jarod
> 
> Two rhel-7 specific patches had been removed when rebase rdma-core-v17. Can
> you please add these patches back?
> 
> 0001-srp_daemon-Remove-unsupported-systemd-configurations.patch
> 0001-srp_daemon-srp_daemon.service-should-be-started-afte.patch
> 
> They are redhat-7 specific because rhel-7.5/7.6 has systemd-219, which is
> much older than systemd used in fedora.

Yeah, my mistake, didn't realize those ones were RHEL-only, should have looked closer at their contents. I'm restoring them now, just need bz acks to move forward.

Comment 6 zguo 2018-06-27 08:01:23 UTC
$ rpm -q rdma-core srp_daemon
rdma-core-17.2-3.el7.x86_64
srp_daemon-17.2-3.el7.x86_64
[root@rdma-qe-14 ~]$ systemctl status srp_daemon.service -l
● srp_daemon.service - Daemon that discovers and logs in to SRP target systems
   Loaded: loaded (/usr/lib/systemd/system/srp_daemon.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:srp_daemon
           file:/etc/srp_daemon.conf
[root@rdma-qe-14 ~]$ systemctl start srp_daemon.service -l
[root@rdma-qe-14 ~]$ systemctl status srp_daemon.service -l
● srp_daemon.service - Daemon that discovers and logs in to SRP target systems
   Loaded: loaded (/usr/lib/systemd/system/srp_daemon.service; disabled; vendor preset: disabled)
   Active: active (exited) since Wed 2018-06-27 04:00:38 EDT; 2s ago
     Docs: man:srp_daemon
           file:/etc/srp_daemon.conf
  Process: 1939 ExecStart=/usr/libexec/srp_daemon/start_on_all_ports (code=exited, status=0/SUCCESS)
 Main PID: 1939 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/srp_daemon.service

Jun 27 04:00:38 rdma-qe-14.lab.bos.redhat.com systemd[1]: Starting Daemon that discovers and logs in to SRP target systems...
Jun 27 04:00:38 rdma-qe-14.lab.bos.redhat.com systemd[1]: Started Daemon that discovers and logs in to SRP target systems.

Comment 8 errata-xmlrpc 2018-10-30 11:17:35 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-2018:3208