Adam Litke has uploaded a new change for review. Change subject: virt: Introduce Vm._setVolumeSize helper ......................................................................
virt: Introduce Vm._setVolumeSize helper Backport the Vm._setVolumeSize helper for use by LiveMergeCleanupThread to update the size of the base volume in cases where the top volume was smaller than the base volume. Change-Id: I41ae9d92b3d22cda342209d33a87c7163ab1e5d5 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1251958 Signed-off-by: Adam Litke <[email protected]> --- M vdsm/virt/vm.py 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/06/45106/1 diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py index e4f270d..6d8cccb 100644 --- a/vdsm/virt/vm.py +++ b/vdsm/virt/vm.py @@ -5917,6 +5917,14 @@ (domainID, volumeID)) return res['info'] + def _setVolumeSize(self, domainID, poolID, imageID, volumeID, size): + res = self.cif.irs.setVolumeSize(domainID, poolID, imageID, volumeID, + size) + if res['status']['code'] != 0: + raise StorageUnavailableError( + "Unable to set volume size to %s for domain %s volume %s" % + (size, domainID, volumeID)) + def _diskXMLGetVolumeChainInfo(self, diskXML, drive): def find_element_by_name(doc, name): for child in doc.childNodes: -- To view, visit https://gerrit.ovirt.org/45106 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I41ae9d92b3d22cda342209d33a87c7163ab1e5d5 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: ovirt-3.5 Gerrit-Owner: Adam Litke <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
