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

Confusing log message on action => warn

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.x
    • Component/s: Logging
    • Labels:
      None
    • Platform:
      Other (details)
    • Found in version (details):
      cfengine-nova-hub-3.7.0-0.a1.0.2452.x86_64

      Description

      I have a bundle that has a promise that has an action of warn associated with it.

      I get errors from the policy about the individual promise letting me know that the file should be deleted:
      <pre>
      2014-05-16T18:19:53+0000 error: /default/tier4/methods/'Tier 4 Policies'/default/tier_4_2_01/files/'/tmp/nofile'[0]: 'File' '/tmp/nofile' should be deleted
      2014-05-16T18:19:53+0000 error: /default/tier4/methods/'Tier 4 Policies'/default/tier_4_2_01/files/'/tmp/nofile'[0]: 'File' '/tmp/nofile' should be deleted
      2014-05-16T18:19:53+0000 error: /default/tier4/methods/'Tier 4 Policies'/default/tier_4_2_01/files/'/tmp/nofile'[0]: 'File' '/tmp/nofile' should be deleted
      </pre>

      What is confusing is the warning that I get on the bundle activation:
      <pre>
      2014-05-16T18:19:53+0000 warning: /default/tier4/methods/'Tier 4 Policies'[0]: Method 'tier_4_2_01' invoked repairs, but only warnings promised
      </pre>

      My bundle invoked repairs, but only warnings promised? So did it really envoke any repairs? The warning was only promised at the individual promiser, not the usebundle call.

      <pre>
      bundle agent tier4
      {
      "Tier 4 Policies"
      usebundle => tier_4_2_01;
      }

      bundle agent tier_4_2_01
      {
      files:
      "/tmp/nofile"
      delete => tidy,
      action => warn_only;
      }
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel