As far as I understood the libvirt doc --postcopy-after-precopy isn't supported
at all without a --postcopy.
I haven't thought on --live yet.
>From the man page:
"--postcopy enables post-copy logic in migration, but does not actually start
post-copy, i.e., migration is started in pre-copy mode. Once migration is
running, the user may switch to post-copy using the migrate-postcopy command
sent from another virsh instance or use --postcopy-after-precopy along with
--postcopy to let libvirt automatically switch to post-copy after the first
pass of pre-copy is finished."
That would mean just having "--postcopy-after-precopy" means switch to postcopy
logic after first pass without having postcopy logic enabled which is doomed to
fail.
And it seems specifying --postcopy-after-precopy without --postcopy just
implies the second which is fine.
I quickly gave dropping --live from my commandline a try and I must say
most of this works for me just nice:
These are the working postcopy migrations:
1. this is my preferred commandline and it works just fine
# virsh migrate --live --postcopy --postcopy-after-precopy kvmguest-yakkety
qemu+ssh://10.0.4.243/system
2. works, but I had no time to switch on the fly with migrate-postcopy from
another shell
# virsh migrate --live --postcopy kvmguest-yakkety qemu+ssh://10.0.4.243/system
3. Seems to imply postcopy as it works just fine
virsh migrate --live --postcopy-after-precopy kvmguest-yakkety
qemu+ssh://10.0.4.243/system
4. Note that I wonder what that does exactly, but it works :-)
# virsh migrate --postcopy-after-precopy kvmguest-yakkety
qemu+ssh://10.0.4.243/system
5. The only one that fails, but that gracefully - so I wouldn't consider it a
bug is:
# virsh migrate --postcopy kvmguest-yakkety qemu+ssh://10.0.4.243/system
error: argument unsupported: post-copy migration is not supported with non-live
or paused migration
Are you on the latest qemu/libvirt of yakkety?
Are the issues or patches you reported known to be architecture specific?
** Changed in: libvirt (Ubuntu)
Status: New => Incomplete
** Changed in: libvirt (Ubuntu)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1620906
Title:
[Ubuntu1610][Libvirt] Postcopy migration with --postcopy-after-precopy
option is not working as expected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1620906/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs