[Kimchi-devel] [kimchi-devel][PATCHv4 0/7] Upload storage volume

lvroyce at linux.vnet.ibm.com lvroyce at linux.vnet.ibm.com
Wed Apr 22 08:02:52 UTC 2015


From: Royce Lv <lvroyce at linux.vnet.ibm.com>

How to upload:
POST /storagepools/<pool-name>/storagevolumes/
    {'capacity':size-of-the-volume,'name':name-of-the-volume,'format':'raw'}
PUT /storagepools/<pool-name>/storagevolumes/<volume-name>
   {'chunk':chunk-data,'chunk_size':size-of-chunk,'index':index-of-the-chunk-of-uploaded-file}

PATCH 7/7 is a script against real model server,
you can use it to verify the logic of upload.
 
Royce Lv (7):
  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
  A test script against real model server

 docs/API.md                        |   7 ++-
 src/kimchi/API.json                |  22 ++++++++
 src/kimchi/control/base.py         |   6 +--
 src/kimchi/i18n.py                 |   4 ++
 src/kimchi/isoinfo.py              |   5 +-
 src/kimchi/model/storagevolumes.py |  61 ++++++++++-----------
 src/kimchi/model/utils.py          |  46 ++++++++++++++++
 tests/test_api.py                  | 108 +++++++++++++++++++++++++++++++++++++
 tests/test_model_storagevolume.py  |  95 ++++++++++++++++++++++++--------
 9 files changed, 291 insertions(+), 63 deletions(-)
 create mode 100644 tests/test_api.py

-- 
2.1.0




More information about the Kimchi-devel mailing list