[Kimchi-devel] [PATCH v4 0/7] Async VM Creation

Christy Perez christy at linux.vnet.ibm.com
Fri Apr 17 15:24:46 UTC 2015


If a guest has a large disk, and uses a filesystem that requires
preallocation, it can take several minutes to create a VM. During that
time, kimchi is tied up by the VM creation.

This patch changes the VMs Collection to be an AsyncCollection.

Another change required for this was to create a more granular way to
query tasks. Currently it is not possible (using the API) to query tasks
for the same collection or resource type that may have different operations.
For example, VM cloning is also an asynchronous operation. For the guests tab,
the UI was querying all running tasks and displaying them with the Cloning
label. This picked up VMs that were being created as well. For more information
about how the tasks can be queried, see the updated API doc and the UI change.

Christy Perez (7):
  Granular Task Queries: Backend
  Granular task query test updates
  Granular Task Queries: UI
  Create guests asynchronously: Backend
  Async vm creation test updates
  VMs Async Create: UI
  Translation update to add 'Creating'

 docs/API.md                        |  16 ++++++
 po/de_DE.po                        | 103 ++++++++++++++++++++-----------------
 po/en_US.po                        |  83 +++++++++++++++++-------------
 po/es_ES.po                        | 102 +++++++++++++++++++-----------------
 po/fr_FR.po                        | 102 +++++++++++++++++++-----------------
 po/it_IT.po                        | 102 +++++++++++++++++++-----------------
 po/ja_JP.po                        | 102 +++++++++++++++++++-----------------
 po/kimchi.pot                      |  84 +++++++++++++++++-------------
 po/ko_KR.po                        | 102 +++++++++++++++++++-----------------
 po/pt_BR.po                        | 102 +++++++++++++++++++-----------------
 po/ru_RU.po                        | 102 +++++++++++++++++++-----------------
 po/zh_CN.po                        | 102 +++++++++++++++++++-----------------
 po/zh_TW.po                        | 102 +++++++++++++++++++-----------------
 src/kimchi/control/vms.py          |   4 +-
 src/kimchi/mockmodel.py            |   7 +--
 src/kimchi/model/debugreports.py   |   4 +-
 src/kimchi/model/host.py           |   4 +-
 src/kimchi/model/storagepools.py   |   2 +-
 src/kimchi/model/storagevolumes.py |  12 +++--
 src/kimchi/model/vms.py            |  33 +++++++++---
 src/kimchi/model/vmsnapshots.py    |   5 +-
 tests/test_authorization.py        |  23 +++++----
 tests/test_mockmodel.py            |  12 +++--
 tests/test_model.py                |  60 ++++++++++++++-------
 tests/test_model_storagevolume.py  |   2 +-
 tests/test_rest.py                 |  77 ++++++++++++++++++++-------
 ui/css/theme-default/list.css      |  18 +++++++
 ui/js/src/kimchi.guest_main.js     |  29 +++++++++--
 ui/pages/guest.html.tmpl           |   3 ++
 29 files changed, 886 insertions(+), 613 deletions(-)

-- 
2.1.0




More information about the Kimchi-devel mailing list