Project

General

Profile

Actions

Bug #14601

closed

Broken initial promises on a server

Added by Félix DALLIDET over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
System techniques
Target version:
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.


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #12307: Broken info log in ncf with initial policiesRejectedActions
Actions #1

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.9 to 5.0.10
Actions #2

Updated by Nicolas CHARLES over 5 years ago

  • Related to Bug #12307: Broken info log in ncf with initial policies added
Actions #3

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.10 to 5.0.11
Actions #4

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.11 to 5.0.12
Actions #5

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.12 to 5.0.13
Actions #6

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.13 to 5.0.14
Actions #7

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 #8

Updated by François ARMAND over 5 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF