Bug #11303
closedrudder service and thus cf-execd is never restarted / ensure running
Description
In 4.1, we removed the check that cf-execd was running at least/at most a number of time because it used to cause problems with containers.
But we now don't check anymore that the rudder service is running at all, so it means that if cf-execd is stopped (for example, because the rudder service is not started at boot), it is never restarted.
Rudder agent will still run because of /etc/cron.d/rudder-agent, but rudder agent health will report problems (no outputs stored in CFEngine output directory), and probes checking for cf-execd status will be in error.
Finally, we need to check that rudder (and not cf-execd) service is running to well behave with systemd.
A workaround can be to create a technique "ensure service running" for rudder service and deploy it everywhere.
Updated by François ARMAND over 7 years ago
- Assignee set to Nicolas CHARLES
- Effort required set to Small
- Priority changed from 77 to 80
This is even worsen in the case where agent schedule is NOT 5 minutes, because the cron actually runs every 5 minutes. Before that bug, it would means that we add at most one run too many. Not anymore.
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.1.7 to 4.1.8
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.1.8 to 4.1.9
- Priority changed from 80 to 79
Updated by Benoît PECCATTE about 7 years ago
The script currently runs cf-agent without parameters.
We need to run "rudder agent stop" then "rudder agent start"
Updated by Nicolas CHARLES about 7 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES about 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-agent/pull/134
Updated by Nicolas CHARLES about 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-agent|6fc2de2971da49d161617166c232d3dd07c7dc4b.
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from Pending release to Released
- Priority changed from 79 to 96
This bug has been fixed in Rudder 4.1.9 and 4.2.3 which were released today.
- 4.1.9: Announce Changelog
- 4.2.3: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/