Bug 1390304

Summary: Configuration file /usr/lib/systemd/system/srpd.service is marked executable
Product: Red Hat Enterprise Linux 7 Reporter: Radek Bíba <rbiba>
Component: srptoolsAssignee: Honggang LI <honli>
Status: CLOSED ERRATA QA Contact: zguo <zguo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: honli, jarod, jshortt, rdma-dev-team, yizhan, zguo
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rdma-core-12-2.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 16:55:15 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:
Bug Depends On:    
Bug Blocks: 1353018    

Description Radek Bíba 2016-10-31 16:16:43 UTC
Description of problem:
This appears in /var/log/messages and on the system console:

systemd-sysv-generator[7828]: Configuration file /usr/lib/systemd/system/srpd.service is marked executable. Please remove executable permission bits. Proceeding anyway.

Version-Release number of selected component (if applicable):
srptools-1.0.2-1.el7.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Just boot a system with srpmtools installed, I guess.
2. Look at /var/log/messages. Or here:

# ll /usr/lib/systemd/system/srpd.service
-rwxr-xr-x. 1 root root 450 Jul 17  2015 /usr/lib/systemd/system/srpd.service

Actual results:
The srpd service file has the 'x' permission bits. This fact makes systemd unhappy.

Expected results:
The srpd service file doesn't have the 'x' permission bits. Systemd is happy.

Comment 1 Honggang LI 2017-03-02 00:55:05 UTC
The srptools package had been merged into rdma-core package. This issue had been addressed in rdma-core-12-2.el7.

Comment 3 zguo 2017-03-07 06:20:33 UTC
Found nothing related srp in rdma-core, then try to install srptools, it says "Package srptools-1.0.3-1.el7.x86_64 is obsoleted by srp_daemon-12-2.el7.x86_64 which is already installed".

