bhouse-nexthop opened a new pull request, #14758:
URL: https://github.com/apache/cloudstack/pull/14758

   ### 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.` |
   
   - Only the error text changes, and only when the source host is KVM. What 
can be migrated stays the same.
   - Other hypervisors keep the old message.
   - Related: #14426 (draft, `main`) adds KVM live migration for RBD and other 
pool types. Once it is merged forward, this message no longer shows up for the 
cases it covers.
   
   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)
   - [x] 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
   - [x] 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`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to