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 1559789

Summary: Need to restart lsmd daemon after libstoragemgmt-local-plugin newly installed.
Product: Red Hat Enterprise Linux 7 Reporter: Gris Ge <fge>
Component: libstoragemgmtAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Jakub Krysl <jkrysl>
Severity: low Docs Contact:
Priority: low    
Version: 7.5CC: jkrysl
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libstoragemgmt-1.6.2-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:10:39 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 Gris Ge 2018-03-23 09:35:50 UTC
Description of problem:

The rpm spec are missing post and postun script for libstoragemgmt-local-plugin.

Version-Release number of selected component (if applicable):
libstoragemgmt-1.6.1-2.el7

How reproducible:
100%

Steps to Reproduce:
0. sudo yum remove libstoragemgmt-local-plugin -y
1. sudo yum install libstoragemgmt libstoragemgmt-nfs-plugin -y
2. sudo systemctl restart libstoragemgmt
3. sudo yum install libstoragemgmt-local-plugin -y
3. sudo lsmcli -u local:// ls

Actual results:

PLUGIN_NOT_EXIST(311): Plug-in /tmp/lsm/ipc/local not found! 

Expected results:

ID            | Name               | Status  | Info | FW Ver | Mode | Read Cache Percentage
-------------------------------------------------------------------------------------------
nfs-localhost | NFS on Gris-Laptop | Unknown |      |        |      |                      



Additional info:
This bug only require changes on rpm spec file, hence requesting `exception` flag.

Comment 3 Jakub Krysl 2018-07-12 12:16:20 UTC
In libstoragemgmt-1.6.2-2.el7 it is no longer needed to restart libstoragemgmt service when installing new plugin:

# lsmcli -u 'local://' ls
PLUGIN_NOT_EXIST(311): Plug-in /var/run/lsm/ipc/local not found!

# yum install libstoragemgmt-local*
--snip--
Installed:
  libstoragemgmt-local-plugin.noarch 0:1.6.2-2.el7

Complete!

# lsmcli -u 'local://' ls
TRANSPORT_COMMUNICATION(400): Error while reading a message from the plug-in Data: [Errno 104] Connection reset by peer

# yum remove libstoragemgmt-local*
--snip--
Removed:
  libstoragemgmt-local-plugin.noarch 0:1.6.2-2.el7

Complete!

# lsmcli -u 'local://' ls
PLUGIN_NOT_EXIST(311): Plug-in /var/run/lsm/ipc/local not found!

Note: The TRANSPORT_COMMUNICATION(400) is due to BZ 1600501.

Comment 5 errata-xmlrpc 2018-10-30 10:10:39 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:3112