------- Comment From [email protected] 2016-09-27 09:31 EDT-------
Posting the comment as public:

---

I tested the scenarios is latest Ubuntu1610 host with 4.8.0-17 kernel along 
with patch given by canonical
in comment #19

# uname -a
Linux powerkvm4-lp1 4.8.0-17-generic #19-Ubuntu SMP Sun Sep 25 06:35:40 UTC 
2016 ppc64le ppc64le ppc64le GNU/Linux

# dpkg --list | grep libvirt
ii  gir1.2-libvirt-glib-1.0:ppc64el    0.2.3-2                             
ppc64el      GObject introspection files for the libvirt-glib library
ii  gir1.2-libvirt-sandbox-1.0         0.5.1+git20151113-3                 
ppc64el      GObject introspection files for the libvirt-sandbox library
ii  libvirt-bin                        2.1.0-1ubuntu7~ppa1                 
ppc64el      programs for the libvirt library
ii  libvirt-clients                    2.1.0-1ubuntu7~ppa1                 
ppc64el      Programs for the libvirt library
ii  libvirt-daemon                     2.1.0-1ubuntu7~ppa1                 
ppc64el      Virtualization daemon
ii  libvirt-daemon-system              2.1.0-1ubuntu7~ppa1                 
ppc64el      Libvirt daemon configuration files
ii  libvirt-dev:ppc64el                2.1.0-1ubuntu7~ppa1                 
ppc64el      development files for the libvirt library
ii  libvirt-doc                        2.1.0-1ubuntu7~ppa1                 all  
        documentation for the libvirt library
ii  libvirt-glib-1.0-0:ppc64el         0.2.3-2                             
ppc64el      libvirt GLib and GObject mapping library
ii  libvirt-glib-1.0-dev:ppc64el       0.2.3-2                             
ppc64el      Development files for the libvirt-glib library
ii  libvirt-ocaml                      0.6.1.2-1build2                     
ppc64el      OCaml bindings for libvirt
ii  libvirt-ocaml-dev                  0.6.1.2-1build2                     
ppc64el      OCaml bindings for libvirt
ii  libvirt-sandbox-1.0-5              0.5.1+git20151113-3                 
ppc64el      Application sandbox toolkit shared library
ii  libvirt-sandbox-1.0-dev            0.5.1+git20151113-3                 
ppc64el      Development files for libvirt-sandbox library
ii  libvirt-sanlock                    2.1.0-1ubuntu7~ppa1                 
ppc64el      Sanlock plugin for virtlockd
ii  libvirt0:ppc64el                   2.1.0-1ubuntu7~ppa1                 
ppc64el      library for interfacing with different virtualization systems
ii  munin-libvirt-plugins              0.0.6-1                             all  
        Munin plugins using libvirt
ii  python-libvirt

Observation:

1. Issue is observed when migration is done twice

a. I migrated guest(Ubuntu1610) 1st time successfully,
# time virsh migrate avocado-vt-vm1 qemu+ssh://9.47.68.198/system --verbose 
--postcopy-after-precopy --postcopy --live
Migration: [100 %]

real    0m57.423s
user    0m0.056s
sys     0m0.012s

b. But when I tried for 2nd time
- Clean the guest in destination
- Start the guest in the source
- Perform migration using same migration command with guest(no workloads in 
guest) it din't end for 47min
so I killed it.

# time virsh migrate avocado-vt-vm1 qemu+ssh://9.47.70.201/system --verbose 
--postcopy-after-precopy --postcopy --live
Migration: [ 99 %]^CKilled

real    47m26.380s
user    0m0.380s
sys     0m0.508s

Attaching libvirt debug logs with it (libvirt_debug.7z)

I tried to reproduce the issue, libvirtd service can be restarted and same 
experiment can be tried again and issue
gets hit.

Also I observe VM in the destination is still in paused state at 99% as 
--postcopy-after-precopy should trigger
postcopy migration after first pass of pre-copy and VM should be running in 
destination. So it looks like
postcopy migration is not working in this case.

2. --postcopy and "virsh migrate-postcopy avocado-vt-vm1" working as expected, 
guest is running live in destination once
virsh migrate-postcopy avocado-vt-vm1 is given from another virsh instance

# time virsh migrate --live --postcopy avocado-vt-vm1 
qemu+ssh://9.47.68.198/system --verbose
Migration: [100 %]

real    0m58.125s
user    0m0.056s
sys     0m0.016s

3. Error message is not thrown as well as postcopy migration is not performed,
# virsh migrate --live --postcopy-after-precopy avocado-vt-vm1 
qemu+ssh://9.47.68.198/system

Expected - error message should be thrown if --postcopy flag is not used

4. Error message is not thrown as well as postcopy migration is not
performed,

# virsh migrate --postcopy-after-precopy avocado-vt-vm1
qemu+ssh://9.47.68.198/system

Expected - error message should be thrown if --live flag is not used

5. Fails gracefully with proper error,

# virsh migrate avocado-vt-vm1 qemu+ssh://9.47.68.198/system --verbose 
--postcopy-after-precopy --postcopy
error: argument unsupported: post-copy migration is not supported with non-live 
or paused migration

-- 
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

Reply via email to