Bug 1378316

Summary: Updating to major release happening with warning messages when gluster process is running (glusterd)
Product: Red Hat Gluster Storage Reporter: Byreddy <bsrirama>
Component: buildAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED DEFERRED QA Contact: Rahul Hinduja <rhinduja>
Severity: high Docs Contact:
Priority: low    
Version: rhgs-3.2CC: amukherj, atumball, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-11 10:07:42 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:

Description Byreddy 2016-09-22 06:27:52 UTC
Description of problem:
=======================
while updating to major release (3.2) from 3.1.3, i am getting the below warning messages with successful update.

<start>
Job for glusterd.service failed because the control process exited with error code. See "systemctl status glusterd.service" and "journalctl -xe" for details.
warning: %post(glusterfs-server-3.8.4-1.el7rhgs.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package glusterfs-server-3.8.4-1.el7rhgs.x86_64
  Updating   : glusterfs-geo-replication-3.8.4-1.el7rhgs.x86_64                                                                                                                          8/18 
<end>

Version-Release number of selected component (if applicable):
=============================================================
glusterfs-3.8.4-1


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


Steps to Reproduce:
===================
1.Have 3.1.3 setup
2.Update to glusterfs-3.8.4-1 without stopping glusterd process
3.you will see the warning messages mentioned above with successful update.

Actual results:
===============
Getting warning messages when updating to major release with glusterd running.


Expected results:
=================
Updating to major release should not happen if gluster processes are running


Additional info:

Comment 2 Byreddy 2016-09-22 06:30:24 UTC
Update from dev team about this one:
====================================

when upgrading to a major release, all gluster processes should
be stopped. Looks like here, the upgrade proceeded with glusterd
running, so the post-in rpm scriptlet is trying to start glusterd
again after the upgrade. This shouldn't happen.

Comment 3 Atin Mukherjee 2016-09-22 06:36:01 UTC
I'd request you to check the upgrade path from 3.0 to 3.1 and see if the same behaviour is seen or not. Based on that we can take a call.

Comment 4 Byreddy 2016-09-22 06:48:16 UTC
(In reply to Atin Mukherjee from comment #3)
> I'd request you to check the upgrade path from 3.0 to 3.1 and see if the
> same behaviour is seen or not. Based on that we can take a call.

Sure Atin, i will check and update here

Comment 5 Byreddy 2016-09-22 07:06:58 UTC
Getting the same error message while updating from 3.0.4 to 3.1.3

<start>
  Installing : userspace-rcu-0.7.9-2.el6rhs.x86_64                                                                                                                                       7/18 
  Updating   : glusterfs-server-3.7.9-12.el6rhs.x86_64                                                                                                                                   8/18 
Non-fatal POSTIN scriptlet failure in rpm package glusterfs-server-3.7.9-12.el6rhs.x86_64
warning: %post(glusterfs-server-3.7.9-12.el6rhs.x86_64) scriptlet failed, exit status 1
  Updating   : glusterfs-geo-replication-3.7.9-12.el6rhs.x86_64                                                                                                                          9/18 
  Updating   : glusterfs-rdma-3.7.9-12.el6rhs.x86_64                                                                                                                                    10/18 
  Cleanup    : glusterfs-geo-replication-3.6.0.53-1.el6rhs.x
<end>

Comment 6 Byreddy 2016-09-22 08:33:43 UTC
Like how we are stopping the update when brick processes are running, same  thing should happen for glusterd process has well.

Comment 7 Atin Mukherjee 2016-09-24 08:20:26 UTC
(In reply to Byreddy from comment #5)
> Getting the same error message while updating from 3.0.4 to 3.1.3
> 
> <start>
>   Installing : userspace-rcu-0.7.9-2.el6rhs.x86_64                          
> 7/18 
>   Updating   : glusterfs-server-3.7.9-12.el6rhs.x86_64                      
> 8/18 
> Non-fatal POSTIN scriptlet failure in rpm package
> glusterfs-server-3.7.9-12.el6rhs.x86_64
> warning: %post(glusterfs-server-3.7.9-12.el6rhs.x86_64) scriptlet failed,
> exit status 1
>   Updating   : glusterfs-geo-replication-3.7.9-12.el6rhs.x86_64             
> 9/18 
>   Updating   : glusterfs-rdma-3.7.9-12.el6rhs.x86_64                        
> 10/18 
>   Cleanup    : glusterfs-geo-replication-3.6.0.53-1.el6rhs.x
> <end>

As the behaviour is same on all major to major upgrade path and especially the steps were not inlined with the admin guide, we will not spend time fixing it for 3.2.0

Comment 11 Amar Tumballi 2018-10-11 10:07:42 UTC
As per comment #7, Closing as Deferred! Please reopen if required sooner!