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
Fixes #6621 - Update host memory stats #6622
Conversation
Found UI changes, kicking a new UI QA build |
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
UI build: ✔️ |
@Rubueno can you change the base branch of this PR to 4.17 and rebase your PR branch on 4.17? |
0df5c2d
to
59ca742
Compare
Found UI changes, kicking a new UI QA build |
|
Found UI changes, kicking a new UI QA build |
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Found UI changes, kicking a new UI QA build |
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Done as requested. Please let me know if there's something missing or done incorrect. |
UI build: ✔️ |
UI build: ✔️ |
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.
Change is looking good. I know this change is already running in production and fixes the problems reported.
Codecov Report
@@ Coverage Diff @@
## 4.17 #6622 +/- ##
============================================
- Coverage 5.86% 5.86% -0.01%
Complexity 3918 3918
============================================
Files 2451 2451
Lines 242238 242239 +1
Branches 37902 37902
============================================
Hits 14207 14207
- Misses 226461 226462 +1
Partials 1570 1570
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@blueorangutan package |
@rohityadavcloud a 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3954 |
Each time getMemStat() is called, a static value is returned. This value should instead be refreshed to return the actual memory used.
Rebased onto a missing commit. Please restart required workflows. |
Kudos, SonarCloud Quality Gate passed! |
@blueorangutan package |
@rohityadavcloud a 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3957 |
@blueorangutan test |
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Trillian test result (tid-4670)
|
Fixes apache#6621 Each time getMemStat() is called, a static value is returned. This value should instead be refreshed to return the actual memory used. Co-authored-by: Ruben Bosch <ruben.bosch@cldin.eu>
Co-authored-by: Marcus Sorensen <mls@apple.com>
Description
This PR ensures that when
getMemStat()
is called in KVM environments, the hosts actual used memory is returned, and not a static value that was retrieved when the cloudstack-agent was started.Types of changes
Feature/Enhancement Scale
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
We have applied this patch into our own environment, built the packages and installed them on the managers and hosts. We then migrated VMs between hosts and saw the host memory usage being updated, instead of remaining static until the cloudstack-agent was restarted.