[Bugs] [Bug 1649054] glustereventsd does not start on Ubuntu 16.04 LTS

bugzilla at redhat.com bugzilla at redhat.com
Tue Dec 4 17:25:31 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1649054



--- Comment #2 from Mrten <bugzilla at ii.nl> ---
This is a fix for the first bug:

--- utils.py.old    2018-12-04 18:19:18.846463181 +0100
+++ utils.py    2018-12-04 18:21:09.830149998 +0100
@@ -26,13 +26,13 @@
 from hashlib import sha256
 from calendar import timegm

-from .eventsapiconf import (LOG_FILE,
+from eventsapiconf import (LOG_FILE,
                            WEBHOOKS_FILE,
                            DEFAULT_CONFIG_FILE,
                            CUSTOM_CONFIG_FILE,
                            UUID_FILE,
                            CERTS_DIR)
-from . import eventtypes
+import eventtypes


and you need this one as well:

--- glustereventsd.py.old    2018-12-04 18:25:06.841481182 +0100
+++ glustereventsd.py    2018-12-04 18:22:51.529863014 +0100
@@ -28,7 +28,7 @@
 from utils import logger, PidFile, PidFileLockFailed, boolify


-class GlusterEventsRequestHandler(SocketServer.BaseRequestHandler):
+class GlusterEventsRequestHandler(socketserver.BaseRequestHandler):

     def handle(self):
         data = self.request[0].strip()
@@ -98,7 +98,7 @@

     # Start the Eventing Server, UDP Server
     try:
-        server = SocketServer.ThreadingUDPServer(
+        server = socketserver.ThreadingUDPServer(
             (SERVER_ADDRESS, port),
             GlusterEventsRequestHandler)
     except socket.error as e:

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list