Skip to content

Commit

Permalink
fix(LargeBlock): python version for 8.3
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Thenot <[email protected]>
  • Loading branch information
Nambrok committed Mar 19, 2024
1 parent 1fa7fee commit 616a987
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/LargeBlockSR.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# Copyright (C) 2024 Vates SAS - [email protected]
#
Expand Down Expand Up @@ -165,8 +165,9 @@ def _redo_vg_connection(self):

util.SMlog("Reconnecting VG {} to use emulated device".format(self.vgname))
try:
util.pread2(["vgchange", "-an", self.vgname])
util.pread2(["vgchange", "-ay", self.vgname, "--config", "devices{ global_filter = [ \"r|^/dev/nvme.*|\", \"a|/dev/loop.*|\" ] }"])
lvutil.setActiveVG(self.vgname, False)
#util.pread2(["vgchange", "-ay", self.vgname, "--config", "devices{ global_filter = [ \"r|^/dev/nvme.*|\", \"a|/dev/loop.*|\" ] }"])
lvutil.setActiveVG(self.vgname, True, config="devices{ global_filter = [ \"r|^/dev/nvme.*|\", \"a|/dev/loop.*|\" ] }")
except util.CommandException as e:
util.SMlog("Failed to reconnect the VolumeGroup {}, error: {}".format(self.vgname, e))

Expand Down

0 comments on commit 616a987

Please sign in to comment.