Bug 1127594 - rhs-hadoop-install script should handle cleanup in case of errors
Summary: rhs-hadoop-install script should handle cleanup in case of errors
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: rhs-hadoop-install
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Jeff Vance
QA Contact: BigData QE
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-07 08:28 UTC by Anush Shetty
Modified: 2014-08-07 17:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-08-07 17:20:59 UTC
Target Upstream Version:

Attachments (Terms of Use)

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.

Note You need to log in before you can comment on or make changes to this bug.