From: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
This patchset deals with guest disk management,
when bus is given, attach/detach behavior is based on bus to hot plug
or cold plug.
when bus is not given, kimchi will look for distro info in db to decide
proper bus for disk.
Depend on:
[PATCH]Choose available address for ide disk
Tested:
1. make check.
2. cold plug with ide bus succeeds.
3. hot plug with ide bus fails.
4. when os version/distro unrecorded, default bus is chosed.
5. when os version/distro recorded, bus is chosed based on distro info.
6. hot plug/unplug for virtio bus succeeds.
Royce Lv (7):
Guest disks: Update doc to support manage guest disks
Guest disks: Update api definition and error reporting
fix: store distro and version information when creating vm
Guest disks: Choose proper bus for device
fix: Change check path function naming
Multiple pep8 fixes
Guest disks: Update testcase
docs/API.md | 10 +++---
src/kimchi/API.json | 24 ++++++++-----
src/kimchi/i18n.py | 27 ++++++++-------
src/kimchi/mockmodel.py | 18 +++++-----
src/kimchi/model/vms.py | 23 +++++++------
src/kimchi/model/vmstorages.py | 78 +++++++++++++++++++++++++++---------------
tests/test_model.py | 62 +++++++++++++++++++++++++++++++++
7 files changed, 170 insertions(+), 72 deletions(-)
--
1.8.3.2