gluster/glusterd2

default options exposed in volume info

ksandha opened this issue · 2 comments

Performance and other volume options exposed in volume info in gd2

Observed behavior

Volume Name: pvc-ffdff841-075d-11e9-b5d2-525400242e67
Type: Replicate
Volume ID: 6fad1401-7bb3-4d3d-964d-eb60eee0e694
State: Started
Capacity: 50.0 MiB
Transport-type: tcp
Options:
    performance/read-ahead.read-ahead: off
    debug/io-stats.count-fop-hits: on
    debug/io-stats.latency-measurement: on
    performance/md-cache.md-cache: off
    performance/quick-read.quick-read: off
    performance/write-behind.write-behind: off
    cluster/replicate.self-heal-daemon: on
    performance/io-cache.io-cache: off
    performance/open-behind.open-behind: off
    performance/readdir-ahead.readdir-ahead: off
Number of Bricks: 3
Brick1: gluster-kube3-0.glusterd2.gcs:/var/run/glusterd2/bricks/pvc-ffdff841-075d-11e9-b5d2-525400242e67/subvol1/brick1/brick
Brick2: gluster-kube2-0.glusterd2.gcs:/var/run/glusterd2/bricks/pvc-ffdff841-075d-11e9-b5d2-525400242e67/subvol1/brick2/brick
Brick3: gluster-kube1-0.glusterd2.gcs:/var/run/glusterd2/bricks/pvc-ffdff841-075d-11e9-b5d2-525400242e67/subvol1/brick3/brick

Expected/desired behavior

Default options shouldn't be exposed

Details on how to reproduce (minimal and precise)

create a PVC without brick mux enabled.

Information about the environment:

  • Glusterd2 version used (e.g. v4.1.0 or master):
[root@gluster-kube3-0 /]# rpm -qa | grep gluster
glusterfs-6dev-0.402.git730ab84.el7.x86_64
glusterfs-client-xlators-6dev-0.402.git730ab84.el7.x86_64
glusterfs-api-6dev-0.402.git730ab84.el7.x86_64
glusterfs-server-6dev-0.402.git730ab84.el7.x86_64
glusterfs-geo-replication-6dev-0.402.git730ab84.el7.x86_64
gluster-prometheus-exporter-0.3-dev.40.gitdb03982.el7.x86_64
glusterfs-libs-6dev-0.402.git730ab84.el7.x86_64
glusterfs-cli-6dev-0.402.git730ab84.el7.x86_64
glusterfs-fuse-6dev-0.402.git730ab84.el7.x86_64
python2-gluster-6dev-0.402.git730ab84.el7.x86_64
glusterd2-5.0-0.dev.92.git4d140ab.el7.x86_64
  • Operating system used: Centos 7.4
  • Glusterd2 compiled from sources, as a package (rpm/deb), or container: Container
  • Using External ETCD: (yes/no, if yes ETCD version): external etcd
  • If container, which container image:
  • Using kubernetes, openshift, or direct install: Kubernetes
  • If kubernetes/openshift, is gluster running inside kubernetes/openshift or outside:

Other useful information

  • glusterd2 config files from all nodes (default /etc/glusterd2/glusterd2.toml)
  • glusterd2 log files from all nodes (default /var/log/glusterd2/glusterd2.log)
  • ETCD configuration
  • Contents of uuid.toml from all nodes (default /var/lib/glusterd2/uuid.toml)
  • Output of statedump from any one of the node

Useful commands

  • To get glusterd2 version

[root@gluster-kube3-0 /]# glusterd2 --version
glusterd version: v6.0-dev.92.git4d140ab
git SHA: 4d140ab
go version: go1.11.2
go OS/arch: linux/amd64
```

  • To get ETCD version

/ # etcd --version
etcd Version: 3.3.8
Git SHA: 33245c6b5
Go Version: go1.9.7
Go OS/Arch: linux/amd64
/ #

```
  • To get output of statedump
    curl http://glusterd2-IP:glusterd2-Port/statedump
    

Options shown here are the options which are explicitly set on the Volume when a Volume is created. This may change wrt Volume type.

@aravindavk can we please close this considering this is an expected behavior?