refactor: migrate vm with storage#5030
Conversation
Refactors Boolean HypervisorCapabilitiesDao::isStorageMotionSupported to boolean HypervisorCapabilitiesDao::isStorageMotionSupported for simplifying callers. Refactors log messages. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
| } | ||
|
|
||
| // Check that Vm does not have VM Snapshots | ||
| if (_vmSnapshotDao.findByVm(vmId).size() > 0) { |
There was a problem hiding this comment.
We could assign the result of the method to a var and use CollectionUtils to validate it.
There was a problem hiding this comment.
VMSnapshotDao::findByVm will always return a non-null list, I don't see an issue with directly checking the list size here.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ centos7 ✔️ centos8 ✖️ debian. SL-JID 270 |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 294 |
|
Trillian test result (tid-1008)
|
|
@GutoVeronezi I resolved some of your comments on outdated code. Are all your questions/comments addressed (i.e. lgty?) |
| private static final ConfigKey<Boolean> VmDestroyForcestop = new ConfigKey<Boolean>("Advanced", Boolean.class, "vm.destroy.forcestop", "false", | ||
| "On destroy, force-stop takes this value ", true); | ||
|
|
||
| public static final List<HypervisorType> VM_STORAGEMIGRATION_SUPPORTING_HYPERVISORS = new ArrayList<>(Arrays.asList( |
There was a problem hiding this comment.
I think it would be better as VM_STORAGE_MIGRATION_SUPPORTING_HYPERVISORS.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 349 |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 385 |
|
@blueorangutan test matrix |
|
@rhtyd a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1153)
|
|
Trillian test result (tid-1151)
|
|
Trillian test result (tid-1152)
|
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✖️ debian. SL-JID 527 |
|
@blueorangutan test matrix |
|
@nvazquez a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1244)
|
|
Trillian test result (tid-1243)
|
Description
Refactors:
UserVmManagerImpl::migrateVirtualMachineWithVolumeBoolean HypervisorCapabilitiesDao::isStorageMotionSupportedtoboolean HypervisorCapabilitiesDao::isStorageMotionSupportedfor simplifying callers.StorageManager::isStoragePoolComplaintWithStoragePolicytoStorageManager::isStoragePoolCompliantWithStoragePolicyUpdate log messages.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?