Skip to content

Conversation

@justinc1
Copy link
Collaborator

@justinc1 justinc1 commented Apr 26, 2023

The VirDomain//clone payload must include snapUUID. This required extengin VM class with snapshot_uuids field (and extending many existing unit tests).

Integration test for cloning replicated VM on destination cluster was added. This required adding sc_replication_dest_cluster_name to integration_config.yml.

I noticed vm_snapshot_info could include into output also unavailable attribute. VM snapshot cannot be used for cloning until it gets available. This could/should be done in another PR.

One more thing I'm not sure about, and want to ask (@domendobnikar ?). vm_clone called on VM demo-vm with no snapshot, on same cluster - it silently creates a VM snaphost, and this snapshot is then cloned to new VM demo-vm-clone-0. What happens if VM is modified (some data is written to disk etc), and we call vm_clone again to create demo-vm-clone-1 - is new disk data included for demo-vm-clone-1? Maybe we need to ask ScaleComputing about this.

@justinc1 justinc1 mentioned this pull request Apr 26, 2023
6 tasks
The VirDomain/<uuid>/clone payload must include snapUUID.
This required extengin VM class with snapshot_uuids field (and extending
many existing unit tests).

Integration test for cloning replicated VM on destination cluster
was added. This required adding sc_replication_dest_cluster_name to
integration_config.yml.

I noticed vm_snapshot_info could include into output also `unavailable`
attribute. VM snapshot cannot be used for clonning until it gets
available.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 force-pushed the clone_replicated_vm branch from 197f21c to f2863c3 Compare April 26, 2023 09:23
@PolonaM PolonaM removed their request for review May 5, 2023 08:15
@domendobnikar
Copy link
Collaborator

Copy link
Collaborator

@domendobnikar domendobnikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you. 👍

@domendobnikar domendobnikar merged commit 5147089 into main May 8, 2023
@domendobnikar domendobnikar deleted the clone_replicated_vm branch May 8, 2023 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants