Bug #10751
closedAdd a warn message when agent run is incomplete
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.
Updated by François ARMAND over 7 years 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
Updated by François ARMAND over 7 years 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
Updated by Jonathan CLARKE over 7 years 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.
Updated by Benoît PECCATTE almost 7 years 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.
Updated by Florian Heigl almost 7 years ago
Hi,
start with making the "Summary" report that the agent run FAILED
Updated by Alexis Mousset about 6 years ago
- Description updated (diff)
- Priority changed from 33 to 31
Updated by Alexis Mousset about 6 years ago
- Subject changed from incorrect reporting with partial runs to Incorrect reporting with partial runs
Updated by Alexis Mousset about 6 years ago
- Assignee set to Alexis Mousset
- Target version set to 4.3.7
Updated by Alexis Mousset about 6 years ago
- Status changed from New to In progress
Updated by Alexis Mousset about 6 years 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
Updated by Alexis Mousset about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-agent|51069c1150b43318ebcb6d8105a16fe37c6976ba.
Updated by Nicolas CHARLES about 6 years ago
- Subject changed from Incorrect reporting with partial runs to Add a warn message when agent run is incomplete
Updated by Vincent MEMBRÉ about 6 years ago
Updated by Vincent MEMBRÉ about 6 years ago
Updated by Vincent MEMBRÉ about 6 years ago
- Related to Bug #13882: rudder agent inventory wrongly states that we are not in full compliance mode added
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released