Closed SSmallMonster closed 9 months ago
I think the snapshot being deleted should be the main reason for the failure, plus VMRestore gets marked successful very quickly after creation.The reason for the successful mark is that the target vm is not created, which always holds true in my environment.
I hope this information helps, let me know if you need anything else!
Thanks for submitting and digging through this!
I think the snapshot being deleted should be the main reason for the failure
Yep I think you're right, @fossedihelm was seeing the same in https://bugzilla.redhat.com/show_bug.cgi?id=2237418
@akalenyu @SSmallMonster Correct! I am working on a patch for it :) Thanks /assign
@akalenyu Thank you for your kind reply.
On another note, I noticed that StorageProfile
has a cloneStrategy configuration, which I set to csi-clone
, but it doesn't look like it's going through CSI Provisioner to create a clone data volume. I'm not sure if I'm missing something or misinterpreting it.
@akalenyu @SSmallMonster Correct! I am working on a patch for it :) Thanks /assign
That's great! Thanks!!
@akalenyu Thank you for your kind reply.
On another note, I noticed that
StorageProfile
has a cloneStrategy configuration, which I set tocsi-clone
, but it doesn't look like it's going through CSI Provisioner to create a clone data volume. I'm not sure if I'm missing something or misinterpreting it.
So VMClone (or other kubevirt APIs) are unaware of the StorageProfile API. This is only taken into account in context of import/upload/clone (CDI operations). Behind the curtains, VMClone relies on VMSnapshot/VMRestore which rely on VolumeSnapshots so csi clone will likely also not achieve the desired result
@akalenyu Thank you for your kind reply.
On another note, I noticed that
StorageProfile
has a cloneStrategy configuration, which I set tocsi-clone
, but it doesn't look like it's going through CSI Provisioner to create a clone data volume. I'm not sure if I'm missing something or misinterpreting it.So VMClone (or other kubevirt APIs) are unaware of the StorageProfile API. This is only taken into account in context of import/upload/clone (CDI operations).
Behind the curtains, VMClone relies on VMSnapshot/VMRestore which rely on VolumeSnapshots so csi clone will likely also not achieve the desired result
Got it.Thanks!
What happened: Cloning from one VM to another fails when using a data volume of type WaitForFirstConsumer as the VM's data volume.
What you expected to happen: Virtual machines can be successfully cloned.
How to reproduce it (as minimally and precisely as possible):
Additional context: The CSI Provisioner I'm using is local storage, which has the VOLUMEBINDINGMODE mode
WaitForFirstConsumer
.Here's some information on some resources that will hopefully help:
vm info:
pvc info:
storageclass info:
vmclone info:
vmrestore info:
Environment:
virtctl version
): N/Akubectl version
): N/Auname -a
):