Bug 1386141

Summary: Error and warning message getting while removing glusterfs-events package
Product: [Community] GlusterFS Reporter: Aravinda VK <avishwan>
Component: packagingAssignee: Aravinda VK <avishwan>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, avishwan, bsrirama, bugs, rhinduja, rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.10.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1380605
: 1386160 1387492 (view as bug list) Environment:
Last Closed: 2017-03-06 17:29:40 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: 1380605, 1386160, 1387492    

Description Aravinda VK 2016-10-18 09:31:13 UTC
+++ This bug was initially created as a clone of Bug #1380605 +++

Description of problem:
=======================
While removing the glusterfs-events package, getting the below error & warning message.

=======start===
 Erasing    : glusterfs-events-xxxx                                                                                                                             3/13 
Failed to try-restart glustereventsd.service: Unit glustereventsd.service failed to load: No such file or directory.
warning: %postun(glusterfs-events-xxxx) scriptlet failed, exit status 6
Non-fatal POSTUN scriptlet failure in rpm package glusterfs-events-xxxx
======end====


How reproducible:
=================
Always


Steps to Reproduce:
===================
1.Install all glusterfs-xxxx packages 
2.Remove all the installed packages 
3. Check for the above error and warning messages while removing the glusterfs-events package

Actual results:
================
Getting error and warning message while removing the glusterfs-events package

Expected results:
==================
It should not throw any error and warning messages while removing the package.

Comment 1 Worker Ant 2016-10-18 09:32:31 UTC
REVIEW: http://review.gluster.org/15670 (eventsapi/packaging: Fix wrong usage of %post) posted (#1) for review on master by Aravinda VK (avishwan)

Comment 2 Worker Ant 2016-10-18 11:05:21 UTC
REVIEW: http://review.gluster.org/15670 (eventsapi/packaging: Fix wrong usage of %post) posted (#2) for review on master by Aravinda VK (avishwan)

Comment 3 Worker Ant 2016-10-18 12:03:21 UTC
REVIEW: http://review.gluster.org/15670 (eventsapi/packaging: Fix wrong usage of %post) posted (#3) for review on master by Aravinda VK (avishwan)

Comment 4 Worker Ant 2016-10-21 05:34:12 UTC
COMMIT: http://review.gluster.org/15670 committed in master by Aravinda VK (avishwan) 
------
commit ee4c768dafda992ab6bf3787b4efc8b0f330623e
Author: Aravinda VK <avishwan>
Date:   Tue Oct 18 14:57:47 2016 +0530

    eventsapi/packaging: Fix wrong usage of %post
    
    %postun was used for events package instead of %post. eventsd
    service should be restarted only after install/upgrade and not
    during uninstallation(%postun)
    
    BUG: 1386141
    Change-Id: Iae3eab06d02c5f4134b3de09f040123bed053bb8
    Signed-off-by: Aravinda VK <avishwan>
    Reviewed-on: http://review.gluster.org/15670
    Smoke: Gluster Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Niels de Vos <ndevos>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 5 Shyamsundar 2017-03-06 17:29:40 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.0, please open a new bug report.

glusterfs-3.10.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/