insights-core
insights-core copied to clipboard
Timer not activated in kickstart environment (default Red Hat Satellite template)
Hello, Red Hat Satellite (6.13) ships some default templates to register the InsightsClient during Kickstart deployments of VMs. It runs a simple insights-client --register as last step of the deployment, the registration works, but the timer (unit file) is not activated and fails with "No loaded timers found"
I assume that this is an issue of the chrooted environment of the kickstart installation, where the systemctl commands do not work properly in the installation-context.
enabling the timer manually in a second kickstart step, works - since the "enable" command works also in the kickstarter environment. insights-client --register systemctl enable insights-client.timer
Maybe a check for chroot, in the systemctl wrapper could be a solution. https://github.com/RedHatInsights/insights-core/blob/13592d99af5161bf7c2bd9326b84c707b04458ec/insights/client/schedule.py#L56
Please let me know if this should be fixed in the RH Satellite templates instead.
Best Klaus