Bug 1398186

Summary: [Ganesha CLI] : Negative Test - Ganesha enable is successful even when ganesha conf files are missing.
Product: Red Hat Gluster Storage Reporter: Ambarish <asoman>
Component: nfs-ganeshaAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED WONTFIX QA Contact: Ambarish <asoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: asoman, bturner, jthottan, rhinduja, rhs-bugs, skoduri, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1426156 (view as bug list) Environment:
Last Closed: 2017-06-28 11:31:05 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:
Bug Depends On: 1426156    
Bug Blocks:    

Description Ambarish 2016-11-24 09:36:22 UTC
Description of problem:
-----------------------

4 node cluster.
Do not create ganesha.conf and ganesha-ha.conf inside shared storage.
Run  gluster nfs-ganesha enable.
The command shows "success".
It would be good to have some sort of a validation check to check presence of these files.ATM,the success message on the CLI is misleading.


[root@gqas013 ~]# gluster nfs-ganesha enable --mode=script
This will take a few minutes to complete. Please wait ..
nfs-ganesha : success 
[root@gqas013 ~]# 


[root@gqas013 ~]# ll /var/run/gluster/shared_storage/nfs-ganesha
total 0
[root@gqas013 ~]# 
[root@gqas013 ~]# pcs status
Error: cluster is not currently running on this node
[root@gqas013 ~]# 


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

nfs-ganesha-gluster-2.4.1-1.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-4.el7rhgs.x86_64

How reproducible:
-----------------

Always.



Steps to Reproduce:
-------------------

Given in description.


Actual results:
--------------

ganesha enable shows "success" on CLI,which isn't really the case.

Expected results:
------------------

Ganesha enable should throw some sort of a meaningful message on CLI,post validation.

Additional info:
----------------

-