Skip to content

Commit f9c962a

Browse files
pybind/mgr: add a log line to hint why mgr sqlite3 db not ready
Signed-off-by: John Mulligan <[email protected]>
1 parent 8178667 commit f9c962a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pybind/mgr/mgr_module.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ def close_db(self) -> None:
13231323
def open_db(self) -> Optional[sqlite3.Connection]:
13241324
if not self.pool_exists(self.MGR_POOL_NAME):
13251325
if not self.have_enough_osds():
1326+
self.log.warning('not enough osds to create mgr pool')
13261327
return None
13271328
self.create_mgr_pool()
13281329
uri = f"file:///{self.MGR_POOL_NAME}:{self.module_name}/main.db?vfs=ceph"

0 commit comments

Comments
 (0)