Hi,
This is the output when I migrate a VM:
➜ ~ curl -k -u root -H "Content-Type: application/json" -H "Accept:
application/json"
"https://localhost:8001/plugins/kimchi/vms/ubuntu-live/migrate" -X POST -d
'{"remote_host":"10.10.71.37"}'
{
"status":"running",
"message":"starting a migration",
"id":"4",
"target_uri":"/vms/ubuntu-live/migrate"
}
The problem was that the data object was sending an empty username and password even if
the input fields were empty, like this:
{"remote_host":"10.10.71.37","user":"","password":""}
.
I fixed the JS and now it closes the modal window (which means the post request is being
sent now) but it throws the following error:
"Unexpected exception: KCHVM0061E: Unable to create file
/var/lib/libvirt/ubuntu-14.04.3-server-i386 (1).iso at 10.10.71.37 using user
root."
I believe this is because I'm running out of memory and capacity on my server.
I did a quick fix in the form validation and in the JS and I'm sending a v4 now.
Thanks,
Samuel
-----Original Message-----
From: kimchi-devel-bounces(a)ovirt.org [mailto:kimchi-devel-bounces@ovirt.org] On Behalf Of
Daniel Henrique Barboza
Sent: quarta-feira, 2 de dezembro de 2015 16:15
To: kimchi-devel(a)ovirt.org
Subject: Re: [Kimchi-devel] [PATCH 0/2] Live Migration UI v3
The look of the dialog is exactly like I imagined. However I couldn't migrate using
the dialog.
The button turns to 'Migrating...' and the dialog stood there for minutes until I
gave up. Using the backend I can verify that the migration is possible using the same VM
and host:
$ curl -k -u root -H "Content-Type: application/json" -H "Accept:
application/json"
"https://localhost:8001/plugins/kimchi/vms/00-migrate-test/migrate" -X POST -d
'{"remote_host":"a_valid_private_remote_host"}'
I advise to try to simulate the live migration test scenario to develop/test this
feature.
You need two hosts running the same libvirt version. I believe you can do it with VMs with
nested KVM enabled.
Let me know if you need any help,
Daniel
On 12/02/2015 02:09 PM, sguimaraes943(a)gmail.com wrote:
From: samhenri <samuel.guimaraes(a)eldorado.org.br>
This patch addes Live Migration functionality to the new-ui.
I'm attaching Socorro initial commit because I had to rebase it with the new-ui in
Guests page.
v1 - "Delete this VM when the migration is completed" checkbox not
working
v2 - Added support for checkbox but somehow Live Migration window was hanging instead of
displaying error messages.
v3 - Fixed problem above and rebased both patches to Kimchi submodule.
Socorro Stoppler (1):
Initial checkin for live migration UI support
samhenri (1):
Fixing Live Migration for the new-ui Guests tab
ui/js/src/kimchi.api.js | 3 +-
ui/js/src/kimchi.guest_livemigration.js | 113 ++++++++++++++++++++++++++++++++
ui/js/src/kimchi.guest_main.js | 82 +++++++++++++++++++++--
ui/pages/guest-migration.html.tmpl | 67 +++++++++++++++++++
ui/pages/guest.html.tmpl | 7 +-
ui/pages/guests.html.tmpl | 4 +-
ui/pages/i18n.json.tmpl | 2 +
7 files changed, 266 insertions(+), 12 deletions(-)
create mode 100644 ui/js/src/kimchi.guest_livemigration.js
create mode 100644 ui/pages/guest-migration.html.tmpl
_______________________________________________
Kimchi-devel mailing list
Kimchi-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel