Bug 808233 - FEATURE REQUEST: Please add a "-y" flag to any option that prompts for confirmation.
Summary: FEATURE REQUEST: Please add a "-y" flag to any option that prompts for confir...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: Documentation
Version: 2.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: RHGS 2.0.0
Assignee: Divya
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-03-29 21:37 UTC by Brett Lentz
Modified: 2015-05-13 15:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-10 07:17:05 UTC
Embargoed:


Attachments (Terms of Use)

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


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