Skip to content

Say why a KVM live volume migration has no strategy - #14758

Open
bhouse-nexthop wants to merge 1 commit into
apache:4.22from
bhouse-nexthop:volume-live-migrate-clear-error
Open

bhouse-nexthop wants to merge 1 commit into
apache:4.22from
bhouse-nexthop:volume-live-migrate-clear-error

Conversation

@bhouse-nexthop

Copy link
Copy Markdown
Collaborator

Description

On KVM, migrateVirtualMachineWithVolume on a running VM with a volume on a pool type KVM can't live migrate (e.g. Ceph RBD) fails with Can't find strategy to move data. The message gives no reason and no next step.

Message
Before Can't find strategy to move data. Source Host: host1, Destination Host: host2, Volume UUIDs: <uuid>,<uuid>
After (KVM) KVM cannot live migrate the volumes of this running VM from host host1 to host host2 between these storage pools: <uuid> from ceph1 (RBD) to nfs1 (NetworkFilesystem), .... Stop the VM and migrate the volumes while it is stopped.

Fixes: #14757

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

How Has This Been Tested?

  • New DataMotionServiceImplTest: the KVM message, null or non-primary pool info, and the unchanged non-KVM message
  • KvmNonManagedStorageSystemDataMotionTest still passes

How did you try to break this feature and the system with this change?

  • Null pool type and a non-primary or null data store: falls back to "unknown" text, no NPE
  • Volumes are sorted so the message comes out the same every time from the HashMap

On KVM, migrateVirtualMachineWithVolume fails with "Can't find strategy to
move data" when a volume's pool type can't be live migrated (e.g. Ceph RBD).
The message gives no reason or next step.

- KVM source host, no data motion strategy: the error now lists each volume
  with its source and destination pool (name and type) and says to stop the
  VM and migrate the volumes while it is stopped
- other hypervisors: message unchanged
- nothing about what is allowed changes
- DataMotionServiceImplTest covers the KVM message, unknown pool types and
  the unchanged non-KVM message

Signed-off-by: Brad House <bhouse@nexthop.ai>
@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.32%. Comparing base (b56bbc2) to head (f5bc828).

Additional details and impacted files
@@            Coverage Diff            @@
##               4.22   #14758   +/-   ##
=========================================
  Coverage     18.32%   18.32%           
- Complexity    16644    16651    +7     
=========================================
  Files          5939     5939           
  Lines        537787   537804   +17     
  Branches      65932    65935    +3     
=========================================
+ Hits          98544    98550    +6     
- Misses       428033   428048   +15     
+ Partials      11210    11206    -4     
Flag Coverage Δ
uitests 4.08% <ø> (ø)
unittests 19.41% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant