Skip to content

feat: Improvements in clone_vm_hdd_image logic - #19

Merged
mchromin merged 1 commit into
intel:mainfrom
mlandowski-intel:rsync_improvements
Oct 13, 2026
Merged

mchromin merged 1 commit into
intel:mainfrom
mlandowski-intel:rsync_improvements

Conversation

@mlandowski-intel

Copy link
Copy Markdown
Contributor

Improvements in clone_vm_hdd_image for better execution time and robustness
-check file checksum only if destination file exists to avoid doing it when the check is moot
-use pre-generated md5 sums at source to save on time by avoiding recalculating them over network
-add verification if cloning progress can be safely reported
-convert input paths to connection-owned so all existence and checksum checks run on SUT

Copilot AI balanced review requested due to automatic review settings October 12, 2026 07:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Invalid or zero source-size output can still crash progress reporting.

1 open finding
What changed in this PR

Improves VM HDD cloning efficiency and remote-path correctness.

Changes:

  • Reuses source checksum files and skips matching clones.
  • Converts paths to connection-owned paths.
  • Adds safer progress reporting checks.
File Description
mfd_kvm/​hypervisor.py Updates cloning and checksum logic.
tests/​unit/​test_mfd_kvm/​test_hypervisor.py Expands cloning tests.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread mfd_kvm/hypervisor.py Resolved
mchromin
mchromin previously approved these changes Oct 12, 2026
Comment thread mfd_kvm/hypervisor.py Resolved
Comment thread mfd_kvm/hypervisor.py Resolved
adrianlasota
adrianlasota previously approved these changes Oct 13, 2026
Signed-off-by: Marek Landowski <marek.landowski@intel.com>
@mchromin
mchromin merged commit 7a6eaef into intel:main Oct 13, 2026
23 checks passed
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.

4 participants