| Summary: | [RHEL6] [RFE] gluster vfs plugin should be able to make use of multiple volfile server feature of gfapi | |||
|---|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | Riyas Abdulrasak <rnalakka> | |
| Component: | samba | Assignee: | Raghavendra Talur <rtalur> | |
| Status: | CLOSED ERRATA | QA Contact: | Vivek Das <vdas> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhgs-3.1 | CC: | amukherj, anoopcs, asriram, bugs, nlevinki, rcyriac, rhinduja, rjoseph, rtalur | |
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged | |
| Target Release: | RHGS 3.2.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | samba-4.4.6-2.el6rhs | Doc Type: | Enhancement | |
| Doc Text: |
gluster vfs plugin now supports more than one volfile servers. Samba tries to connect to the next server on the list if one of the gluster server is not reachable.
|
Story Points: | --- | |
| Clone Of: | 1330079 | |||
| : | 1386230 (view as bug list) | Environment: | ||
| Last Closed: | 2017-03-23 05:12:05 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: | ||
| Bug Depends On: | 1330079 | |||
| Bug Blocks: | 1351503, 1386230 | |||
|
Description
Riyas Abdulrasak
2016-04-25 11:26:05 UTC
How to test
=================================================================
glusterfs:volfile_server key can be list of white space seperated
elements where each element could be
unix+/path/to/socket/file or [tcp+]IP|hostname|\[IPv6\][:port].
Note the restriction on naming a IPv6 host, it follows the same
restriction that is based on IPv6 naming in URL as per RFC 2732[1].
Some tests:
1. Setup, Gluster cluster of 192.168.122.13, 192.168.122.14, 192.168.122.15 .
In smb.conf on Server 192.168.122.13, you can have
a. glusterfs:volfile_server = google.com 192.168.122.13 192.168.122.14 192.168.122.15
Expected result: connection should succeed with 192.168.122.13 .
b. glusterfs:volfile_server = google.com 192.168.122.31 192.168.122.14 192.168.122.15
Expected result: connection should succeed with 192.168.122.14 .
c. glusterfs:volfile_server = tcp+192.168.122.14:24007 192.168.122.15
Expected result: connection should succeed with 192.168.122.14 .
d. glusterfs:volfile_server = unix+/var/run/glusterd.socket tcp+192.168.122.14:24007 192.168.122.15
Expected result: connection should succeed with local glusterd using unix socket.
e. glusterfs:volfile_server = 192.168.122.31 192.168.122.44 192.168.122.45
Expected result: connection should fail with log saying could not fetch volfile.
For all the above cases, please use netstat to verify connections and perform IO from the smb clients to ensure that connection is fully operational. Logging at default level 0 will only happen for total failure case where all volfiles are exhausted. All other logs would be at level 3 onwards.
I will add more cases later.
NOTE:
This list is used only for initial connection setup in case of Gluster versions <= 3.7.
In 3.8 Gluster version, we have introduced mechanism to use the list to connect to Glusterd on a different node as a failover response to a Glusterd connection disconnect to existing one.
For example,
glusterfs:volfile_server = 192.168.122.13 192.168.122.14 192.168.122.15
Expected result: connection would succeed with 192.168.122.13.
Now kill glusterd on 192.168.122.13. Automatically connection should get initiated with 192.168.122.14. This would happen only on 3.8 builds and later.
Tested on a two node setup the basic functionality of VFS is working that includes
1. Setup, Gluster cluster of 192.168.122.13, 192.168.122.14, 192.168.122.15 .
In smb.conf on Server 192.168.122.13, you can have
a. glusterfs:volfile_server = <invalid server> 192.168.122.13 192.168.122.14 192.168.122.15
Expected result: connection should succeed with 192.168.122.13 .
b. glusterfs:volfile_server = <invalid server> 192.168.122.31 192.168.122.14 192.168.122.15
Expected result: connection should succeed with 192.168.122.14 .
c. glusterfs:volfile_server = tcp+192.168.122.14:24007 192.168.122.15
Expected result: connection should succeed with 192.168.122.14 .
e. glusterfs:volfile_server = 192.168.122.31 192.168.122.44 192.168.122.45
Expected result: connection should fail with log saying could not fetch
version
--------
samba-client-4.4.6-2
glusterfs-3.8.4-4
Doc looks good. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2017-0494.html |