[Ubuntu 20.04] Libvirtd will not pre-create images on the target host during migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
[Impact]
* On copy-storage-all migration for certain combinations one
expects the creation of the target storage (it is known to not
work in all cases)
* That regressed in Focal and was fixed later via upstream bug
https:/
* This is backporting the same changes to Focal's libvirt
[Test Plan]
1. .The same pool in the both source and target host:
# virsh pool-list
Name State Autostart
-------
default active yes
pool0 active yes
# virsh pool-dumpxml pool0
<pool type='dir'>
<name>
<uuid>
<capacity unit='bytes'
<allocation unit='bytes'
<available unit='bytes'
<source>
</source>
<target>
<path>
<permissions>
<
<
<
</permissions>
</target>
</pool>
2.Show the image of the guest:
# virsh domblklist ubuntu-
Target Source
-------
vda /opt/kvm/
3.Do storage migration:
# virsh migrate --live --persistent --copy-storage-all --verbose ubuntu-
error: Cannot access storage file '/opt/kvm/
[Where problems could occur]
* This is a series that also does some cleanups. It is upstream
and in EL8 for a while now and seems to be stable, but still
it changes plenty of code around qemu migration.
Therefore the area to look out for are all kind of migrations
done with qemu/kvm.
* I have considered to backport a smaller subset with less cleanups, but
it becomes a mess and will eventually be more error prone and less
reliable.
[Other Info]
* TBD: I need to check myself how that really looked in Bionic (out
of curiosity)
* @SRU Team - I'd appreciate if we could take this into -proposed early
but release it late.
Late in this case means the two weeks of my PTO and the time for me
to run the full regression tests. That extra exposure in -proposed
should further help to cover potential issues.
---
[System Info]
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Linux hv1 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[Package Info]
libvirt0:
Installed: 6.0.0-0ubuntu8.8
Candidate: 6.0.0-0ubuntu8.8
Version table:
*** 6.0.0-0ubuntu8.8 500
500 http://
100 /var/lib/
6.
500 http://
6.0.0-0ubuntu8 500
500 http://
Steps to Reproduce:
1.The same pool in the both source and target host:
# virsh pool-list
Name State Autostart
-------
default active yes
pool0 active yes
# virsh pool-dumpxml pool0
<pool type='dir'>
<name>
<uuid>
<capacity unit='bytes'
<allocation unit='bytes'
<available unit='bytes'
<source>
</source>
<target>
<path>
<permissions>
<
<
<
</permissions>
</target>
</pool>
2.Show the image of the guest:
# virsh domblklist ubuntu-
Target Source
-------
vda /opt/kvm/
3.Do storage migration:
# virsh migrate --live --persistent --copy-storage-all --verbose ubuntu-
error: Cannot access storage file '/opt/kvm/
Actual results:
As step 3,migration failed.
Expected results:
Migrate successfully with pre-creating the image on target pool.
Similar bug in rhel: https:/
Related branches
- Bryce Harrington (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
-
Diff: 666 lines (+590/-0)12 files modifieddebian/changelog (+7/-0)
debian/patches/series (+10/-0)
debian/patches/ubuntu/lp-1929202-Remove-checking-of-return-value-of-virHashNew.patch (+58/-0)
debian/patches/ubuntu/lp-1929202-conf-domain-Remove-checking-of-return-value-of-virHa.patch (+61/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieAddNBD-Exit-early-if-there-are-no.patch (+52/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieAddNBD-Fix-filling-of-capacity-wh.patch (+70/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieAddNBD-Move-monitor-call-out-of-t.patch (+61/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieAddNBD-Remove-ret-variable-and-cl.patch (+57/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieAddNBD-Use-glib-memory-allocators.patch (+43/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieAddNBD-Use-virHashNew-and-automat.patch (+53/-0)
debian/patches/ubuntu/lp-1929202-qemuMigrationCookieNBD-Extract-embedded-struct.patch (+48/-0)
debian/patches/ubuntu/lp-1929202-util-hash-Use-g_new0-for-allocating-hash-internals.patch (+70/-0)
tags: |
added: verification-done-focal removed: verification-needed-focal |
Status changed to 'Confirmed' because the bug affects multiple users.