Skip to content

Commit 697676c

Browse files
In some cases thick SR creation may fail due to get_online_hosts as the metrics could take time.
Thus, changed the mechanism to `get_enabled_hosts`. Signed-off-by: Rushikesh Jadhav <[email protected]>
1 parent 30e76c7 commit 697676c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/LinstorSR.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def create(self, uuid, size) -> None:
586586
opterr='LINSTOR SR must be unique in a pool'
587587
)
588588

589-
online_hosts = util.get_online_hosts(self.session)
589+
online_hosts = util.get_enabled_hosts(self.session)
590590
if len(online_hosts) < len(host_adresses):
591591
raise xs_errors.XenError(
592592
'LinstorSRCreate',

0 commit comments

Comments
 (0)