Bug 1565540

Summary: cluster.lookup-optimize toggle does not change client side graph as per client logs
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasad Desala <tdesala>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED NOTABUG QA Contact: Prasad Desala <tdesala>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.4CC: rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-18 07:16: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 Prasad Desala 2018-04-10 09:15:08 UTC
Description of problem:
=======================
When cluster.lookup-optimize is toggled there is no change in the client graph as per client logs.
However, in /var/lib/glusterd/vols/<volname>/trusted-<volname>.tcp-fuse.vol can see the volume option loaded to the volume.

Client logs:
============
[2018-04-10 05:26:59.105804] I [glusterfsd-mgmt.c:53:mgmt_cbk_spec] 0-mgmt: Volume file changed
[2018-04-10 05:26:59.838762] I [glusterfsd-mgmt.c:53:mgmt_cbk_spec] 0-mgmt: Volume file changed
[2018-04-10 05:26:59.900473] I [glusterfsd-mgmt.c:1831:mgmt_getspec_cbk] 0-glusterfs: No change in volfile,continuing
[2018-04-10 05:27:07.606958] I [glusterfsd-mgmt.c:53:mgmt_cbk_spec] 0-mgmt: Volume file changed

tcp-fuse.vol:
==============
volume distrepx3-dht
    type cluster/distribute
    option lock-migration off
    option lookup-optimize off
    subvolumes distrepx3-replicate-0 distrepx3-replicate-1 distrepx3-replicate-2 distrepx3-replicate-3 distrepx3-replicate-4 distrepx3-replicate-5 distrepx3-replicate-6 distrepx3-replicate-7 distrepx3-replicate-8 distrepx3-replicate-9 distrepx3-replicate-10 distrepx3-replicate-11

Version-Release number of selected component (if applicable):
3.12.2-7.el7rhgs.x86_64

How reproducible:
always

Steps to Reproduce:
===================
1) Create a x3 volume and start it.
2) FUSE mount it on a client.
3) tail client mount logs and toggle volume set option cluster.lookup-optimize.

Actual results:
==============
cluster.lookup-optimize toggle does not change client side graph.

Expected results:
=================
When volume set option cluster.lookup-optimize is toggled there should be a change in client side  graph.