]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: add a log line to hint why mgr sqlite3 db not ready
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 9 Jul 2024 18:20:26 +0000 (14:20 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 9 Jul 2024 18:20:26 +0000 (14:20 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/mgr_module.py

index 23f790cf3c238725e4c7f693522a85eb7baeb618..1d62d978d0d958a9a632d1ac31fc59252622cffe 100644 (file)
@@ -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"