Fix for VMware VM migration with volume in local storage - #6483
Conversation
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
1 similar comment
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
be57f6a to
a1cbe0f
Compare
|
Thanks @harikrishna-patnala for the bugfix PR, should this be raised for 4.17 branch? |
|
UI build: ✔️ |
|
UI build: ✖️ |
a1cbe0f to
50ca91a
Compare
Yes @rohityadavcloud , changed the base branch to 4.17. Thanks |
shwstppr
left a comment
There was a problem hiding this comment.
code lgtm, one minor comment
| for (Map.Entry<Volume, StoragePool> entry : volumeToPool.entrySet()) { | ||
| Volume volume = entry.getKey(); | ||
| StoragePool pool = entry.getValue(); | ||
| if (volume.getVolumeType().equals(Volume.Type.ROOT) && pool.isLocal()) { | ||
| List<StoragePoolHostVO> storagePoolHostVOs = storagePoolHostDao.listByPoolId(pool.getId()); | ||
| StoragePoolHostVO storagePoolHostVO = storagePoolHostVOs.get(0); | ||
| HostVO hostVO = _hostDao.findById(storagePoolHostVO.getHostId()); | ||
| hostGuidInTargetCluster = hostVO.getGuid(); | ||
| } | ||
| } |
There was a problem hiding this comment.
@harikrishna-patnala do we need to continue traversing through all entries, we can return the first found?
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3626 |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 8 |
|
Addressed the review comments @sureshanaparti, please review |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
please have a look at those @harikrishna-patnala , they make sense. |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
Found UI changes, kicking a new UI QA build |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3663 |
|
SonarCloud Quality Gate failed. |
| private String getTargetHostGuid(StoragePool targetLocalPoolForVM, Long destClusterId, boolean isInterClusterMigration) { | ||
| String targetHostGuid = null; | ||
| if (targetLocalPoolForVM != null) { | ||
| // Get the target host for local storage migration |
There was a problem hiding this comment.
😁 this comment says kind of exactly what the code line below says as well. not sure we need it, but hey ...
|
@blueorangutan test centos7 vmware-67u3 |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-4409)
|
|
Merging this based on the approvals, and test results. |








Description
This PR fixes issue #6270 where VMmigration along with volumes API fails in case of local storage in VMware.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?