Project

General

Profile

Bug #10751

Add a warn message when agent run is incomplete

Added by Florian Heigl over 1 year ago. Updated 12 days ago.

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

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

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

Related issues

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.'Released
Related to Rudder - Bug #13882: rudder agent inventory wrongly states that we are not in full compliance modePending technical review

Associated revisions

Revision 51069c11 (diff)
Added by Alexis MOUSSET 26 days ago

Fixes #10751: Incorrect reporting with partial runs

History

#1 Updated by François ARMAND over 1 year ago

  • 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

#2 Updated by François ARMAND over 1 year ago

  • 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

#3 Updated by Jonathan CLARKE over 1 year ago

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.

#4 Updated by Benoît PECCATTE over 1 year ago

  • Priority changed from 14 to 25

#5 Updated by Benoît PECCATTE about 1 year ago

  • Priority changed from 25 to 35

#6 Updated by Benoît PECCATTE 10 months ago

  • 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.

#7 Updated by Florian Heigl 10 months ago

Hi,

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

#8 Updated by Alexis MOUSSET 26 days ago

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

#9 Updated by Alexis MOUSSET 26 days ago

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

#10 Updated by Alexis MOUSSET 26 days ago

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

#11 Updated by Alexis MOUSSET 26 days ago

  • Status changed from New to In progress

#12 Updated by Alexis MOUSSET 26 days ago

  • 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

#13 Updated by Alexis MOUSSET 26 days ago

  • Status changed from Pending technical review to Pending release

#14 Updated by Nicolas CHARLES 18 days ago

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

#15 Updated by Vincent MEMBRÉ 12 days ago

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

#16 Updated by Vincent MEMBRÉ 12 days ago

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

#17 Updated by Vincent MEMBRÉ 12 days ago

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

#18 Updated by Vincent MEMBRÉ 12 days ago

  • 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

Also available in: Atom PDF