Bug 1387492

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: 3.9CC: 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.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1386141 Environment:
Last Closed: 2016-12-06 06:01: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:
Bug Depends On: 1386141    
Bug Blocks: 1380605, 1386160    

Description Aravinda VK 2016-10-21 05:42:50 UTC
+++ This bug was initially created as a clone of Bug #1386141 +++

+++ 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.

--- Additional comment from Worker Ant on 2016-10-18 05:32:31 EDT ---

REVIEW: http://review.gluster.org/15670 (eventsapi/packaging: Fix wrong usage of %post) posted (#1) for review on master by Aravinda VK (avishwan)

--- Additional comment from Worker Ant on 2016-10-18 07:05:21 EDT ---

REVIEW: http://review.gluster.org/15670 (eventsapi/packaging: Fix wrong usage of %post) posted (#2) for review on master by Aravinda VK (avishwan)

--- Additional comment from Worker Ant on 2016-10-18 08:03:21 EDT ---

REVIEW: http://review.gluster.org/15670 (eventsapi/packaging: Fix wrong usage of %post) posted (#3) for review on master by Aravinda VK (avishwan)

--- Additional comment from Worker Ant on 2016-10-21 01:34:12 EDT ---

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 1 Worker Ant 2016-10-21 05:44:08 UTC
REVIEW: http://review.gluster.org/15693 (eventsapi/packaging: Fix wrong usage of %post) posted (#1) for review on release-3.9 by Aravinda VK (avishwan)

Comment 2 Worker Ant 2016-10-24 09:06:10 UTC
REVIEW: http://review.gluster.org/15693 (eventsapi/packaging: Fix wrong usage of %post) posted (#2) for review on release-3.9 by Aravinda VK (avishwan)

Comment 3 Worker Ant 2016-10-24 11:06:05 UTC
COMMIT: http://review.gluster.org/15693 committed in release-3.9 by Aravinda VK (avishwan) 
------
commit abcccd602b05e4f7900073b067987c24b49c3a77
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)
    
    > 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>
    (cherry picked from commit ee4c768dafda992ab6bf3787b4efc8b0f330623e)
    
    BUG: 1387492
    Change-Id: Iae3eab06d02c5f4134b3de09f040123bed053bb8
    Signed-off-by: Aravinda VK <avishwan>
    Reviewed-on: http://review.gluster.org/15693
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Niels de Vos <ndevos>
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 4 Aravinda VK 2016-10-27 05:23:17 UTC
glusterfs-3.9.0rc2 is released[1] and packages are available for different distributions[2] to test.

[1] http://www.gluster.org/pipermail/maintainers/2016-October/001601.html
[2] http://www.gluster.org/pipermail/maintainers/2016-October/001605.html and http://www.gluster.org/pipermail/maintainers/2016-October/001606.html

Comment 5 Aravinda VK 2016-12-06 06:01:13 UTC
Gluster 3.9 GA is released http://blog.gluster.org/2016/11/announcing-gluster-3-9/