Bug 1508334

Summary: [rhel-7.5] opensm fix up preuninstall script
Product: Red Hat Enterprise Linux 7 Reporter: Honggang LI <honli>
Component: opensmAssignee: Honggang LI <honli>
Status: CLOSED ERRATA QA Contact: Zhang Yi <yizhan>
Severity: low Docs Contact:
Priority: low    
Version: 7.5CC: bhu, rdma-dev-team, yizhan
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: opensm-3.3.20-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 17:51: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:
Bug Depends On:    
Bug Blocks: 1442258    

Description Honggang LI 2017-11-01 08:48:22 UTC
Description of problem:

Check the cache directory before remove it. Otherwise, a warning message may show up when remove opensm. The rpm macros had been update, they can remove the cache directory when remove opensm with rpm or yum, in case user never delete and recreate it. But the macro is not reliable.

The warning message is harmless.

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


How reproducible:
always



Steps to Reproduce:
1. # rpm -e opensm
warning: file /var/cache/opensm: remove failed: No such file or directory
2.
3.

Actual results:


Expected results:
No such warning message.

Additional info:

Comment 6 errata-xmlrpc 2018-04-10 17:51: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/RHEA-2018:0954