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