Actions
Bug #20612
closedNo report from sysctl generic method
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
50
Name check:
To do
Fix check:
Checked
Regression:
Description
when the current value for vm.swappiness is 0 in sysctl.conf file and we want 10 at min, it doesn't report
in 7.0, but certainly on other version also
info copy_file Sysctl value vm.swappiness Set the string sysctl_var.getvm_swappiness to the output of '/sbin/sysctl -n vm.swappiness # Get value (expect 10, option min)' was correct 2022-01-20T10:56:02+00:00 R: The '/sbin/sysctl -n vm.swappiness # Get value (expect 10, option min)' command returned '0' info copy_file Sysctl value vm.swappiness Ensure line in format key=value in /etc/sysctl.d/99_rudder.conf was correct info copy_file Sysctl value vm.swappiness Ensure line in format key=value in /etc/sysctl.d/99_rudder.conf was correct 2022-01-20T10:56:02+00:00 rudder info: Executing 'no timeout' ... '/sbin/sysctl --system # Reload value vm.swappiness (expect 10, option min)' 2022-01-20T10:56:02+00:00 notice: Q: "...bin/sysctl --sy": * Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": kernel.yama.ptrace_scope = 0 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": * Applying /usr/lib/sysctl.d/50-coredump.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": * Applying /usr/lib/sysctl.d/50-default.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": kernel.sysrq = 16 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": kernel.core_uses_pid = 1 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": kernel.kptr_restrict = 1 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": net.ipv4.conf.all.rp_filter = 1 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": net.ipv4.conf.all.accept_source_route = 0 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": net.ipv4.conf.all.promote_secondaries = 1 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": net.core.default_qdisc = fq_codel 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": fs.protected_hardlinks = 1 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": fs.protected_symlinks = 1 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": * Applying /usr/lib/sysctl.d/50-libkcapi-optmem_max.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": net.core.optmem_max = 81920 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": * Applying /usr/lib/sysctl.d/50-pid-max.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": kernel.pid_max = 4194304 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": * Applying /etc/sysctl.d/99_rudder.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": vm.swappiness = 10 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": * Applying /etc/sysctl.conf ... 2022-01-20T10:56:02+00:00 Q: "...bin/sysctl --sy": vm.swappiness = 0 2022-01-20T10:56:02+00:00 rudder info: Last 22 quoted lines were generated by promiser '/sbin/sysctl --system # Reload value vm.swappiness (expect 10, option min)' 2022-01-20T10:56:02+00:00 rudder info: Completed execution of '/sbin/sysctl --system # Reload value vm.swappiness (expect 10, option min)' info copy_file Sysctl value vm.swappiness Execute the command /sbin/sysctl --system # Reload value vm.swappiness (expect 10, option min) was repaired info copy_file Sysctl value vm.swappiness Set the string sysctl_var.checkvm_swappiness to the output of '/sbin/sysctl -n vm.swappiness # Check value (expect 10, option min)' was correct 2022-01-20T10:56:02+00:00 R: The '/sbin/sysctl -n vm.swappiness # Check value (expect 10, option min)' command returned '0'
Actions