#796122 Fails live migration with storage copy

Package:
libvirt-daemon
Source:
libvirt
Description:
Virtualization daemon
Submitter:
Vladimir Kudrya
Date:
2017-10-13 09:27:05 UTC
Severity:
important
#796122#5
Date:
2015-06-09 00:05:51 UTC
From:
To:
Dear Maintainer, I can confirm that the archived bug #773503 is not fixed.
libvirtd still segfaults on live migration.
Last message in #773503 may give some clue.

Thank you!

#796122#10
Date:
2015-06-12 12:06:23 UTC
From:
To:
Did you test the patch in this bug report successfully?
 -- Guido

#796122#15
Date:
2015-06-12 16:07:19 UTC
From:
To:
Unfortunately, no. But I may get a window of opportunity in the next couple of days.
#796122#20
Date:
2015-06-13 11:11:39 UTC
From:
To:
The snapshot at:

http://honk.dyn.sigxcpu.org/projects/libvirt/snapshots/

is built for jessie and has these changes applied.
Cheers,
 -- Guido

#796122#25
Date:
2015-06-13 22:07:46 UTC
From:
To:
I wanted to test jessie version, but it fails to build (even without the patch):

FAIL: virsh-uriprecedence
=========================

  1) User config file                                             ... SKIP
     case skipped: must not be run as root
  1) LIBVIRT_DEFAULT_URI                                          ... FAILED
  2) VIRSH_DEFAULT_CONNECT_URI                                    ... FAILED
  3) Parameter                                                    ... FAILED

Any hints about where to look?

Guido, thanks, but your link became unaccessible.

#796122#30
Date:
2015-06-14 07:28:03 UTC
From:
To:
At libxml2 it has a bug in jessie. Use the debian/jessie branch from git
or my pre built snapshorts.

Please try again:

http://honk.sigxcpu.org/projects/libvirt/snapshots/

It surely works from here. Alternatively you can try:

http://honk.dyn.sigxcpu.org/projects/libvirt/snapshots/

which is one hop less and also reachable via ipv6.

Cheers,
 -- Guido

#796122#35
Date:
2015-06-14 12:19:14 UTC
From:
To:
OK, tried to migrate a VM to the host with libvirt version from your snapshot. It did not segfault, so the patch appears to be working.

But migration still fails (version difference?)

sudo virsh migrate --live --persistent --copy-storage-all --p2p --tunneled vm1 qemu+ssh://root@vhost2/system --verbose
Migration: [ 85 %]error: operation failed: migration job: unexpectedly failed

It seem to successfully copy block device, define VM, start it in paused state, but in the end this:

in qemu log:

Receiving block device images
#( there was a line 'Completed 99 %' here)
2015-06-14 11:47:07.566+0000: shutting down
2015-06-14T11:47:07.616812Z qemu-system-x86_64: load of migration failed: Input/output error

in journal:

libvirtd[55004]: error from service: TerminateMachine: No machine 'qemu-vm1' known

#796122#40
Date:
2015-06-17 07:44:31 UTC
From:
To:
Thanks for testing!

I have currently no idea what causes this. I will have to set up a test
system to check but this will take some time. Do you have a chance to
check if it works with the version in sid?

This one is ugly but harmless.
Cheers,
 -- Guido

#796122#45
Date:
2015-06-18 16:27:31 UTC
From:
To:
I could test migration from Jessie to Stretch host (I am low on extra machines now). If that would be a valid test.
#796122#50
Date:
2015-06-19 07:24:12 UTC
From:
To:
I'll try to set up to Jessie systems here. Will take some time though,
at least we don't crash the daemon anymore with that path
applied. Thanks a lot for testing!
Cheers,
 -- Guido

#796122#59
Date:
2017-09-07 15:08:41 UTC
From:
To:
I have two stretch machines and --live migration with active --copy-storage-all won't work. I don't know if this refers to this (old) but not closed bug. There's nothing segfaulting when I try to migrate, but the migration won't start and got stuck on both machines. When starting a live migration, f.i. this way

virsh migrate --live --desturi qemu+tls://host2/system --copy-storage-all --verbose --persistent --undefinesource test2

the command doesn't come back. On the host2, the machine got created in "pause" mode. This process never ends and can only be canceld by restarting libvirtd on host2.

#796122#68
Date:
2017-10-13 09:16:16 UTC
From:
To:
Just to get you informed:

I found adding --tunnelled and --p2p like this

virsh migrate --live --desturi qemu+ssh://host2/system --copy-storage-all --p2p --tunnelled --verbose --persistent --undefinesource test2

does the job for me and live migration to the second job starts and succeed...

Greetings

Micha