[Kimchi-devel] [PATCHv5 0/8] Storage server and targets support

lvroyce at linux.vnet.ibm.com lvroyce at linux.vnet.ibm.com
Tue Jan 7 09:43:02 UTC 2014


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

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

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          |  8 ++--
 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                  | 37 +++++++++++++++++++
 9 files changed, 253 insertions(+), 3 deletions(-)
 create mode 100644 src/kimchi/control/storageserver.py

-- 
1.8.1.2




More information about the Kimchi-devel mailing list