Federico Simoncelli has uploaded a new change for review.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
vm: update volume apparentsize after snapshot
After a live snapshot succeeded we need to force the update of the volume apparentsize to avoid races in the extension requests.
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=923964 Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Signed-off-by: Federico Simoncelli fsimonce@redhat.com --- M vdsm/libvirtvm.py 1 file changed, 41 insertions(+), 25 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/46/13346/1
diff --git a/vdsm/libvirtvm.py b/vdsm/libvirtvm.py index cb792b5..8e4f5ce 100644 --- a/vdsm/libvirtvm.py +++ b/vdsm/libvirtvm.py @@ -146,16 +146,7 @@ return
for vmDrive in self._vm._devices[vm.DISK_DEVICES]: - if vmDrive.device == 'disk' and vmDrive.isVdsmImage(): - volSize = self._vm.cif.irs.getVolumeSize( - vmDrive.domainID, vmDrive.poolID, vmDrive.imageID, - vmDrive.volumeID) - - if volSize['status']['code'] != 0: - continue - - vmDrive.truesize = int(volSize['truesize']) - vmDrive.apparentsize = int(volSize['apparentsize']) + self._vm.updateDriveVolume(vmDrive)
def _sampleCpu(self): cpuStats = self._vm._dom.getCPUStats(True, 0) @@ -1929,28 +1920,47 @@
raise LookupError("No such drive: '%s'" % drive)
- def _updateDrive(self, drive): + def updateDriveVolume(self, vmDrive): + if not vmDrive.device == 'disk' or not vmDrive.isVdsmImage(): + return + + volSize = self.cif.irs.getVolumeSize( + vmDrive.domainID, vmDrive.poolID, vmDrive.imageID, + vmDrive.volumeID) + + if volSize['status']['code'] != 0: + self.log.error( + "Unable to update the volume %s (domain: %s image: %s) " + "for the drive %s" % (vmDrive.volumeID, vmDrive.domainID, + vmDrive.imageID, vmDrive.name)) + return + + vmDrive.truesize = int(volSize['truesize']) + vmDrive.apparentsize = int(volSize['apparentsize']) + + def updateDriveParameters(self, driveParams): """Update the drive with the new volume information"""
- # Updating the drive object - for device in self._devices[vm.DISK_DEVICES][:]: - if device.name == drive["name"]: - for k, v in drive.iteritems(): - setattr(device, k, v) + # Updating the vmDrive object + for vmDrive in self._devices[vm.DISK_DEVICES][:]: + if vmDrive.name == driveParams["name"]: + for k, v in driveParams.iteritems(): + setattr(vmDrive, k, v) + self.updateDriveVolume(vmDrive) break else: self.log.error("Unable to update the drive object for: %s", - drive["name"]) + driveParams["name"])
# Updating the VM configuration - for device in self.conf["devices"][:]: - if (device['type'] == vm.DISK_DEVICES and - device.get("name") == drive["name"]): - device.update(drive) + for vmDriveConfig in self.conf["devices"][:]: + if (vmDriveConfig['type'] == vm.DISK_DEVICES and + vmDriveConfig.get("name") == driveParams["name"]): + vmDriveConfig.update(driveParams) break else: self.log.error("Unable to update the device configuration ", - "for: %s", drive["name"]) + "for: %s", driveParams["name"])
self.saveState()
@@ -2055,6 +2065,12 @@ snapxml = snap.toprettyxml()
self.log.debug(snapxml) + + # We need to stop the collection of the stats for two reasons, one + # is to prevent spurious libvirt errors about missing drive paths + # (since we're changing them), and also to prevent to trigger a drive + # extension for the new volume with the apparent size of the old one + # (the apparentsize is updated as last step in updateDriveParameters) self.stopDisksStatsCollection()
snapFlags = (libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY | @@ -2089,7 +2105,7 @@ else: # Update the drive information for drive in newDrives.values(): - self._updateDrive(drive) + self.updateDriveParameters(drive) finally: self.startDisksStatsCollection()
@@ -2315,7 +2331,7 @@
# Updating the destination disk device and name, the device is used by # prepareVolumePath (required to fill the new information as the path) - # and the name is used by _updateDrive. + # and the name is used by updateDriveParameters. dstDiskCopy.update({'device': srcDrive.device, 'name': srcDrive.name}) dstDiskCopy['path'] = self.cif.prepareVolumePath(dstDiskCopy)
@@ -2356,7 +2372,7 @@ # There is nothing we can do at this point other than logging self.log.error("Unable to teardown the previous chain: %s", diskToTeardown, exc_info=True) - self._updateDrive(dstDiskCopy) # Updating the drive structure + self.updateDriveParameters(dstDiskCopy) finally: self._delDiskReplica(srcDrive) self.startDisksStatsCollection()
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1769/ (1/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1719/ (2/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 1:
Build Successful
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1719/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1769/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Federico Simoncelli has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 1: Verified
Verfied: the statistics collection is unaffected (no tracebacks), during a live snapshot the apparentsize is updated as soon as we switch to the new volume.
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Federico Simoncelli has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 1: I would prefer that you didn't submit this
(1 inline comment)
.................................................... File vdsm/libvirtvm.py Line 2070: # is to prevent spurious libvirt errors about missing drive paths Line 2071: # (since we're changing them), and also to prevent to trigger a drive Line 2072: # extension for the new volume with the apparent size of the old one Line 2073: # (the apparentsize is updated as last step in updateDriveParameters) Line 2074: self.stopDisksStatsCollection() This probably needs to be moved inside the while loop (line ~2084) since the finally clause will restart the disk stats when the snapshot with quiesce failed. Line 2075: Line 2076: snapFlags = (libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY | Line 2077: libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT | Line 2078: libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Federico Simoncelli has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 1: (1 inline comment)
.................................................... File vdsm/libvirtvm.py Line 2070: # is to prevent spurious libvirt errors about missing drive paths Line 2071: # (since we're changing them), and also to prevent to trigger a drive Line 2072: # extension for the new volume with the apparent size of the old one Line 2073: # (the apparentsize is updated as last step in updateDriveParameters) Line 2074: self.stopDisksStatsCollection() Or even better the other way around. I'll probably try to find a way to move startDisksStatsCollection outside the loop. Line 2075: Line 2076: snapFlags = (libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY | Line 2077: libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT | Line 2078: libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1752/ (1/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1803/ (2/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 2:
Build Successful
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1752/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1803/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 3:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1875/ (1/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 3:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1824/ (2/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 3:
Build Successful
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1824/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1875/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Ayal Baron has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 3: (1 inline comment)
.................................................... File vdsm/libvirtvm.py Line 2121: # (the apparentsize is updated as last step in updateDriveParameters) Line 2122: self.stopDisksStatsCollection() Line 2123: Line 2124: try: Line 2125: while True: The while loop here is just complicating things. First, there are at most 2 runs. Second, the only common denominator between the two runs is a single line - snapshotCreateXML.
How about removing it and doing something like (less code, less indentation and less complexity imo):
try: try: self._dom.snapshotCreateXML(snapxml, snapFlags) except Exception as e: # try again without the VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag. # At the moment libvirt is returning two generic errors # (INTERNAL_ERROR, ARGUMENT_UNSUPPORTED) which are too # broad to be caught (BZ#845635). snapFlags &= (~libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE) # Here we don't need a full stacktrace (exc_info) but # it's still interesting knowing what was the error self.log.debug("Snapshot failed using the quiesce flag, trying " "again without it (%s)", e) try: self._dom.snapshotCreateXML(snapxml, snapFlags) except Exception as e: self.log.error("Unable to take snapshot", exc_info=True) return errCode['snapshotErr']
# Update the drive information for drive in newDrives.values(): self.updateDriveParameters(drive)
finally: self.startDisksStatsCollection() Line 2126: try: Line 2127: self._dom.snapshotCreateXML(snapxml, snapFlags) Line 2128: except Exception as e: Line 2129: # If we used VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE and the
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dafna Ron has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 3: Verified
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1955/ (1/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1904/ (2/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 4: Fails
Build Failed
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1904/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1955/ : FAILURE
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Federico Simoncelli has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 4: Verified
Verified: by Dafna as fix for bz923964, and again by me (after small changes) with the regular snapshot flow (no quiesce).
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 5:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/2092/ (1/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 5:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/2035/ (2/2)
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Federico Simoncelli has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 5: Verified
Verified in patch set 4: by Dafna as fix for bz923964, and again by me (after small changes) with the regular snapshot flow (no quiesce).
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 5:
Build Successful
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/2092/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/2035/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Vered Volansky has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 5: Looks good to me, but someone else must approve
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Vered Volansky vvolansk@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Ayal Baron has posted comments on this change.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
Patch Set 5: Looks good to me, approved
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Vered Volansky vvolansk@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dan Kenigsberg has submitted this change and it was merged.
Change subject: vm: update volume apparentsize after snapshot ......................................................................
vm: update volume apparentsize after snapshot
After a live snapshot succeeded we need to force the update of the volume apparentsize to avoid races in the extension requests.
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=923964 Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Signed-off-by: Federico Simoncelli fsimonce@redhat.com --- M vdsm/libvirtvm.py 1 file changed, 52 insertions(+), 37 deletions(-)
Approvals: Ayal Baron: Looks good to me, approved Federico Simoncelli: Verified Dan Kenigsberg: Vered Volansky: Looks good to me, but someone else must approve
-- To view, visit http://gerrit.ovirt.org/13346 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I472c2931551643914e6a09b54d3d96f371f34864 Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Ayal Baron abaron@redhat.com Gerrit-Reviewer: Dafna Ron dron@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimonce@redhat.com Gerrit-Reviewer: Vered Volansky vvolansk@redhat.com Gerrit-Reviewer: oVirt Jenkins CI Server
vdsm-patches@lists.fedorahosted.org