Project

General

Profile

Actions

Bug #10751

closed

Add a warn message when agent run is incomplete

Bug #10751: Add a warn message when agent run is incomplete

Added by Florian Heigl over 8 years ago. Updated about 7 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Small
Priority:
31
Name check:
Fix check:
Regression:

Description

Hi,

I'm not sure if this is the same error as anywhere else, but just to be safe:

If I get a specific bundle, I get most confusing output.

root@rudder:/var/rudder/configuration-repository/techniques/system# rudder agent run -b sendInventoryToCmdb
Rudder agent 4.1.1-jessie0 (CFEngine Core 3.10.0)
Node uuid: root
Start execution with config [20170517-121308-dc93beed]

M| State         Technique                 Component                 Key                Message
E| compliant     DistributePolicy          Send inventories to CMDB                     Incoming inventories were successfully added to Rudder
error    Rudder agent was interrupted during execution by a fatal error
         Run with -i to see log messages.

## Summary #####################################################################
1 components verified in 2 directives
   => 1 components in Enforce mode
      -> 1 compliant
execution time: 4.35s
################################################################################@

as far as I can tell:
- summary is correct
- message: starts with "E" - which is likely wrong
- if it were an "E" it should not be green, right?
- Message text says everything is fine
- And then there's a generic error that calls for doing -i

So, it's 4-way contradictive, and I suspect it's also unique 4 errors behind this.

It's misleading and there is no workaround, expect not trusting rudder's output.


Subtasks 1 (0 open1 closed)

Bug #13821: Document that "rudder agent run -b" should not be used except if support asksReleasedBenoît PECCATTEActions

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #9807: When in changes only mode, with no heartbeat, 'rudder agent run' outputs 'error: Rudder agent was interrupted during execution by a fatal error.'ReleasedNicolas CHARLESActions
Related to Rudder - Bug #13882: rudder agent inventory wrongly states that we are not in full compliance modeReleasedAlexis MoussetActions

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

  • User visibility changed from First impressions of Rudder to Infrequent - complex configurations | third party integrations
  • Effort required set to Small
  • Priority changed from 0 to 14

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

  • Related to Bug #9807: When in changes only mode, with no heartbeat, 'rudder agent run' outputs 'error: Rudder agent was interrupted during execution by a fatal error.' added

Updated by Jonathan CLARKE over 8 years ago Actions #3

Florian Heigl wrote:

M| State Technique Component Key Message
E| compliant DistributePolicy Send inventories to CMDB Incoming inventories were successfully added to Rudder

- message: starts with "E" - which is likely wrong
- if it were an "E" it should not be green, right?

Just on this one point: the letter "E" in the "M" column here reprensents the directives's "mode" - Enforce (E) or Audit (A). It's not an error - Enforce is green, and Audit is blue.

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

  • Priority changed from 14 to 25

Updated by Benoît PECCATTE about 8 years ago Actions #5

  • Priority changed from 25 to 35

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

  • Priority changed from 35 to 33

'E' means enforce.
The agent has been interrupted by a fatal error not show here (fatal error rarely have time to produce an error).
Running again with -i would probably give more information about what happened before the error.
There is an error message in red saying that there was a fatal error.
An now there's even a proper return code.

So i don't see what we could change here.

Updated by Florian Heigl almost 8 years ago Actions #7

Hi,

start with making the "Summary" report that the agent run FAILED

Updated by Alexis Mousset about 7 years ago Actions #8

  • Description updated (diff)
  • Priority changed from 33 to 31

Updated by Alexis Mousset about 7 years ago Actions #9

  • Subject changed from incorrect reporting with partial runs to Incorrect reporting with partial runs

Updated by Alexis Mousset about 7 years ago Actions #10

  • Assignee set to Alexis Mousset
  • Target version set to 4.3.7

Updated by Alexis Mousset about 7 years ago Actions #11

  • Status changed from New to In progress

Updated by Alexis Mousset about 7 years ago Actions #12

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

Updated by Alexis Mousset about 7 years ago Actions #13

  • Status changed from Pending technical review to Pending release

Updated by Nicolas CHARLES about 7 years ago Actions #14

  • Subject changed from Incorrect reporting with partial runs to Add a warn message when agent run is incomplete

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

This bug has been fixed in Rudder 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog

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

This bug has been fixed in Rudder 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog

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

  • Related to Bug #13882: rudder agent inventory wrongly states that we are not in full compliance mode added

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

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog
Actions

Also available in: PDF Atom