Bug #22857
openService enabled test doesn't seem to work for service iptables on Debian 11
Description
Hello,
Both methods : “Service enabled at boot” and “Service action” with the “is-enabled” action seem to return “success” for service “iptables” (which loads iptables rules previously saved into /etc/iptables) on Debian 11, even though the service has been manually disabled.
After disabling the service and rebooting the machine, iptables rules will not be restored (which is expected), but Rudder still believes the service is enabled.
root@lab_test_1_agent1:/# systemctl disable iptables
Removed
root@lab_test_1_agent1:/# rudder agent run -I
2023-06-08T08:33:49+00:00 R: [INFO] Executing is-enabled on iptables using the systemctl method
A| compliant iptables_basic Enable iptables service iptables Ensure service iptables is enabled at boot was correct
Please also see attached image and relevant parts of a Rudder agent run log.
Files