Ayal Baron has submitted this change and it was merged.
Change subject: vm: add the live diskSizeExtend method
......................................................................
vm: add the live diskSizeExtend method
This patch adds the diskSizeExtend HSM method to implement the live disk
extension.
returnCode = diskSizeExtend(vmUUID, driveSpecs, newSize)
driveSpecs = {
'poolID': '<spUUID>',
'domainID': '<sdUUID>',
'imageID': '<imgUUID>',
'volumeID': '<volUUID>',
}
returnCode = {
'status': {'code': 0, 'message': 'Done'},
'size': '<newSize>',
}
The driveSpecs (usually poolID, domainID, imageID, volumeID) indentify
the disk to extend. The driveSpecs as GUID is not supported.
The returnCode also returns the newSize of the disk seen by the guest
(might be different from the requested one, e.g. rounded by QEMU).
The returnCode might also return the following specific errors:
- noVM(1): Virtual machine does not exist
- resizeErr(58): Wrong resize disk parameter
- updateDevice(56): Failed to update device
Change-Id: I326f0e71d53382a49eb3b43cdf0bc0472f71abdc
Signed-off-by: Federico Simoncelli <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/15614
Reviewed-by: Ayal Baron <[email protected]>
---
M client/vdsClient.py
M lib/vdsm/define.py
M vdsm/API.py
M vdsm/BindingXMLRPC.py
M vdsm/storage/hsm.py
M vdsm/storage/image.py
M vdsm/storage/volume.py
M vdsm/vm.py
M vdsm_api/vdsmapi-schema.json
9 files changed, 246 insertions(+), 3 deletions(-)
Approvals:
Ayal Baron: Looks good to me, approved
Federico Simoncelli: Verified
--
To view, visit http://gerrit.ovirt.org/15614
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I326f0e71d53382a49eb3b43cdf0bc0472f71abdc
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Giuseppe Vallarelli <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches