Project

General

Profile

Actions

Bug #10801

closed

With "rudder agent run", nothing is logged in /var/rudder/cfengine-community/outputs/

Bug #10801: With "rudder agent run", nothing is logged in /var/rudder/cfengine-community/outputs/

Added by François ARMAND over 8 years ago. Updated almost 8 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
28
Name check:
Fix check:
Regression:

Description

Because it's cf-execd that does the logging. But we REALLY want to know when the user run the agent by hand, or when it is "rudder agent check".
Oh, and it would be good to have the source of the run exec in syslog (we have something for rudder agent check, but not for rudder agent run):

/var/log/syslog for 'rudder agent check'

May 24 16:45:01 agent1 CRON[7260]: (root) CMD (/opt/rudder/bin/rudder agent check >/dev/null)
May 24 16:45:01 agent1 CRON[7261]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
May 24 16:47:20 agent1 rudder[8044]: CFEngine(agent) rudder R: @@Common@@log_info@@hasPolicyServer-root@@common-root@@1@@common@@StartRun@@2017-05-24 16:47:19+00:00##8b099c38-5d93-4524-bb3e-bd28600c4c59@#Start execution with config [20170524-163121-feae8d01]
.....

/var/log/syslog for 'rudder agent run':

May 24 16:58:56 agent1 rudder[10266]: CFEngine(agent) rudder R: @@Common@@log_info@@hasPolicyServer-root@@common-root@@1@@common@@StartRun@@2017-05-24 16:58:55+00:00##8b099c38-5d93-4524-bb3e-bd28600c4c59@#Start execution with config [20170524-163121-feae8d01]
May 24 16:58:56 agent1 rudder[10266]: CFEngine(agent) rudder R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@1@@Update@@None@@2017-05-24 16:58:55+00:00##8b099c38-5d93-4524-bb3e-bd28600c4c59@#Policy, tools and configuration library are already up to date. No action required.
May 24 16:58:56 agent1 rudder[10266]: CFEngine(agent) rudder R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@1@@ncf Initialization@@None@@2017-05-24 16:58:55+00:00##8b099c38-5d93-4524-bb3e-bd28600c4c59@#Configuration library initialization was correct
M

Subtasks 4 (0 open4 closed)

Bug #12135: hostname is incorrect on log file namesReleasedVincent MEMBRÉActions
Bug #12143: syntax error in hostname computation in rudder agent libReleasedFrançois ARMANDActions
Architecture #12152: Hostname command should be in a function in common.shReleasedAlexis MoussetActions
Bug #12140: agent logs should be only readable by rootReleasedNicolas CHARLESActions

Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #10786: With "rudder agent run", nothing is log in /var/rudder/cfengine-community/outputs/RejectedActions

Updated by François ARMAND over 8 years ago Actions #1

  • Subject changed from With "rudder agent run", nothing is log in /var/rudder/cfengine-community/outputs/ to With "rudder agent run", nothing is logged in /var/rudder/cfengine-community/outputs/
  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 17

Updated by François ARMAND over 8 years ago Actions #2

  • Has duplicate Bug #10786: With "rudder agent run", nothing is log in /var/rudder/cfengine-community/outputs/ added

Updated by Vincent MEMBRÉ over 8 years ago Actions #3

  • Target version changed from 3.1.21 to 3.1.22

Updated by Benoît PECCATTE over 8 years ago Actions #4

  • Priority changed from 17 to 32

Updated by Vincent MEMBRÉ over 8 years ago Actions #5

  • Target version changed from 3.1.22 to 3.1.23

Updated by Vincent MEMBRÉ over 8 years ago Actions #6

  • Target version changed from 3.1.23 to 3.1.24
  • Priority changed from 32 to 31

Updated by Vincent MEMBRÉ about 8 years ago Actions #7

  • Target version changed from 3.1.24 to 3.1.25
  • Priority changed from 31 to 30

Updated by Vincent MEMBRÉ about 8 years ago Actions #8

  • Target version changed from 3.1.25 to 387

Updated by Vincent MEMBRÉ almost 8 years ago Actions #9

  • Target version changed from 387 to 4.1.10

Updated by Benoît PECCATTE almost 8 years ago Actions #10

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
  • Priority changed from 30 to 29

Updated by Benoît PECCATTE almost 8 years ago Actions #11

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/154

Updated by Rudder Quality Assistant almost 8 years ago Actions #12

  • Assignee changed from Alexis Mousset to Benoît PECCATTE

Updated by Benoît PECCATTE almost 8 years ago Actions #13

  • Status changed from Pending technical review to Pending release

Updated by Vincent MEMBRÉ almost 8 years ago Actions #14

  • Status changed from Pending release to Released
  • Priority changed from 29 to 28

This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.

Actions

Also available in: PDF Atom