Bug 808233

Summary: FEATURE REQUEST: Please add a "-y" flag to any option that prompts for confirmation.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Brett Lentz <brett.lentz>
Component: DocumentationAssignee: Divya <divya>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir D <sdharane>
Severity: high Docs Contact:
Priority: medium    
Version: 2.0CC: asriram, gluster-bugs, rwheeler, sdharane, storage-doc, twiest
Target Milestone: ---Keywords: FutureFeature
Target Release: RHGS 2.0.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-10 07:17:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 817967    

Description Brett Lentz 2012-03-29 21:37:00 UTC
Description of problem:

Stopping a volume, removing a brick, and a few other tasks prompt the user for confirmation of their actions. This makes it very difficult to automate the management of gluster volumes, especially in situations where the potential loss of data isn't a concern or is handled elsewhere.

Please add a "-y" flag to the cli tools so that a user can automatically confirm the requested action. 

The presence of this flag should bypass any prompts automatically and execute the specified action.

This flag should be added to any options that currently prompt the user for confirmation of their actions.

Comment 1 Thomas Wiest 2012-03-29 21:50:36 UTC
+1, this would be really useful.

Comment 2 Amar Tumballi 2012-03-30 03:15:47 UTC
we already have '--mode=script' for this behavior. If '-y' makes more sense than that, we can add it.

Comment 3 Brett Lentz 2012-03-30 04:13:14 UTC
I do not see any documentation of that feature in the version of Gluster that ships with RHEL6 (3.2.x).

If --mode=script is available in RHEL6, that's acceptable and this bug can be modified to just validate the documentation and man pages calls this feature out.

Comment 4 Amar Tumballi 2012-04-17 10:09:25 UTC
Divya/Anjana, we need to document the feature of utilizing '--mode=script' in scripts with gluster CLI. may be as a NOTE somewhere.

Comment 5 Divya 2012-04-25 12:45:28 UTC
I have added the following in the User Guide:

Note: If you suffix --mode=script to any command on the CLI, the specified action will be executed automatically and it will not prompt for confirmation.

The updated doc will be available online after RHS 2.0 Beta 2 release.

Comment 7 Ujjwala 2012-05-31 07:56:31 UTC
Verified on the following link and the note has been added.

http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Storage/2/html/User_Guide/ch04.html