Bug 1065630

Summary: Gluster volume stop "vol0" is not checking whether its stopped
Product: [Community] GlusterFS Reporter: Sankar Ramalingam <sramling>
Component: cliAssignee: bugs <bugs>
Status: CLOSED EOL QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: bugs, gluster-bugs
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: 2015-10-22 15:40:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.