From ef63ae9755528968566c6588487ecd15363ac103 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 8 Oct 2025 15:35:36 +0200 Subject: [PATCH] fix(linstorvolumemanager): create local DB path when required When the pool master is changed and if it doesn't have a local DB path then `get_database_path` fails during SR.scan call. This patch allows creating a diskless path if necessary. Signed-off-by: Ronan Abhamon --- drivers/linstorvolumemanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/linstorvolumemanager.py b/drivers/linstorvolumemanager.py index daa845531..eea5c3679 100755 --- a/drivers/linstorvolumemanager.py +++ b/drivers/linstorvolumemanager.py @@ -1747,7 +1747,7 @@ def get_database_path(self): :return: The current database path. :rtype: str """ - return self._request_database_path(self._linstor) + return self._request_database_path(self._linstor, activate=True) @classmethod def get_all_group_names(cls, base_name):