[Kimchi-devel] [PATCHv6 0/8] Add support of storage server and target
lvroyce0210 at gmail.com
lvroyce0210 at gmail.com
Wed Jan 8 15:50:02 UTC 2014
From: Royce Lv <lvroyce at linux.vnet.ibm.com>
v5>v6, change GET param support to cover more scenario of filter collected results.
v4>v5, remove storage server list reload function,
merge storage server and targets
v3>v4, fix inconsistency between doc and json schema
v1>v3, fix racing problem, fix style.
Add parameters to GET request so that we will query storage server as:
/storageservers?target_type=netfs
Query all servers of any type supported(now only netfs):
/storageservers
Query all storage targets on a server:
/storageservers/host-name/storagetargets
Query a given type of storage targets:
/storageservers/host-name/storagetargets?target_type=netfs
Note: Due to Ubuntu 13.04 bug: ubuntu host report empty list for targets query,
as my solution already accepted and is easy to fix, we will wait it upstream
before 2weeks before release, I'll provide a work around by then if not available yet.
REF:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1264955
Royce Lv (8):
Support params for GET method
Add testcase for GET param
Storage server: Update API.md
storage server: update controller.py
storage server: Update model and mockmodel
storage target: Update API.md
storage target: Update controller and json schema
storage target: Add model support
docs/API.md | 22 +++++++++++
src/kimchi/API.json | 20 ++++++++++
src/kimchi/control/base.py | 26 +++++++++----
src/kimchi/control/storagepools.py | 4 +-
src/kimchi/control/storageserver.py | 63 +++++++++++++++++++++++++++++++
src/kimchi/control/utils.py | 2 +
src/kimchi/mockmodel.py | 28 ++++++++++++++
src/kimchi/model.py | 74 +++++++++++++++++++++++++++++++++++++
src/kimchi/root.py | 2 +
tests/test_rest.py | 34 +++++++++++++++++
10 files changed, 266 insertions(+), 9 deletions(-)
create mode 100644 src/kimchi/control/storageserver.py
--
1.8.1.2
More information about the Kimchi-devel
mailing list