Bug 763933 (GLUSTER-2201) - Can't stop a Gluster volume via a script -
Summary: Can't stop a Gluster volume via a script -
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-2201
Product: GlusterFS
Classification: Community
Component: cli
Version: 3.1.1
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-08 01:37 UTC by Craig Carl
Modified: 2013-12-19 00:05 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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.


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