[Kimchi-devel] [kimchi-devel][PATCHv3 0/6] Upload storage volume
Aline Manera
alinefm at linux.vnet.ibm.com
Mon Feb 9 13:44:13 UTC 2015
Could you exemplify the REST API calls to get an file uploaded?
I suppose they are:
POST /storagepools/<pool>/storagevolumes/ {filename: <name>, size:
<total size>}
And then several PUT requests
PUT /storagepools/<pool>/storagevolumes/<name> {chunk: ...}
On 28/01/2015 11:20, lvroyce at linux.vnet.ibm.com wrote:
> From: Royce Lv <lvroyce at linux.vnet.ibm.com>
>
> known issue:
> When using api to send requests without setting up session,
> cherrypy server will report error after hundred of calls,
> because race condition below:
> https://bitbucket.org/cherrypy/cherrypy/pull-request/50/fix-race-condition-in-session-clean-up/diff
> But it works well with session setup.
> v3>v1,
> Use libvirt upload api instead of r/w file
> Use lock to synchronize upload to prevent
> Royce Lv (6):
> Update docs and json schema of storage volume upload
> Update controller to make update accept formdata params
> Add lock facility for storage volume upload
> Update model for storage volume update
> Fix incomplete record when uploading
> update test case for storage volume upload
>
> docs/API.md | 7 ++--
> src/kimchi/API.json | 19 +++++++++++
> src/kimchi/control/base.py | 6 ++--
> src/kimchi/i18n.py | 4 +++
> src/kimchi/isoinfo.py | 5 ++-
> src/kimchi/mockmodel.py | 8 ++---
> src/kimchi/model/storagevolumes.py | 61 +++++++++++++++-------------------
> src/kimchi/model/utils.py | 46 ++++++++++++++++++++++++++
> tests/test_model.py | 67 ++++++++++++++++++++++++++++++++++++++
> 9 files changed, 177 insertions(+), 46 deletions(-)
>
More information about the Kimchi-devel
mailing list