Actions
Bug #7785
closedRudder inventory don't produce error report
Pull Request:
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