17b94a
From 058a853a1438b2a62586c545f71150ade3de23b7 Mon Sep 17 00:00:00 2001
17b94a
From: schaffung <ssivakum@redhat.com>
17b94a
Date: Wed, 10 Feb 2021 13:43:48 +0530
17b94a
Subject: [PATCH 531/532] Glustereventsd Default port change (#2091)
17b94a
17b94a
Issue : The default port of glustereventsd is currently 24009
17b94a
which is preventing glustereventsd from binding to the UDP port
17b94a
due to selinux policies.
17b94a
17b94a
Fix: Changing the default port to be bound by chanding it to something
17b94a
in the ephemeral range.
17b94a
17b94a
>Fixes: #2080
17b94a
>Change-Id: Ibdc87f83f82f69660dca95d6d14b226e10d8bd33
17b94a
>Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
17b94a
Upstream Patch : https://github.com/gluster/glusterfs/pull/2091
17b94a
17b94a
BUG: 1814744
17b94a
Change-Id: Ibdc87f83f82f69660dca95d6d14b226e10d8bd33
17b94a
Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/227249
17b94a
Tested-by: RHGS Build Bot <nigelb@redhat.com>
17b94a
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
17b94a
---
17b94a
 events/src/eventsconfig.json   | 2 +-
17b94a
 extras/firewalld/glusterfs.xml | 2 +-
17b94a
 libglusterfs/src/events.c      | 2 +-
17b94a
 3 files changed, 3 insertions(+), 3 deletions(-)
17b94a
17b94a
diff --git a/events/src/eventsconfig.json b/events/src/eventsconfig.json
17b94a
index 89e5b9c..14d8f84 100644
17b94a
--- a/events/src/eventsconfig.json
17b94a
+++ b/events/src/eventsconfig.json
17b94a
@@ -1,5 +1,5 @@
17b94a
 {
17b94a
     "log-level": "INFO",
17b94a
-    "port": 24009,
17b94a
+    "port": 55555,
17b94a
     "disable-events-log": false
17b94a
 }
17b94a
diff --git a/extras/firewalld/glusterfs.xml b/extras/firewalld/glusterfs.xml
17b94a
index 7e17644..dc74b2e 100644
17b94a
--- a/extras/firewalld/glusterfs.xml
17b94a
+++ b/extras/firewalld/glusterfs.xml
17b94a
@@ -4,7 +4,7 @@
17b94a
 <description>Default ports for gluster-distributed storage</description>
17b94a
 <port protocol="tcp" port="24007"/>    
17b94a
 <port protocol="tcp" port="24008"/>    
17b94a
-<port protocol="tcp" port="24009"/>    
17b94a
+<port protocol="tcp" port="55555"/>    
17b94a
 <port protocol="tcp" port="38465"/>    
17b94a
 <port protocol="tcp" port="38466"/>    
17b94a
 <port protocol="tcp" port="38467"/>    
17b94a
diff --git a/libglusterfs/src/events.c b/libglusterfs/src/events.c
17b94a
index 4d720ca..3659606 100644
17b94a
--- a/libglusterfs/src/events.c
17b94a
+++ b/libglusterfs/src/events.c
17b94a
@@ -26,7 +26,7 @@
17b94a
 #include "glusterfs/events.h"
17b94a
 
17b94a
 #define EVENT_HOST "127.0.0.1"
17b94a
-#define EVENT_PORT 24009
17b94a
+#define EVENT_PORT 55555
17b94a
 
17b94a
 int
17b94a
 _gf_event(eventtypes_t event, const char *fmt, ...)
17b94a
-- 
17b94a
1.8.3.1
17b94a