Bug 1022822

Summary: Rolling upgrade using yum to Corbett from RHS 2.1 and later
Product: Red Hat Gluster Storage Reporter: Vivek Agarwal <vagarwal>
Component: buildAssignee: Chris Williams <cww>
Status: CLOSED CURRENTRELEASE QA Contact: Rejy M Cyriac <rcyriac>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.1CC: barumuga, cww, flanagan, grajaiya, ndevos, rcyriac, rhs-bugs, rtalur, sankarshan, srevivo, ssaha, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.51rhs-1.el6rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1016385 Environment:
Last Closed: 2015-08-10 07:43:46 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:
Bug Depends On: 1016385    
Bug Blocks: 1033313, 1043946    

Comment 1 Vivek Agarwal 2013-10-24 06:36:38 UTC
Patch in comment #16 to be pulled for Corbett only

Comment 2 Raghavendra Talur 2013-12-16 09:13:55 UTC
Patch posted at https://code.engineering.redhat.com/gerrit/#/c/14487/

Comment 3 Jay Turner 2013-12-17 18:45:24 UTC
Marking this FailedQA and moving back to Assigned based on bug 1043946.  The %pretrans scriptlet is failing preventing package installation.

Comment 4 Harshavardhana 2013-12-17 19:24:59 UTC
(In reply to Jay Turner from comment #3)
> Marking this FailedQA and moving back to Assigned based on bug 1043946.  The
> %pretrans scriptlet is failing preventing package installation.

This is supposed to fail if the 'glusterfs' process are running - can you explain more on what failed?

vol_type - distribute should fail all the time (we don't support rolling upgrades on that)
vol_type - replicate or distributed-replicate is supported but not while the process are running, we should fail the installation and throw a message to the user indicating 'gluster' process are still running. So a 'pkill gluster*' process is necessary before RPM installation.

Comment 5 Jay Turner 2013-12-17 20:41:15 UTC
Take a look at the bug I referenced.  Currently package installation is failing with, "Installing glusterfs-libs-3.4.0.50rhs-1387276796.el6.x86_64
error: %pretrans(glusterfs-libs-3.4.0.50rhs-1387276796.el6.x86_64) scriptlet failed, exit status 127" which is not how things should be working.

Comment 7 Rejy M Cyriac 2014-01-09 18:59:07 UTC
Verified with glusterfs*-3.4.0.55rhs-1

Distribute Volume
-----------------

With running volume:

ERROR: Distribute volumes detected. In-service rolling upgrade requires distribute volume(s) to be stopped.
ERROR: Please stop distribute volume(s) before proceeding... exiting!
Error in PRETRANS scriptlet in rpm package glusterfs-server-3.4.0.55rhs-1.el6rhs.x86_64
....
error: lua script failed: Detected running glusterfs processes

With volume stopped, update is successful


Replicate and Distribute-Replicate Volume
------------------------------------------

With running volume, and running gluster processes on server:

WARNING: Updating glusterfs requires its processes to be killed. This action does NOT incur downtime.
WARNING: Ensure to wait for the upgraded server to finish healing before proceeding.
WARNING: Refer upgrade section of install guide for more details
Please run # service glusterd stop; pkill glusterfs; pkill glusterfsd; pkill gsyncd.py;
Error in PRETRANS scriptlet in rpm package glusterfs-server-3.4.0.55rhs-1.el6rhs.x86_64
....
error: lua script failed: Detected running glusterfs processes

With the gluster processes killed on server to be updated, the update is successful