Project

General

Profile

Bug #11303

rudder service and thus cf-execd is never restarted / ensure running

Added by François ARMAND 4 months ago. Updated 5 days ago.

Status:
Released
Priority:
N/A
Category:
Initial promises & sys tech
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
96
Tags: Sponsored

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.

Associated revisions

Revision 6fc2de29
Added by Nicolas CHARLES about 2 months ago

Fixes #11303: rudder service and thus cf-execd is never restarted / ensure running

History

#2 Updated by François ARMAND 4 months 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.

#3 Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 4.1.7 to 4.1.8

#4 Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 4.1.8 to 4.1.9
  • Priority changed from 80 to 79

#5 Updated by Benoît PECCATTE about 2 months ago

The script currently runs cf-agent without parameters.

We need to run "rudder agent stop" then "rudder agent start"

#6 Updated by Nicolas CHARLES about 2 months ago

  • Status changed from New to In progress

#7 Updated by Nicolas CHARLES about 2 months 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

#8 Updated by Nicolas CHARLES about 2 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ 5 days 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.

Also available in: Atom PDF