Bug 1031547

Summary: afr: incorrect message shown on "gluster volume heal vol-name info"
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rahul Hinduja <rhinduja>
Component: replicateAssignee: Anuradha <atalur>
Status: CLOSED CURRENTRELEASE QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: pkarampu, rhs-bugs, smohan, storage-qa-internal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-31 10:40:18 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 Rahul Hinduja 2013-11-18 09:31:26 UTC
Description of problem:
=======================

Currently when self heal daemon is turned off the "gluster volume heal vol-name info" commands returns the following output.

[root@dj ~]# gluster volume heal vol-dr info 
Self-heal-daemon is disabled. Heal will not be triggered on volume vol-dr
[root@dj ~]# 

The message shown in the output is that the heal will not triggered whereas the command executed was to see the files that require to be healed not to trigger heal.

More appropriate message is required, something like:

Self-heal-daemon is disabled. set "self-heal-daemon" to "on" to see the heal information. 


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

glusterfs-3.4.0.44rhs-1.el6rhs.x86_64


How reproducible:
=================
1/1


Steps to Reproduce:
1. Disable the self-heal-daemon on the volume using "gluster volume set vol-name self-heal-daemon off"
2. Use the volume heal information command "gluster volume heal vol-name info"


Actual results:
===============
[root@dj ~]# gluster volume heal vol-name info 
Self-heal-daemon is disabled. Heal will not be triggered on volume vol-dr
[root@dj ~]#

Expected results:
=================
[root@dj ~]# gluster volume heal vol-name info 
Self-heal-daemon is disabled. set "self-heal-daemon" to "on" to see the heal information.
[root@dj ~]#

Or something similar which is more clear with respect to the command executed