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

Selecting files based on symlink generates unnecessary errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.7
    • Component/s: Logging
    • Labels:
      None

      Description

      When using a file select body that looks for symlinks in a directory an error is generated for any file that is not a symlink.

      [root@hub zendesk_1776]# cf-agent -KIf ./zendesk_1776.cf -DAUTO
      <pre>
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'/default/init/files/'/tmp/TEST.cfengine/file_select/symlink_1'[0]: Link '/tmp/TEST.cfengine/file_select/symlink_1' points to '/tmp/TEST.cfengine/plainfile_0' not '//tmp/TEST.cfengine/plainfile_0', not authorized to override
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'/default/init/files/'/tmp/TEST.cfengine/file_select/symlink_2'[0]: Link '/tmp/TEST.cfengine/file_select/symlink_2' points to '/tmp/TEST.cfengine/plainfile_0' not '//tmp/TEST.cfengine/plainfile_0', not authorized to override
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'[0]: Method 'init' failed in some repairs
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'/default/test/files/'/tmp/TEST.cfengine/file_select/.'[0]: Unable to read link '/tmp/TEST.cfengine/file_select/./plainfile_2.cfsaved' in filter. (readlink: Invalid argument)
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'/default/test/files/'/tmp/TEST.cfengine/file_select/.'[0]: Unable to read link '/tmp/TEST.cfengine/file_select/./plainfile_1.cfsaved' in filter. (readlink: Invalid argument)
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'/default/test/files/'/tmp/TEST.cfengine/file_select/.'[0]: Unable to read link '/tmp/TEST.cfengine/file_select/./plainfile_2' in filter. (readlink: Invalid argument)
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'/default/test_run/methods/'any'/default/test/files/'/tmp/TEST.cfengine/file_select/.'[0]: Unable to read link '/tmp/TEST.cfengine/file_select/./plainfile_1' in filter. (readlink: Invalid argument)
      2015-02-20T15:56:35+0000 error: /default/default/methods/'any'[0]: Method 'test_run' failed in some repairs
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel