diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-09-23 23:53:39 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2018-10-02 11:07:32 +0000 |
commit | c96778b354ea82943442aab158adbb854ca43a52 (patch) | |
tree | 059544726c6424583d75b6fceba200abc7a83789 /tests/basic | |
parent | ff00ce1d55e34ec77e93e742533928edf653e2d2 (diff) |
rpc: make binding to port 0 as the default if no option is provided
Right now, if no option is provided, the default port is assumed,
which is 24007. Ideally, for 'glusterfsd' processes, it is better
to not assume there are any ports given, so it can start listening
on any port which is available.
This helps us to cleanup the dependencies on glusterd from glusterfsd
at the moment. No changes would be done to glusterd code, but making
the right defaults helps to make glusterfsd more independent process
later.
NOTE: This patch is a reduced version of below set of patches:
* https://review.gluster.org/14613/ &
* https://review.gluster.org/14670/ &
* https://review.gluster.org/14671/
Credits: Prasanna Kumar Kalever <pkalever@redhat.com>
updates: bz#1343926
Change-Id: Ib874e10505e7366dc56ba754458252b67052e653
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/volfile-sanity.t | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/basic/volfile-sanity.t b/tests/basic/volfile-sanity.t index 04d1d2869c2..ef2f9344468 100644 --- a/tests/basic/volfile-sanity.t +++ b/tests/basic/volfile-sanity.t @@ -12,8 +12,11 @@ TEST $CLI volume create $V0 $H0:$B0/${V0}1 killall glusterd -## Mount FUSE with caching disabled (read-write) -TEST $GFS -f /var/lib/glusterd/vols/${V0}/${V0}.${H0}.*.vol +# Client by default tries to connect to port 24007 +# So, start server on that port, and you can see +# client successfully working. +TEST $GFS --xlator-option "${V0}-server.transport.socket.listen-port=24007" \ + -f /var/lib/glusterd/vols/${V0}/${V0}.${H0}.*.vol TEST $GFS -f /var/lib/glusterd/vols/${V0}/${V0}.tcp-fuse.vol $M0 TEST $(df -h $M0 | grep -q ${V0}) |