Project

General

Profile

Actions

Bug #9807

closed

When in changes only mode, with no heartbeat, 'rudder agent run' outputs 'error: Rudder agent was interrupted during execution by a fatal error.'

Added by Alexis Mousset over 7 years ago. Updated almost 2 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:
Very Small
Priority:
0
Name check:
Fix check:
Regression:

Description

In the case where an agent is in changes only mode, but does output some messages (repaired, errors, or just the heartbeat), the output from "rudder agent run" is fine.

However, is the agent isn't due to send a heartbeat, and there a re no repaired/error messages, there is exactly 0 lines of output from the agent run. In this case, 'rudder agent run' outputs an error saying "error: Rudder agent was interrupted during execution by a fatal error."

This is because the reports.awk script looks for the "end run" message, but never finds it.

We should detect the reporting mode and use this in the awk script to check if we're in changes only mode, and output an info message instead that says something like 'This agent is in changes only mode - no components caused repairs or errors, so no output statistics can be reported. Run with -i to see log messages.'


Subtasks 2 (0 open2 closed)

Bug #11088: Backport "rudder.json" system variable files to 3.1ReleasedVincent MEMBRÉActions
Bug #11316: syntax error in lib common.shReleasedNicolas CHARLESActions

Related issues 4 (0 open4 closed)

Related to Rudder - Bug #10751: Add a warn message when agent run is incompleteReleasedBenoît PECCATTEActions
Related to Rudder - Architecture #11085: Adapt CLI to accept new end run formatReleasedNicolas CHARLESActions
Blocked by Rudder - Bug #10649: 'rudder agent info' should report compliance mode (full-compliance / changes-only / reports-disabled)ReleasedNicolas CHARLESActions
Blocks Rudder - Bug #11285: When running "rudder agent inventory", all other reports are missing on the serverReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF