Bug 1065630 - Gluster volume stop "vol0" is not checking whether its stopped
Summary: Gluster volume stop "vol0" is not checking whether its stopped
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: pre-release
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-15 09:26 UTC by Sankar Ramalingam
Modified: 2015-10-22 15:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-22 15:40:20 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Sankar Ramalingam 2014-02-15 09:26:53 UTC
Description of problem: Running "gluster volume stop gv0" not checking whether its actually running or not. It gives a promot to user, "Stopping volume will make its data inaccessible. Do you want to continue? (y/n)", irrespective of whether the volume is running or not.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a gluster volume and run it.
2. Stop the gluster volume.
3. Try running "gluster volume stop vol_name"
4. It doesn't check whether the volume is already stopped.

Actual results: It doesn't check the status at first

 
Expected results: It should check the status first.


Additional info:

Also, by mistake, if you give "yyes", then the prompt returns back. You need to re-run the command to actually stop the volume. Instead, it should keep the prompt and wait till the user enter yes/no/Yes/No/Y/N/y/n.

Comment 1 Kaleb KEITHLEY 2015-10-22 15:40:20 UTC
pre-release version is ambiguous and about to be removed as a choice.

If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it.


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