]> git.proxmox.com Git - pve-storage.git/commitdiff
fix #1598: use glusterfs daemon default port for online check
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 28 Jan 2019 13:37:05 +0000 (14:37 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 29 Jan 2019 07:27:27 +0000 (08:27 +0100)
use the port where the main glusterfs daemon listens on as ping port,
this one is also used by QEMU as default.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/GlusterfsPlugin.pm

index b6ede4477586e6d65f3adb9399dc859cbf01a47c..1f9465fda42cd193c9bda0718bfe958c890279bc 100644 (file)
@@ -39,9 +39,8 @@ my $get_active_server = sub {
        my $status = 0;
 
        if ($server && $server ne 'localhost' && $server ne '127.0.0.1' && $server ne '::1') {
-
-           # ping the echo port (7) without service check
-           $status = PVE::Network::tcp_ping($server, undef, 2);
+           # ping the gluster daemon default port (24007) as heuristic
+           $status = PVE::Network::tcp_ping($server, 24007, 2);
 
        } else {