Actions
Bug #14601
closedBroken initial promises on a server
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
I have no idea how, but I ended up with wrongly generated promises.cf, leading to rudder executing the generic method without reporting context and so, correct reporting.
here is the output of one part of the promises.cf on the server:
bundle common va { vars: "end" slist => { "endExecution" }; "common_bs" slist => { "startup", "check_disable_agent", "update_reports", "configuration", "initialize_ncf", "internal_security", "check_cf_processes", "check_uuid", "garbage_collection", "setup_cronjob", "check_cron_daemon", "doInventory", }; policy_server:: "specific_bs" slist => { "install_rsyslogd", "propagatePromises", "sendInventoryToCmdb", "root_component_check", # This bundle is duplicated to avoid having empty lists and cfnull in bundlesequence "check_binaries_freshness", }; !policy_server::
and on a fonctionnal one:
bundle common va { vars: "end" slist => { "restart_services", "monitoring_hook_post", "endExecution" }; "common_bs" slist => { "startup", "check_disable_agent", "update_reports", "configuration", "initialize_ncf", "internal_security", "check_cf_processes", "check_uuid", "garbage_collection", "setup_cronjob", "check_cron_daemon", "configure_rudder_reporting_system", "check_zypper", "get_environment_variables", "properties", "nxlog_enable", "monitoring_hook_pre", }; policy_server:: "specific_bs" slist => { # This bundle is duplicated to avoid having empty lists and cfnull in bundlesequence "check_binaries_freshness", };
The reports are unparsable, and end up in the following syntax:
@@@@log_info@@@@Check apache boot script@@apache2@@2019-04-08 09:39:51+00:00##root@#Ensure service apache2 is started at boot was correct
Regenerating the policies, fixing the pb in it (I had a typo in a generic method I was developping) fixed the problem.
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.9 to 5.0.10
Updated by Nicolas CHARLES over 5 years ago
- Related to Bug #12307: Broken info log in ncf with initial policies added
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.10 to 5.0.11
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.11 to 5.0.12
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.12 to 5.0.13
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.13 to 5.0.14
Updated by François ARMAND over 5 years ago
We didn't see that problem anymore, and we don't have any way to reproduce it, so I'm closing it now.
Actions