Bug 1786478

Summary: default option is disappeared in volume info after volume reset
Product: [Community] GlusterFS Reporter: Sanju <srakonde>
Component: glusterdAssignee: Sanju <srakonde>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: mainlineCC: amukherj, bmekala, bugs, nchilaka, rhs-bugs, storage-qa-internal, ubansal, vbellur
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: 1781710 Environment:
Last Closed: 2020-01-01 14:15:33 UTC Type: ---
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: 1781710    
Bug Blocks:    

Description Sanju 2019-12-25 16:48:17 UTC
Description of problem:
=======================
On a default volume there is a volume option 'transport.address-family: inet' which vanishes on resetting a volume and because of this change in volume options ,brick mux feature breaks


Version-Release number of selected component (if applicable):
============================================================
Have been seeing this from a long time
Current testing build - glusterfs-server-6.0-24.el7rhgs.x86_64

How reproducible:
=================
Everytime

Steps to Reproduce:
1.Enable brickmux and create 2-3 volumes , start the volume , all will have same PID and volume option transport.address-family: inet
2.Reset a volume, this volume option is no longer present
3.Start - Stop the volume which was reset 

Actual results:
===============
The volume which was reset and start-stopped , comes up with a different PID


Expected results:
=================
If on a new volume option transport.address-family: inet is present it should not disappear after volume reset


Additional info:
=================
[root@rhs-gp-srv1 glusterd]# gluster v info
 
Volume Name: disperse-vol
Type: Distributed-Disperse
Volume ID: e4741d05-6bb0-4389-8e24-1d556cc01ae8
Status: Started
Snapshot Count: 0
Number of Bricks: 2 x (4 + 2) = 12
Transport-type: tcp
Bricks:
Brick1: 10.70.36.8:/gluster/brick1/ec1
Brick2: 10.70.36.5:/gluster/brick1/ec1
Brick3: 10.70.36.6:/gluster/brick1/ec1
Brick4: 10.70.36.9:/gluster/brick1/ec1
Brick5: 10.70.36.17:/gluster/brick1/ec1
Brick6: 10.70.36.15:/gluster/brick1/ec1
Brick7: 10.70.36.8:/gluster/brick2/ec2
Brick8: 10.70.36.5:/gluster/brick2/ec2
Brick9: 10.70.36.6:/gluster/brick2/ec2
Brick10: 10.70.36.9:/gluster/brick2/ec2
Brick11: 10.70.36.17:/gluster/brick2/ec2
Brick12: 10.70.36.15:/gluster/brick2/ec2
Options Reconfigured:
storage.fips-mode-rchecksum: on
nfs.disable: on
cluster.brick-multiplex: enable
 
Volume Name: ec-vol
Type: Disperse
Volume ID: a6c976c6-a705-4782-8684-c2e60b805b78
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x (4 + 2) = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.36.8:/gluster/brick3/ec1
Brick2: 10.70.36.5:/gluster/brick3/ec1
Brick3: 10.70.36.6:/gluster/brick3/ec1
Brick4: 10.70.36.9:/gluster/brick3/ec1
Brick5: 10.70.36.17:/gluster/brick3/ec1
Brick6: 10.70.36.15:/gluster/brick3/ec1
Options Reconfigured:
transport.address-family: inet
storage.fips-mode-rchecksum: on
nfs.disable: on
cluster.brick-multiplex: enable
 
Volume Name: ec-vol1
Type: Disperse
Volume ID: 6c7f409c-6fca-4d08-8aac-da7fb06d6ec4
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x (4 + 2) = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.36.8:/gluster/brick4/ec1
Brick2: 10.70.36.5:/gluster/brick4/ec1
Brick3: 10.70.36.6:/gluster/brick4/ec1
Brick4: 10.70.36.9:/gluster/brick4/ec1
Brick5: 10.70.36.17:/gluster/brick4/ec1
Brick6: 10.70.36.15:/gluster/brick4/ec1
Options Reconfigured:
transport.address-family: inet
storage.fips-mode-rchecksum: on
nfs.disable: on
cluster.brick-multiplex: enable


Volume disperse-vol has been reset


[root@rhs-gp-srv1 glusterd]# gluster v get disperse-vol all|grep 'transport'
transport.keepalive                     1                                       
transport.listen-backlog                1024                                    
[root@rhs-gp-srv1 glusterd]# 

[root@rhs-gp-srv1 glusterd]# gluster v get ec-vol1 all |grep transport
transport.keepalive                     1                                       
transport.listen-backlog                1024                                    
transport.address-family                inet

--- Additional comment from Upasana on 2019-12-10 18:44:07 IST ---

As this is easily reproducible, not uploading sos-reports.
Please let me know if any more information or data is required

--- Additional comment from Sanju on 2019-12-11 16:42:13 IST ---

Here, the brick-mux feature failing because of the option change. When different options are set for volumes, the volumes will not be compatible with each other and we will have different PID's for bricks.

The actual issue here is: the option <transport.address-family> should not get disappear after volume reset. I will look into it.

Comment 1 Worker Ant 2019-12-25 16:53:39 UTC
REVIEW: https://review.gluster.org/23921 (glusterd: deafult options after volume reset) posted (#1) for review on master by Sanju Rakonde

Comment 2 Worker Ant 2020-01-01 14:15:33 UTC
REVIEW: https://review.gluster.org/23921 (glusterd: deafult options after volume reset) merged (#4) on master by MOHIT AGRAWAL