Fix migrateVMwithVolumes API in case of multiple volumes on VMware#4480
Conversation
…en only volume is tried to migrate along with VM. Problem: When migrateVMwithVolumes API is tried on a VM with two volumes to migrate to a different host and tried to migrate only one volume, Cloudstack migrates both the Volumes but then marks only one of them migrated. This makes volume inaccessible due to inconsitency in path of volume in cloudstack and vsphere Solution: Set the target datastore in relocate spec properly for each volume
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@harikrishna-patnala is this a vmware only issue? |
|
@DaanHoogland This is vmware only issue and is not specific to any storage type. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2406 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-3218)
|
Description
Problem:
When migrateVMwithVolumes API is tried on a VM with two volumes to migrate to a different host and tried to migrate only one volume, Cloudstack migrates both the Volumes but then marks only one of them migrated. This makes volume inaccessible due to inconsitency in path of volume in cloudstack and vsphere
Solution:
Set the target datastore in relocate spec properly for each volume
Fixes #4421
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Test cases covered (all the cases are checked at vSphere level also)
Setup has two clusters C1 and C2
Initial VM state:
VM1 having 3 volumes on a host in Cluster C1
root volume : vVols-C1 primary storage
data disk1 : NFS2-C1 primary storage
data disk2 : vVols-C1 primary storage
root volume : NFS1-C1 primary storage
data disk1 : NFS2-C1 primary storage
data disk2 : vVols-C1 primary storage
root volume : NFS1-C1 primary storage
data disk1 : NFS1-C1 primary storage
data disk2 : vVols-C1 primary storage
root volume : NFS1-C2 primary storage
data disk1 : VMFS6-C2 primary storage
data disk2 : NFS2-C2 primary storage