Bug 1635684

Summary: [ansible e2e] Setting the volume option using gluster ansible is failing
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: bipin <bshetty>
Component: rhhiAssignee: Sachidananda Urs <surs>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: rhhiv-1.5CC: rhs-bugs, sabose, sanandpa, sankarshan, sasundar, surs
Target Milestone: ---   
Target Release: RHHI-V 1.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-roles-1.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1635683 Environment:
Last Closed: 2019-05-20 04:54:58 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:
Bug Depends On: 1635683    
Bug Blocks: 1520836    

Description bipin 2018-10-03 13:29:40 UTC
+++ This bug was initially created as a clone of Bug #1635683 +++

Description of problem:
While setting the options for the gluster volume, the commands fails by throwing  an error that its not supported. The later commands works fine.

Snippet:
=======
TASK [gluster.features/roles/gluster_hci : Create the GlusterFS volumes] ******************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: None
failed: [rhsqa-grafton6.lab.eng.blr.redhat.com] (item={u'volname': u'engine', u'brick': u'/gluster_bricks/engine/engine'}) => {"changed": false, "item": {"brick": "/gluster_bricks/engine/engine", "volname": "engine"}, "msg": "error running gluster (/usr/sbin/gluster --mode=script volume set engine cluster.granular-entry-heal enable) command (rc=1): volume set: failed:  'gluster volume set <VOLNAME> cluster.granular-entry-heal {enable, disable}' is not supported. Use 'gluster volume heal <VOLNAME> granular-entry-heal {enable, disable}' instead.\n"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: None
failed: [rhsqa-grafton6.lab.eng.blr.redhat.com] (item={u'volname': u'data', u'brick': u'/gluster_bricks/data/data'}) => {"changed": false, "item": {"brick": "/gluster_bricks/data/data", "volname": "data"}, "msg": "error running gluster (/usr/sbin/gluster --mode=script volume set data cluster.granular-entry-heal enable) command (rc=1): volume set: failed:  'gluster volume set <VOLNAME> cluster.granular-entry-heal {enable, disable}' is not supported. Use 'gluster volume heal <VOLNAME> granular-entry-heal {enable, disable}' instead.\n"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: None
failed: [rhsqa-grafton6.lab.eng.blr.redhat.com] (item={u'volname': u'vmstore', u'brick': u'/gluster_bricks/vmstore/vmstore'}) => {"changed": false, "item": {"brick": "/gluster_bricks/vmstore/vmstore", "volname": "vmstore"}, "msg": "error running gluster (/usr/sbin/gluster --mode=script volume set vmstore cluster.granular-entry-heal enable) command (rc=1): volume set: failed:  'gluster volume set <VOLNAME> cluster.granular-entry-heal {enable, disable}' is not supported. Use 'gluster volume heal <VOLNAME> granular-entry-heal {enable, disable}' instead.\n"}




Version-Release number of selected component (if applicable):
gluster-ansible-roles-1.0.2-2.el7rhgs.noarch

How reproducible:
Always

Steps to Reproduce:
1.Create a playbook to deploy RHHI enviornment
2.Throws error while enabling cluster entry heal volume option


Actual results:
Fails while enabling the options

Expected results:
Should use the later command 

Additional info:

Comment 1 Sachidananda Urs 2018-10-03 13:40:26 UTC
Patch updated for review: https://github.com/gluster/gluster-ansible-features/pull/15

Comment 2 SATHEESARAN 2018-10-04 02:49:27 UTC
*** Bug 1635822 has been marked as a duplicate of this bug. ***

Comment 6 SATHEESARAN 2018-10-12 13:12:57 UTC
The dependent gluster-ansible bug is already in MODIFIED state, changing the state of this bug accordingly

Comment 7 SATHEESARAN 2018-10-16 02:39:51 UTC
The dependent gluster-ansible bug is already ON_QA, moving this bug to ON_QA

Comment 8 SATHEESARAN 2018-10-16 02:40:34 UTC
Tested with gluster-ansible-roles-1.0.3

Volume set option 'granular-entry-heal' is not longer set via gluster volume set option.

]# gluster volume get vmstore granular-entry-heal
Option                                  Value                                   
------                                  -----                                   
cluster.granular-entry-heal             enable