Damans227 opened a new pull request, #14883:
URL: https://github.com/apache/cloudstack/pull/14883

   Fixes #14882
   
   On KVM, live migrating a volume off managed storage tells the user to use 
migrateVirtualMachineWithVolumes, which refuses the same move. This gives a 
message that says what works instead: detach the volume or stop the VM, then 
migrate. File based pools keep the existing message.
   
   ### Test:
   
   **Before:** from the FlashArray lab, the advice leads to a second failure.
   
       migrate volume livemigrate=true ...
       errorcode 431: KVM does not support volume live migration ... Use 
'migrateVirtualMachineWithVolumes' instead.
   
       migrate virtualmachinewithvolume ...
       errorcode 530: ... Migrating a volume online with KVM from managed 
storage is not currently supported.
   
   **After:** for a managed source pool the error is:
   
       Volume DATA-24 is on managed storage pool pure-fc-neg. Moving a volume 
off managed storage while its VM is running is not supported on KVM. Detach the 
volume or stop the VM, then migrate it.
   
   Added unit tests: a managed source pool gets the new message, an unmanaged 
one is unchanged.
   


-- 
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