From 391ab8a6b3fd0ef14b1d9a0c527d0a7b3d388a16 Mon Sep 17 00:00:00 2001 From: Alexander Indenbaum Date: Wed, 29 Nov 2023 14:39:03 +0000 Subject: [PATCH] monitor client: use client.nvmeof name Signed-off-by: Alexander Indenbaum --- control/server.py | 2 +- control/state.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/control/server.py b/control/server.py index 470e4a4d..ef43f838 100644 --- a/control/server.py +++ b/control/server.py @@ -145,7 +145,7 @@ def _start_monitor_client(self): "--gateway-name", self.name, "--gateway-address", self._gateway_address(), '-c', '/etc/ceph/ceph.conf', - '-n', 'client.admin', + '-n', 'client.nvmeof', '-k', '/etc/ceph/keyring'] self.logger.info(f"Starting {' '.join(cmd)}") try: diff --git a/control/state.py b/control/state.py index 26053e87..83cf1fce 100644 --- a/control/state.py +++ b/control/state.py @@ -360,6 +360,7 @@ def open_rados_connection(self, config): ceph_pool = config.get("ceph", "pool") ceph_conf = config.get("ceph", "config_file") rados_id = config.get_with_default("ceph", "id", "") + self.logger.error(f"Connecting to Rados using id {rados_id}") conn = rados.Rados(conffile=ceph_conf, rados_id=rados_id) conn.connect() self.fetch_and_display_ceph_version(conn)