Project

General

Profile

Actions

Bug #7785

closed

Rudder inventory don't produce error report

Added by François ARMAND about 8 years ago. Updated about 8 years ago.

Status:
Released
Priority:
2
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Discovered in 3.2, but seems likelly to happen in other version:

The inventory technique does produce error logs if it can't download promise server uuid, and just display error logs:

(in fact, I'm even wondering if it doesn't stop brutally the agent)

root@agent1:/home/vagrant# rudder agent inventory -R
R: @@Common@@log_info@@hasPolicyServer-root@@common-root@@00@@common@@StartRun@@2016-01-15 14:05:50+00:00##f0b7d8c4-ac6e-4156-ba3f-b0eced1dbb12@#Start execution
R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@00@@Security parameters@@None@@2016-01-15 14:05:50+00:00##f0b7d8c4-ac6e-4156-ba3f-b0eced1dbb12@#The internal environment security is acceptable
R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@00@@Process checking@@None@@2016-01-15 14:05:50+00:00##f0b7d8c4-ac6e-4156-ba3f-b0eced1dbb12@#There is an acceptable number of cf-execd processes (between 0 and 2) and cf-agent processes (between 0 and 5)
R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@00@@CRON Daemon@@None@@2016-01-15 14:05:50+00:00##f0b7d8c4-ac6e-4156-ba3f-b0eced1dbb12@#The CRON daemon is running
R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@00@@Binaries update@@None@@2016-01-15 14:05:50+00:00##f0b7d8c4-ac6e-4156-ba3f-b0eced1dbb12@#The CFengine binaries in /var/rudder/cfengine-community/bin are up to date
   error: Finished command related to promiser '/usr/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://relay/uuid' -- an error occurred, returned 7
   error: Fatal CFEngine error: cf-agent aborted on defined class 'could_not_download_uuid'

Which leads to a missing error in the standard output:

root@agent1:/home/vagrant# rudder agent inventory
Rudder agent 3.2.0~rc3~git201601150811-squeeze0 (CFEngine Core 3.7.1)
Node uuid: f0b7d8c4-ac6e-4156-ba3f-b0eced1dbb12
Start execution

Result   Technique                 Component                 Key                Message
error    Common                    Update                                       Cannot update Rudder tools last updated file
error    Common                    Update                                       Cannot update common Rudder ncf instance
error    Common                    Update                                       Cannot update local Rudder ncf instance
error    Common                    Update                                       Cannot update node's policy
success  Common                    Security parameters                          The internal environment security is acceptable
success  Common                    Process checking                             There is an acceptable number of cf-execd processes (between 0 and 2) and cf-agent processes (between 0 and 5)
success  Common                    CRON Daemon                                  The CRON daemon is running
success  Common                    Binaries update                              The CFengine binaries in /var/rudder/cfengine-community/bin are up to date

## Summary #####################################################################
success:      4
error:        4
execution time: 0.39s
################################################################################
Actions #1

Updated by Alexis Mousset about 8 years ago

  • Target version changed from 3.2.0 to 2.11.18
Actions #2

Updated by Alexis Mousset about 8 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #3

Updated by Alexis Mousset about 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/849
Actions #4

Updated by Jonathan CLARKE about 8 years ago

  • Status changed from Pending technical review to In progress
  • Assignee changed from Nicolas CHARLES to Jonathan CLARKE
Actions #5

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #6

Updated by Alexis Mousset about 8 years ago

  • Status changed from In progress to Pending release
  • % Done changed from 0 to 100
Actions #7

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.19, 3.0.14, 3.1.8 and 3.2.1 which were released today.

Actions

Also available in: Atom PDF