[root@rdma-qe-06 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 Beta (Maipo)
[root@rdma-qe-06 ~]$ rpm -q rdma-core
rdma-core-12-2.el7.x86_64
[root@rdma-qe-06 ~]$ rpm -ql rdma-core
/etc/modprobe.d/mlx4.conf
/etc/modprobe.d/truescale.conf
/etc/rdma
/etc/rdma/ibacm_opts.cfg
/etc/rdma/mlx4.conf
/etc/rdma/rdma.conf
/etc/rdma/sriov-vfs
/etc/sysconfig/network-scripts/ifdown-ib
/etc/sysconfig/network-scripts/ifup-ib
/etc/udev/rules.d/70-persistent-ipoib.rules
/usr/lib/dracut/modules.d/05rdma
/usr/lib/dracut/modules.d/05rdma/module-setup.sh
/usr/lib/modprobe.d/cxgb3.conf
/usr/lib/modprobe.d/cxgb4.conf
/usr/lib/modprobe.d/libmlx4.conf
/usr/lib/systemd/system/rdma-ndd.service
/usr/lib/systemd/system/rdma.service
/usr/lib/udev/rules.d/98-rdma.rules
/usr/lib/udev/rules.d/rdma-ndd.rules
/usr/libexec/mlx4-setup.sh
/usr/libexec/rdma-fixup-mtrr.awk
/usr/libexec/rdma-init-kernel
/usr/libexec/rdma-set-sriov-vf
/usr/libexec/truescale-serdes.cmds
/usr/sbin/rdma-ndd
/usr/share/doc/rdma-core-12
/usr/share/doc/rdma-core-12/README.md
/usr/share/licenses/rdma-core-12
/usr/share/licenses/rdma-core-12/COPYING.BSD_FB
/usr/share/licenses/rdma-core-12/COPYING.BSD_MIT
/usr/share/licenses/rdma-core-12/COPYING.GPL2
/usr/share/licenses/rdma-core-12/COPYING.md
/usr/share/man/man8/rdma-ndd.8.gz

[2]
[root@rdma-qe-06 ~]$ yum install srptools                                                            
Package srptools-1.0.3-1.el7.x86_64 is obsoleted by srp_daemon-12-2.el7.x86_64 which is already installed
Nothing to do
[root@rdma-qe-06 ~]$ rpm -q srp_daemon
srp_daemon-12-2.el7.x86_64
[root@rdma-qe-06 ~]$ rpm -ql srp_daemon
/etc/srp_daemon.conf
/usr/lib/systemd/system/srp_daemon.service
/usr/sbin/ibsrpdm
/usr/sbin/run_srp_daemon
/usr/sbin/srp_daemon
/usr/sbin/srp_daemon.sh
/usr/share/doc/rdma-core-12/ibsrpdm.md
/usr/share/man/man1/ibsrpdm.1.gz
/usr/share/man/man1/srp_daemon.1.gz

[3]
[root@rdma-qe-06 ~]$ ll /usr/lib/systemd/system/srp_daemon.service
-rw-r--r--. 1 root root 448 Feb  9 12:43 /usr/lib/systemd/system/srp_daemon.service

Comment 4 Honggang LI 2017-03-07 08:42:43 UTC
(In reply to zguo from comment #3)
> Found nothing related srp in rdma-core, then try to install srptools, it
> says "Package srptools-1.0.3-1.el7.x86_64 is obsoleted by
> srp_daemon-12-2.el7.x86_64 which is already installed".

Yes, srptools had been renamed as srp_daemon in rdma-core package.

> [root@rdma-qe-06 ~]$ cat /etc/redhat-release 
> Red Hat Enterprise Linux Server release 7.4 Beta (Maipo)
> [root@rdma-qe-06 ~]$ rpm -q rdma-core
> rdma-core-12-2.el7.x86_64

> 
> [2]
> [root@rdma-qe-06 ~]$ yum install srptools                                   
> 
> Package srptools-1.0.3-1.el7.x86_64 is obsoleted by
> srp_daemon-12-2.el7.x86_64 which is already installed
> Nothing to do
> [root@rdma-qe-06 ~]$ rpm -q srp_daemon
> srp_daemon-12-2.el7.x86_64

> [root@rdma-qe-06 ~]$ ll /usr/lib/systemd/system/srp_daemon.service
> -rw-r--r--. 1 root root 448 Feb  9 12:43
> /usr/lib/systemd/system/srp_daemon.service

As you see, this file is not executable, so issue had been fixed.

Comment 5 zguo 2017-03-08 01:08:03 UTC
(In reply to Honggang LI from comment #4)
> (In reply to zguo from comment #3)
> > Found nothing related srp in rdma-core, then try to install srptools, it
> > says "Package srptools-1.0.3-1.el7.x86_64 is obsoleted by
> > srp_daemon-12-2.el7.x86_64 which is already installed".
> 
> Yes, srptools had been renamed as srp_daemon in rdma-core package.
> 
> > [root@rdma-qe-06 ~]$ cat /etc/redhat-release 
> > Red Hat Enterprise Linux Server release 7.4 Beta (Maipo)
> > [root@rdma-qe-06 ~]$ rpm -q rdma-core
> > rdma-core-12-2.el7.x86_64
> 
> > 
> > [2]
> > [root@rdma-qe-06 ~]$ yum install srptools                                   
> > 
> > Package srptools-1.0.3-1.el7.x86_64 is obsoleted by
> > srp_daemon-12-2.el7.x86_64 which is already installed
> > Nothing to do
> > [root@rdma-qe-06 ~]$ rpm -q srp_daemon
> > srp_daemon-12-2.el7.x86_64
> 
> > [root@rdma-qe-06 ~]$ ll /usr/lib/systemd/system/srp_daemon.service
> > -rw-r--r--. 1 root root 448 Feb  9 12:43
> > /usr/lib/systemd/system/srp_daemon.service
> 
> As you see, this file is not executable, so issue had been fixed.

Moving to verified.

Comment 6 errata-xmlrpc 2017-08-01 16:55:15 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/RHEA-2017:2011