[Kimchi-devel] [PATCH 0/4] Live migration backend: additional features

dhbarboza82 at gmail.com dhbarboza82 at gmail.com
Mon Nov 16 23:04:43 UTC 2015


From: Daniel Henrique Barboza <dhbarboza82 at gmail.com>

*** REQUIRES THE FOLLOWING PATCH TO APPLY ***
'Live migration backend: non-shared storage VM migration'

This patchset implements the remaining features of the
live migration backend to be shipped in Kimchi 2.0:

- password-less root setup: if provided with a user/password that
has SUDO ALL access in the remote host, the backend will
set the password-less environment automatically. 
    
- added same remote hypervisor verification
    
- added same remote architecture verification
    
- (ppc64 only): if applicable, verify subcores-per-core


This is the usage after this patchset:

- migrating a VM without any credentials: if the password
less root login isn't set, it will simply abort the operation:

$ curl -k -u user  -H "Content-Type: application/json" -H "Accept: application/json" "https://localhost:8001/plugins/kimchi/vms/<vm_name>/migrate"  -X POST -d '{"remote_host":"a_remote_host" }'


- migrating a vm with credentials: same thing as above,
but will set up the password less root login if it's not
set yet:

$ curl -k -u root  -H "Content-Type: application/json" -H "Accept: application/json" "https://localhost:8001/plugins/kimchi/vms/<vm_name>/migrate"  -X POST -d '{"remote_host":"a_remote_host", "user":"a_sudoall_user", "password":"passwd_of_user" }'

Note that 'sudoall_user' can be the root of the remote host. 


*** NOTE ***
First patch is a change in WoK necessary to make the
'user' and 'password' fields optional.


Daniel Henrique Barboza (4):
  WoK: control/base.py: _generate_action_handler_base changes
  Live migration: new features changes in docs/API/i18n
  Live migration: model changes for the new features
  Live migration: unit tests for the new features

 src/wok/control/base.py                            |   5 +-
 src/wok/plugins/kimchi/API.json                    |   6 +
 src/wok/plugins/kimchi/control/vms.py              |   3 +-
 src/wok/plugins/kimchi/docs/API.md                 |   3 +-
 src/wok/plugins/kimchi/docs/README.md              |   6 +-
 src/wok/plugins/kimchi/i18n.py                     |   8 +
 src/wok/plugins/kimchi/model/vms.py                | 177 +++++++++++++++++++--
 src/wok/plugins/kimchi/tests/test_livemigration.py |  81 +++++++++-
 8 files changed, 270 insertions(+), 19 deletions(-)

-- 
2.4.3




More information about the Kimchi-devel mailing list