System VMs in listHostsMetrics API#7871
Conversation
DaanHoogland
left a comment
There was a problem hiding this comment.
code looks good and good functional enhancement 👍 (not tested yet)
Codecov Report
@@ Coverage Diff @@
## main #7871 +/- ##
=========================================
Coverage 14.38% 14.39%
- Complexity 10074 10082 +8
=========================================
Files 2747 2747
Lines 258922 258944 +22
Branches 40318 40324 +6
=========================================
+ Hits 37246 37266 +20
+ Misses 216867 216863 -4
- Partials 4809 4815 +6
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@DaanHoogland a [SF] 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6799 |
|
@blueorangutan test |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7444)
|
|
tested ok |
Description
The
listHostsMetricsAPI returns the number of user VMs on the host. Although it doesn't return any data from the system VM instances on it.Due to this, the
systeminstancesfield was created in thelistHostsMetricsAPI, which returns how many system VMs are running on the host and how many system VMs the host has in total.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
I called the
listHostsMetricsAPI via CloudMonkey and thesysteminstancesfield was filled with the number of system VMs running on the host and the total of system VMs on the host.