From: John Mulligan Date: Tue, 9 Jul 2024 18:20:26 +0000 (-0400) Subject: pybind/mgr: add a log line to hint why mgr sqlite3 db not ready X-Git-Tag: v20.0.0~1489^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9c962a60f0361a991dae7398db16e7702a16249;p=ceph.git pybind/mgr: add a log line to hint why mgr sqlite3 db not ready Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 23f790cf3c2..1d62d978d0d 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1323,6 +1323,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): def open_db(self) -> Optional[sqlite3.Connection]: if not self.pool_exists(self.MGR_POOL_NAME): if not self.have_enough_osds(): + self.log.warning('not enough osds to create mgr pool') return None self.create_mgr_pool() uri = f"file:///{self.MGR_POOL_NAME}:{self.module_name}/main.db?vfs=ceph"