Project

General

Profile

Actions

Bug #16012

closed

Bug #14559: Invalid cron file put by packaging

error at run of rudder-agent once it's bootstrapped (and invalid cron) on Debian 9

Added by Nicolas CHARLES about 5 years ago. Updated about 5 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

E| compliant     Common                    Security parameters                          The internal environment security is acceptable
   error: Template file '/var/rudder/cfengine-community/inputs/common/cron/rudder-agent-community-cron' could not be opened for reading
   error: Method 'setup_cronjob' failed in some repairs
E| compliant     Common                    CRON Daemon                                  Cron daemon status was correct

the file indeed doesn't exists (but rudder-agent-nova-cron does exist)
and the cron file set by packaging is invalid

# cat /etc/cron.d/rudder-agent 
# Cron file for Rudder
#
# Will manually run cf-agent in case cf-execd is no longer running. cf-agent will fire up a new cf-execd.
#
# To temporarily avoid this behaviour, run 'rudder agent disable'

{{#classes.slackware}}
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/rudder/bin/rudder agent check -q >> /var/log/rudder/agent-check/check.log 2>&1
{{/classes.slackware}}
{{^classes.slackware}}
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /opt/rudder/bin/rudder agent check -q >> /var/log/rudder/agent-check/check.log 2>&1
{{/classes.slackware}}
Actions #1

Updated by Nicolas CHARLES about 5 years ago

  • Category changed from System techniques to Packaging

moving the ticket to packaging, as the code generating the inital promises looks ok

Actions #2

Updated by Nicolas CHARLES about 5 years ago

cron creation is

echo ""# Cron file for Rudder # # Will manually run cf-agent in case cf-execd is no longer running. cf-agent will fire up a new cf-execd. # # To temporarily avoid this behaviour, run 'rudder agent disable'   0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /opt/rudder/bin/rudder agent check -q >> /var/log/rudder/agent-check/check.log 2>&1"" > initial-promises/node-server/common/cron/rudder-agent-community-cron
# Cron file for Rudder

Actions #3

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #4

Updated by Nicolas CHARLES about 5 years ago

  • Category deleted (Packaging)
  • Target version deleted (6.0.0~beta1)
  • Name check deleted (To do)
Actions #5

Updated by Nicolas CHARLES about 5 years ago

  • Target version set to 5.0.15

retargetting to 5.0, linked to #14559

Actions #6

Updated by Nicolas CHARLES about 5 years ago

  • Parent task set to #14559
Actions #7

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2125
Actions #8

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Félix DALLIDET about 5 years ago

  • Category set to Packaging
Actions #10

Updated by Vincent MEMBRÉ about 5 years ago

  • Name check set to To do
Actions #11

Updated by Alexis Mousset about 5 years ago

  • Name check changed from To do to Reviewed
Actions #12

Updated by Alexis Mousset about 5 years ago

  • Fix check changed from To do to Checked
Actions #13

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.15 which was released today.

Actions

Also available in: Atom PDF