Description of problem: ===================== A few options are showing different values when they are fetched at cluster level as against volume level. A consistent representation would be nice to have eg: [root@dhcp42-80 ~]# gluster v get test350 all|egrep "cluster.server-quorum-ratio|cluster.enable-shared-storage|cluster.op-version|cluster.max-op-version|cluster.brick-multiplex|cluster.max-bricks-per-process|glusterd.vol_count_per_thread|cluster.daemon-log-level" cluster.server-quorum-ratio 0 cluster.enable-shared-storage disable cluster.brick-multiplex off glusterd.vol_count_per_thread 100 cluster.max-bricks-per-process 250 cluster.daemon-log-level INFO [root@dhcp42-80 ~]# gluster v get all all Option Value ------ ----- cluster.server-quorum-ratio 51 cluster.enable-shared-storage disable cluster.op-version 70000 cluster.max-op-version 70000 cluster.brick-multiplex disable cluster.max-bricks-per-process 250 glusterd.vol_count_per_thread 100 cluster.daemon-log-level INFO In above example below are the descrepencies 1)It can be seen that "cluster.server-quorum-ratio"at cluster level shows 51% as against 0 at volume level 2) and "cluster.brick-multiplex " shows disable at cluster level as against off at volume level--> though both are effectively same, it would be good to either use disable or off at both places. No functional impact, and more of a cosmetic issue Version-Release number of selected component (if applicable): ================ mainline How reproducible: ================ always
RCA: There are two places where global cluster wide options are defined. (1) In valid_all_vol_opts structure & (2) In VME table in glusterd-volume-set.c . In 1 & 2 the default values don't match and hence this bug.
REVIEW: https://review.gluster.org/22680 (glusterd: fix inconsistent global option output in volume get) posted (#1) for review on master by Atin Mukherjee
REVIEW: https://review.gluster.org/22680 (glusterd: fix inconsistent global option output in volume get) merged (#2) on master by Amar Tumballi