[Kimchi-devel] [PATCH v3 0/5] Create VMs Asynchronously

Christy Perez christy at linux.vnet.ibm.com
Fri Mar 13 14:34:50 UTC 2015


ping

On 03/04/2015 03:50 PM, Christy Perez wrote:
> v3 Changes:
> Instead of adding a description key to the task, just
> append the action desciptor to the target_uri.
> 
> 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 (5):
>   Granular Task Queries: Backend
>   Granular task query test updates
>   Granular Task Queries: UI
>   Create guests asynchronously: Backend
>   Async vm creation test updates
> 
>  docs/API.md                        | 16 ++++++++
>  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/js/src/kimchi.guest_main.js     |  4 +-
>  15 files changed, 188 insertions(+), 77 deletions(-)
> 




More information about the Kimchi-devel mailing list