Ayal Baron has submitted this change and it was merged.
Change subject: image: add support to upload/download images
......................................................................
image: add support to upload/download images
This patch adds the support for uploading and downloading images using
different methods. Added API:
uploadImage(methodArgs, spUUID, sdUUID, imgUUID, volUUID=None)
downloadImage(methodArgs, spUUID, sdUUID, imgUUID, volUUID=None)
Argument methodArgs elects the method used for uploading or downloading
the image and provides the required additional information needed to
reach the receiving/sending endpoint.
Arguments spUUID, sdUUID, imgUUID identify an image and the optional
volUUID option could identify a specific volume in the chain (the leaf
is used by default).
This patch also adds the implementation of the 'http' method used to
download/upload images from/to web servers or any other http service
(e.g. openstack glance).
info = {
'method': 'http',
'url': 'http://source-or-destination/path/to/image',
'headers': {'X-My-Header', 'MyHeaderValue'},
}
Change-Id: Ib208bb20d88633167b5c66b42febe912439a022d
Signed-off-by: Federico Simoncelli <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/14955
Reviewed-by: Ayal Baron <[email protected]>
---
M client/vdsClient.py
M lib/vdsm/constants.py.in
M vdsm.spec.in
M vdsm/API.py
M vdsm/BindingXMLRPC.py
M vdsm/storage/Makefile.am
A vdsm/storage/curl-img-wrap
A vdsm/storage/curlImgWrap.py
M vdsm/storage/hsm.py
M vdsm/storage/image.py
A vdsm/storage/imageSharing.py
M vdsm/storage/sp.py
M vdsm_api/vdsmapi-schema.json
13 files changed, 539 insertions(+), 0 deletions(-)
Approvals:
Ayal Baron: Looks good to me, approved
Federico Simoncelli: Verified
--
To view, visit http://gerrit.ovirt.org/14955
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib208bb20d88633167b5c66b42febe912439a022d
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: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Yeela Kaplan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches