uservmjoindaoimpl: Set free memory to zero if greater than total memory#4571
Conversation
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2528 |
|
set to 0 for all kvm vm ? |
|
@weizhouapache It works fine on Xen and VMware. I haven't specifically changed it for KVM, but instead, set it to zero if the value returned for the internal free memory is greater than the total memory allocated to the VM |
@davidjumani since the value is incorrect for kvm vms, would it be better to set it to 0 for all kvm vms and mention it in the api response ? |
|
@weizhouapache I think that checking whether it is greater than the total memory and setting it to zero is a better option since it'll cover any case on other hypervisors if it were to happen. I'll change the docs to match |
|
Packaging result: ?centos7 ?debian. JID-5 |
|
Packaging result: ?centos7 ?debian. JID-6 |
|
Packaging result: ?centos7 ?debian. JID-7 |
|
Packaging result: ✔centos7 ✔centos8 ✖debian. JID-2559 |
|
@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. JID-2737 |
|
LGTM |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2752 |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2773 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3600)
|
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2874 |
2287b88 to
c74024b
Compare
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S] |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 96 |
|
@blueorangutan test |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests [S] |
|
[S] Trillian test result (tid-171)
|
|
@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 225 |
|
@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 226 |
|
@blueorangutan package |
|
@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 234 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-248)
|
Description
Fixes #4566
Sets
memoryintfreekbsto zero if it is greater thanmemorykbs. Caused by KVM returning the RSS memory of the process running the VM rather than the free memory inside the VMTypes of changes
How Has This Been Tested?
Before
After