Bug 763933 (GLUSTER-2201)

Summary: Can't stop a Gluster volume via a script -
Product: [Community] GlusterFS Reporter: Craig Carl <craig>
Component: cliAssignee: Amar Tumballi <amarts>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.1.1CC: aavati, craig, eco, gluster-bugs, jacob, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anand Avati 2010-12-07 22:56:02 UTC
gluster --mode=script volume stop _volname_ [force]. That will skip asking interacting questions.

Avati

Comment 1 Craig Carl 2010-12-08 01:37:38 UTC
All - 
   The Gluster volume stop command is interactive, it requires answering a "are you sure?" question. As a result the command is not readily script-able. The "force" option does not eliminate this requirement. 

   Eco was able to get around the problem with "yes | gluster volume stop gvol1" but this is an obvious kludge. 

   I would suggest that every interactive command include a "y" or "yes" switch that assumes yes to every prompt, this would be consistent with other *nix tools.

Comment 2 Craig Carl 2010-12-08 02:21:49 UTC
Perfect, thanks.