Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2857

cf-execd does not reload persistent classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12.1, 3.13.0
    • Component/s: None
    • Labels:
      None

      Description

      Persistent classes should be loaded when cf-execd re-parses policy because it notices a change, or when it is signaled with HUP. I observe in 3.12.0 that it only loads persistent classes when the process is first started.

      Normally persistent classes are loaded after environment data and before reading policy_server.dat. When cf-execd is restarted via HUP signal it should re-load persistent classes.

      Verbose output from cf-execd -Fv showing persistent class loading.

      verbose: Looking for environment from cf-monitord...
      verbose: Loading environment...
      verbose: Environment data loaded
      verbose: This appears to be a debian system.
      verbose: Looking for Debian version...
      verbose: Found 4 processors
      verbose: Loading persistent classes
      verbose: Persistent class 'io_writes_high_ldt' for 1 more minutes
      verbose: Adding persistent class 'io_writes_high_ldt' to heap
      verbose: Persistent class 'mem_cached_high_ldt' for 4 more minutes
      verbose: Adding persistent class 'mem_cached_high_ldt' to heap
      verbose: Persistent class 'otherprocs_high_ldt' for 1 more minutes
      verbose: Adding persistent class 'otherprocs_high_ldt' to heap
      verbose: Persistent class 'temp0_low_anomaly' expired
      verbose: Persistent class 'temp0_low_dev2' expired
      verbose: Persistent class 'www_out_high_ldt' for 9 more minutes
      verbose: Adding persistent class 'www_out_high_ldt' to heap
      verbose: Could not open file '/var/cfengine/policy_server.dat' (fopen: No such file or directory)
      

      When cf-execd reloads itself or is signaled with HUP it skips re-loading persistent classes.

      verbose: Loading environment...
      verbose: Environment data loaded
      verbose: This appears to be a debian system.
      verbose: Looking for Debian version...
      verbose: Found 4 processors
         info: Re-evaluating augments
      verbose: Loading JSON augments from '/var/cfengine/inputs/def.json' (input dir '/var/cfengine/inputs', input file '/var/cfengine/inputs/promises.cf'
      

      From Igor Goncharenko on the help mailing list: https://groups.google.com/forum/#!topic/help-cfengine/BOwEs9TcCjM

        Attachments

          Activity

            People

            • Assignee:
              olehermanse Ole Herman Schumacher Elgesem
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel