vm: log verification results for dirty_* options - #880
dwivedipranav-dev wants to merge 1 commit into
Conversation
_dirty_option() compared current vs expected values during tuned-adm verify but never called _verify_value(), so mismatches failed silently with no ERROR in /var/log/tuned/tuned.log. Resolves: RHEL-212716 Signed-off-by: Pranav Dwivedi <dwivedipranav2021@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe VM plugin replaces direct value comparison in ChangesVM option verification
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The change makes dirty_* verification mismatches appear in the verification log without altering verification outcomes; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks, LGTM. The CentOS 7 failure is unrelated. It will go into TuneD 2.29.0. |
|
Dear @yarda Thanks for the review. I’ll treat the CentOS 7 failure as unrelated. Happy to make any follow-up changes if you need anything else from my side. |
|
Hello @yarda Any update on this PR please |
|
@yarda any update on the PR please ? |
|
@yarda hi any update please ? |
1 similar comment
|
@yarda hi any update please ? |
Summary
tuned-adm verifycan fail when[vm]dirty_* options do not match the running sysctls, but_dirty_option()never logged the mismatch._verify_value()so/var/log/tuned/tuned.logcontainsverify: failed:/verify: passed:like other plugins.Resolves: RHEL-212716
Test plan
throughput-performanceand setsvm.dirty_bytes/vm.dirty_background_bytesunder[sysctl]without overriding the parent[vm]ratios.tuned-adm verifystill fails, and the log now hasverify: failed:fordirty_ratio/dirty_background_ratio.[vm] dirty_ratio=0anddirty_background_ratio=0, then confirm verify succeeds and the log hasverify: passed:.