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