Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1974108

Summary: libstoragemgmt.service uses obsolet syslog as standard output type
Product: Red Hat Enterprise Linux 9 Reporter: Frank Liang <xiliang>
Component: libstoragemgmtAssignee: Tony Asleson <tasleson>
Status: CLOSED CURRENTRELEASE QA Contact: ChanghuiZhong <czhong>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: czhong, demeng, leiwang, linl, ribarry, vkuznets, ymao
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libstoragemgmt-1.9.2-4.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:24:13 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:

Description Frank Liang 2021-06-20 15:11:29 UTC
Description of problem:
In RHEL-9, libstoragemgmt.service uses obsolete  syslog as standard output type.
This warning always happens if you verify other services. Please set it to "StandardError=journal+console" or other.

# systemd-analyze verify default.target
/usr/lib/systemd/system/libstoragemgmt.service:7: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
# cat /usr/lib/systemd/system/libstoragemgmt.service
[Unit]
Description=libstoragemgmt plug-in server daemon

[Service]
ExecStart=/usr/bin/lsmd -d
ExecReload=/bin/kill -HUP $MAINPID
StandardError=syslog
User=root

[Install]
WantedBy=multi-user.target

# rpm -q libstoragemgmt
libstoragemgmt-1.9.2-1.el9.x86_64

Version-Release number of selected components (if applicable):

RHEL Version:
RHEL-9.0(5.13.0-0.rc4.33.el9.x86_64)

How reproducible:
100%

Steps to Reproduce:
1. start a RHEL-9 with libstoragemgmt installed
2. run 'systemd-analyze verify default.target' after boot up

Actual results:
other services also report libstoragemgmt.service using obsolete syslog

Expected results:
Remove StandardError setting or change it to other supported option

Additional info:
N/A

Comment 1 Tony Asleson 2021-08-11 17:57:17 UTC
*** Bug 1986727 has been marked as a duplicate of this bug. ***

Comment 4 ChanghuiZhong 2021-08-17 02:53:17 UTC
on libstoragemgmt-1.9.2-4.el9,"StandardError=syslog" has been removed in server daemon,confirmed no longer get:
"/usr/lib/systemd/system/libstoragemgmt.service:7: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether."



[root@dell-r430-5 ~]# systemd-analyze verify default.target
/usr/lib/systemd/system/restraintd.service:8: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
/usr/lib/systemd/system/libstoragemgmt.service:7: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[root@dell-r430-5 ~]# 
[root@dell-r430-5 ~]# 
[root@dell-r430-5 ~]# cat /usr/lib/systemd/system/libstoragemgmt.service
[Unit]
Description=libstoragemgmt plug-in server daemon

[Service]
ExecStart=/usr/bin/lsmd -d
ExecReload=/bin/kill -HUP $MAINPID
StandardError=syslog
User=root

[Install]
WantedBy=multi-user.target
[root@dell-r430-5 ~]# 
[root@dell-r430-5 ~]# rpm -qa | grep libstoragemgmt
python3-libstoragemgmt-1.9.2-1.el9.x86_64
libstoragemgmt-1.9.2-1.el9.x86_64
[root@dell-r430-5 ~]# 



[root@dell-r430-5 ~]# systemd-analyze verify default.target
/usr/lib/systemd/system/restraintd.service:8: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[root@dell-r430-5 ~]# 
[root@dell-r430-5 ~]# cat /usr/lib/systemd/system/libstoragemgmt.service
[Unit]
Description=libstoragemgmt plug-in server daemon

[Service]
ExecStart=/usr/bin/lsmd -d
ExecReload=/bin/kill -HUP $MAINPID
User=root

[Install]
WantedBy=multi-user.target
[root@dell-r430-5 ~]# 
[root@dell-r430-5 ~]# rpm -qa | grep libstoragemgmt
python3-libstoragemgmt-1.9.2-4.el9.x86_64
libstoragemgmt-1.9.2-4.el9.x86_64
[root@dell-r430-5 ~]# 


Setting to verified:tested

Comment 7 ChanghuiZhong 2021-08-18 03:24:39 UTC
# systemd-analyze verify default.target
/usr/lib/systemd/system/restraintd.service:8: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.

# cat /usr/lib/systemd/system/libstoragemgmt.service
[Unit]
Description=libstoragemgmt plug-in server daemon

[Service]
ExecStart=/usr/bin/lsmd -d
ExecReload=/bin/kill -HUP $MAINPID
User=root

[Install]
WantedBy=multi-user.target


# rpm -qa | grep libstoragemgmt
python3-libstoragemgmt-1.9.2-4.el9.x86_64
libstoragemgmt-1.9.2-4.el9.x86_64


move to verified