Skip to content

Commit b858fee

Browse files
committed
repair pipeline
Signed-off-by: Ronan Abhamon <[email protected]>
1 parent 38ea04f commit b858fee

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/LinstorSR.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
import xmlrpc.client
5757
import xs_errors
5858

59-
from cowutil import getVdiTypeFromImageFormat
59+
from cowutil import getCowUtil, getVdiTypeFromImageFormat
6060
from srmetadata import \
6161
NAME_LABEL_TAG, NAME_DESCRIPTION_TAG, IS_A_SNAPSHOT_TAG, SNAPSHOT_OF_TAG, \
6262
TYPE_TAG, VDI_TYPE_TAG, READ_ONLY_TAG, SNAPSHOT_TIME_TAG, \
@@ -1297,7 +1297,7 @@ def _get_vdi_path_and_parent(self, vdi_uuid, volume_name):
12971297

12981298
# Otherwise it's a COW and a parent can exist.
12991299
linstorcowutil = LinstorCowUtil(self.session, self._linstor, vdi_type)
1300-
if linstorcowutil.check(vdi_uuid) != cowutil.CheckResult.Success:
1300+
if linstorcowutil.check(vdi_uuid) != CowUtil.CheckResult.Success:
13011301
return (None, None)
13021302

13031303
image_info = linstorcowutil.get_info(vdi_uuid)
@@ -2290,7 +2290,7 @@ def _create_snapshot(self, snap_vdi_type, snap_uuid, snap_of_uuid=None):
22902290
# 2. Write the snapshot content.
22912291
is_raw = (self.vdi_type == VdiType.RAW)
22922292
self.linstorcowutil.snapshot(
2293-
snap_path, self.path, is_raw, max(self.size, cowutil.getDefaultPreallocationSizeVirt())
2293+
snap_path, self.path, is_raw, max(self.size, self.linstorcowutil.cowutil.getDefaultPreallocationSizeVirt())
22942294
)
22952295

22962296
# 3. Get snapshot parent.

drivers/verifyVHDsOnSR.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import VDI
2929

3030
from constants import NS_PREFIX_LVM, VG_LOCATION, VG_PREFIX
31+
from cowutil import getCowUtil
3132
from lock import Lock
3233
from lvmcowutil import LV_PREFIX, LvmCowUtil
3334
from refcounter import RefCounter

0 commit comments

Comments
 (0)