-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add the option to filter by host when retrieving of unregistered VMs #9925
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
Add the option to filter by host when retrieving of unregistered VMs #9925
Conversation
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@DaanHoogland is it possible to keep the results in memory for different list vmware vm calls, & provide some kind on pagination (maybe, using pagescount, page params) from UI? |
yes, this would be in a map with the caller session as key and would have to return after initial results return and start an async job to get the rest in batches. not a very trivial change. |
|
@sureshanaparti , I removed the needs-testing label as I don't think it is ready for testing yet. |
also, is it possible to support keyword based retrieval? if one knows the vm name in vmware, they can pass as keyword and can see in the result (this way results are also less, and can show up vms in the end of the original retrieval list) |
74c1ffa to
73a2156
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9925 +/- ##
============================================
+ Coverage 15.13% 15.16% +0.03%
- Complexity 11272 11305 +33
============================================
Files 5408 5411 +3
Lines 473955 473802 -153
Branches 57810 57805 -5
============================================
+ Hits 71725 71871 +146
+ Misses 394212 393897 -315
- Partials 8018 8034 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I am going to leave this out of scope. It requires some extra work that I do not know of yet. |
...s/vmware/src/main/java/org/apache/cloudstack/api/command/admin/zone/VmwarRequestReponse.java
Outdated
Show resolved
Hide resolved
.../hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
Show resolved
Hide resolved
.../hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
Show resolved
Hide resolved
.../hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
Show resolved
Hide resolved
vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/DatacenterMO.java
Show resolved
Hide resolved
vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/DatacenterMO.java
Outdated
Show resolved
Hide resolved
shwstppr
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.
@DaanHoogland this PR is missing any useful description so I'm not sure if I understood the change completely but based on the changes I think it might be missing some changes and will need testing.
- A lot many changes are unrelated to the issue and only refactoring, maybe worth specifying what is intended.
- With UI, I mentioned my concern - this may result in unnecessary retrieval of results
- New parameters are added to the API but their use is not clear.
- listVmwareDcVms API class should not be based on the BaseListCmd as with this change it may follow pageSize param but it still doesn't follow
pageparam which can be confusing during custom implementations
...rs/vmware/src/main/java/org/apache/cloudstack/api/command/admin/zone/ListVmwareDcVmsCmd.java
Show resolved
Hide resolved
...rs/vmware/src/main/java/org/apache/cloudstack/api/command/admin/zone/ListVmwareDcVmsCmd.java
Outdated
Show resolved
Hide resolved
a2cc2ed to
9f79d38
Compare
3dec825 to
3eb66bb
Compare
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12378 |
|
@blueorangutan test matrix |
|
@DaanHoogland a [SL] Trillian-Jenkins matrix job (EL8 mgmt + EL8 KVM, Ubuntu22 mgmt + Ubuntu22 KVM, EL8 mgmt + VMware 7.0u3, EL9 mgmt + XCP-ng 8.2 ) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12343)
|
|
[SF] Trillian test result (tid-12344)
|
|
[SF] Trillian test result (tid-12346)
|
|
@vladimirpetrov , can you approve this yet? |
vladimirpetrov
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.
LGTM based on manual testing.
…red VMs (apache#9925)" This reverts commit aa6c581.
…pache#9925) Co-authored-by: Nicolas Vazquez <[email protected]>
…red VMs (apache#9925)" (apache#10647) This reverts commit aa6c581.
Description
This PR allows to get unmanaged VMS for migrate to KVM per hosts to prevent timeouts rendering the UI useless for converting VMs.
Fixes: #9782
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
in an environment with KVM hosts and a vmware DC (defined in CloudStack or not)
How did you try to break this feature and the system with this change?