Bug 1127594

Summary: rhs-hadoop-install script should handle cleanup in case of errors
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Anush Shetty <ashetty>
Component: rhs-hadoop-installAssignee: Jeff Vance <jvance>
Status: CLOSED NOTABUG QA Contact: BigData QE <bigdata-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.0CC: bchilds, eboyd, matt, nlevinki
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-07 17:20:59 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:

Description Anush Shetty 2014-08-07 08:28:11 UTC
Description of problem: Currently whenever the rhs-hadoop-install script doesn't handle cleanup. So suppose a user runs the script and encounters an error (eg. ntp failure), the user will have to manually cleanup the setup (like brick mount, /etc/fstab entries ) before re-running the script. 


Version-Release number of selected component (if applicable): 1_34-1.el6rhs


How reproducible: Always


Actual results: Script doesn't handle cleanup or rollback of operations from the previous run.


Expected results: Script should be capable to handling the cleanup. It is a tedious task to cleanup all the host machines.


Additional info:

Comment 2 Jeff Vance 2014-08-07 17:20:59 UTC
The user does not have to undo the steps done by any of the scripts when an error is detected. The scripts are designed to be idempotent. However, there is a script named bin./cleanup.sh that will do most of the necessary clean up if that is desired.