You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a volume is copied to another storage pool, if the template does not exist in the destination storage pool yet, it should be copied. The API migrateVirtualMachineWithVolume already does it; however, when migrating the volume with migrateVolume (VM stopped), the template is not copied, which causes inconsistencies in the database and primary storage systems.
I tried reproducing the problem with the latest main, in an ubuntu+kvm environment, but wasn't able to.
Any missing template inconsistencies with migrateVirtualMachineWithVolume should be solved by #8911, since it standardizes always merging the backing file into the volume.
As for migrateVolume:
Deployed a VM, its volume on NFS primary storage. It went up with the backing file. I stopped the VM, migrated the volume to SMP primary storage and it resulted in a merged backing file.
scc@local:/mnt/pri-storage-smp$ qemu-img info 9eb27ca6-d721-45f0-a334-144e29377fc5
image: 9eb27ca6-d721-45f0-a334-144e29377fc5
file format: qcow2
virtual size: 8 GiB (8589934592 bytes)
disk size: 3.09 GiB
cluster_size: 65536
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
refcount bits: 16
corrupt: false
extended l2: false
Deployed another VM with a new template, its volume on NFS primary storage. It went up with the backing file. I stopped the VM, migrated the volume to another NFS primary storage and it resulted in a merged backing file.
scc@local:/mnt/a548af6a-abff-3541-8130-bfe19ff1cb7d$ qemu-img info 8daf78fe-202b-481d-93c9-aa1299dd43b9
image: 8daf78fe-202b-481d-93c9-aa1299dd43b9
file format: qcow2
virtual size: 8 GiB (8589934592 bytes)
disk size: 1.41 GiB
cluster_size: 65536
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
refcount bits: 16
corrupt: false
extended l2: false
Deployed another VM with yet another template, its volume on local storage. I stopped the VM, migrated the volume to another local storage and it resulted in a merged backing file. Started the VM back up and migrated it and its volume back to the first local storage. The VM ran normally, its volume without any mention of a backing file.
Deployed another VM with the same template as last test, its volume on local storage. I stopped the VM, migrated the volume to another local storage that already had the same template and it resulted in a merged backing file. Started the VM back up and migrated it and its volume back to the first local storage. The VM ran normally, its volume without any mention of a backing file.
ok @gpordeus , I am not sure if you can, but if so feel free to close the issue unless you feel more discussion is needed. We can then convert this ticket to a discussion.
Activity
DaanHoogland commentedon Dec 9, 2021
is this what you are fixing in #5758, @GutoVeronezi ? or do you mean that more improvement is needed after that?
GutoVeronezi commentedon Dec 9, 2021
@DaanHoogland it will need more improvement after that.
nvazquez commentedon Feb 4, 2022
Hi @GutoVeronezi are you working on this issue or planning to?
GutoVeronezi commentedon Feb 4, 2022
Hi, @nvazquez, I have other priorities at the moment, this issue is not in my plannings for now.
nvazquez commentedon Feb 4, 2022
Thanks for clarifying @GutoVeronezi
shwstppr commentedon Aug 18, 2022
Moving this to next milestone
35 remaining items
yadvr commentedon Apr 30, 2024
Is this fixed ?
DaanHoogland commentedon May 31, 2024
@gpordeus (cc @GutoVeronezi ) is work going on on this?
gp-santos commentedon Jun 11, 2024
@DaanHoogland @rohityadavcloud @GutoVeronezi
I tried reproducing the problem with the latest main, in an ubuntu+kvm environment, but wasn't able to.
Any missing template inconsistencies with
migrateVirtualMachineWithVolumeshould be solved by #8911, since it standardizes always merging the backing file into the volume.As for
migrateVolume:The local storage problem looks the same as #7942 and seem to have been solved by #7945.
DaanHoogland commentedon Jun 12, 2024
ok @gpordeus , I am not sure if you can, but if so feel free to close the issue unless you feel more discussion is needed. We can then convert this ticket to a discussion.