-
Notifications
You must be signed in to change notification settings - Fork 1.3k
refactor: migrate vm with storage #5030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
sureshanaparti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM
| } | ||
|
|
||
| // Check that Vm does not have VM Snapshots | ||
| if (_vmSnapshotDao.findByVm(vmId).size() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could assign the result of the method to a var and use CollectionUtils to validate it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I've did not test it though
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?