Project

General

Profile

Actions

Bug #9114

closed

Bug #8422: failsafe sometimes produce rudder reports

Merge error in update.cf

Added by Alexis Mousset about 8 years ago. Updated about 8 years ago.

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

Description

Some old reports reappeared in a methods section:

    (config|rudder_tools_updated|rudder_ncf_common_updated|rudder_ncf_local_updated|server_ok|executor_ok).!(rudder_promises_generated_tmp_file_error|rudder_tools_updated_error|rudder_tools_update_error|rudder_ncf_common_update_error|rudder_ncf_local_update_error|no_update|rudder_ncf_hash_update_error)::
      "any" usebundle => rudder_common_report("Common", "result_repaired", "hasPolicyServer-root@@common-root@@4", "Update", "None", "Rudder policy, tools or ncf instance were updated or CFEngine service restarted");

    server_ok::
      "@@Common@@log_repaired@@hasPolicyServer-root@@common-root@@4@@Update@@None@@${g.execRun}##${g.uuid}@#Started the server (cf-serverd)";
    executor_ok::
      "@@Common@@log_repaired@@hasPolicyServer-root@@common-root@@4@@Update@@None@@${g.execRun}##${g.uuid}@#Started the scheduler (cf-execd)";

should be replaced by:

    pass3.server_ok::
      "any" usebundle => rudder_common_report("Common", "log_repaired", "hasPolicyServer-root@@common-root@@4", "Update", "None", "Started the server (cf-serverd)");
    pass3.executor_ok::
      "any" usebundle => rudder_common_report("Common", "log_repaired", "hasPolicyServer-root@@common-root@@4", "Update", "None", "Started the scheduler (cf-execd)");
Actions

Also available in: Atom PDF