Change in vdsm[master]: vm: Support replication to different storage type
alitke at redhat.com
alitke at redhat.com
Wed Apr 29 13:47:12 UTC 2015
Adam Litke has posted comments on this change.
Change subject: vm: Support replication to different storage type
......................................................................
Patch Set 4:
(2 comments)
Just a couple of questions on this one.
https://gerrit.ovirt.org/#/c/40185/4/vdsm/virt/vm.py
File vdsm/virt/vm.py:
Line 1036: self.log.debug("Requesting extension for the original drive: %s "
Line 1037: "(domainID: %s, volumeID: %s)",
Line 1038: vmDrive.name, vmDrive.domainID, vmDrive.volumeID)
Line 1039: self.__extendDriveVolume(vmDrive, vmDrive.volumeID,
Line 1040: volInfo['newSize'])
Is there a reason why you extend the replica before the original drive? Have you tested how this behaves if the VM gets paused with -EIO during replica extension? My guess is we'd just get duplicate extension requests for the drive: one triggered by the libvirt event and one by __afterReplicaExtension.
Line 1041:
Line 1042: def __extendDriveVolume(self, vmDrive, volumeID, newSize):
Line 1043: volInfo = {
Line 1044: 'domainID': vmDrive.domainID,
Line 3073: drive.name, replica)
Line 3074: self.cif.teardownVolumePath(replica)
Line 3075: return errCode['replicaErr']
Line 3076:
Line 3077: if drive.chunked or drive.replicaChunked:
If migrating from file->block, why would we want to extend drive here?
Line 3078: try:
Line 3079: capacity, alloc, physical = self._getExtendInfo(drive)
Line 3080: self.extendDriveVolume(drive, drive.volumeID, physical,
Line 3081: capacity)
--
To view, visit https://gerrit.ovirt.org/40185
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I70eb93082af81fe54268ee0133d1252c0d537ca8
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Adam Litke <alitke at redhat.com>
Gerrit-Reviewer: Ala Hino <ahino at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list