Skip to content

Commit

Permalink
Write the SPDK and discovery service PIDs to the log.
Browse files Browse the repository at this point in the history
Fixes #281

Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
  • Loading branch information
gbregman committed Oct 23, 2023
1 parent e1bed1c commit 63f98d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def _start_discovery_service(self):
self.logger.info("Starting ceph nvmeof discovery service")
DiscoveryService(self.config).start_service()
os._exit(0)
else:
self.logger.info(f"Discovery service process id: {self.discovery_pid}")

def _add_server_listener(self):
"""Adds listener port to server."""
Expand Down Expand Up @@ -208,6 +210,7 @@ def _start_spdk(self):
log_level = self.config.get("spdk", "log_level")
# connect timeout: spdk client retries 5 times per sec
conn_retries = int(timeout * 5)
self.logger.info(f"SPDK process id: {self.spdk_process.pid}")
self.logger.info(
f"Attempting to initialize SPDK: rpc_socket: {spdk_rpc_socket},"
f" conn_retries: {conn_retries}, timeout: {timeout}"
Expand Down

0 comments on commit 63f98d3

Please sign in to comment.