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

cf-execd mailing not working on AIX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.2
    • Component/s: cf-execd
    • Labels:
      None

      Description

      Even though files are different, cf-execd in verbose outputs this:

      <pre>
      nova> -> Mailing result
      nova> Mail result...
      nova> Comparing files /var/cfengine/outputs/previous with /var/cfengine/outputs/cf_ftw_srv_isix_02_nhsrx_com__1366215682_Wed_Apr_17_11_21_22_2013_102
      nova> Previous output is the same as current so do not mail it
      </pre>

      ls of outputs/ before cf-execd is run:
      <pre>
      rw------ 1 root system 22 Apr 17 11:12 cf_ftw_srv_isix_02_nhsrx_com__1366215086_Wed_Apr_17_11_11_26_2013_102
      lrwxrwxrwx 1 root system 91 Apr 17 11:12 previous@ -> /var/cfengine/outputs/cf_ftw_srv_isix_02_nhsrx_com__1366215086_Wed_Apr_17_11_11_26_2013_102
      </pre>

      .. and after:
      <pre>
      rw------ 1 root system 22 Apr 17 11:12 cf_ftw_srv_isix_02_nhsrx_com__1366215086_Wed_Apr_17_11_11_26_2013_102
      rw------ 1 root system 46 Apr 17 11:21 cf_ftw_srv_isix_02_nhsrx_com__1366215682_Wed_Apr_17_11_21_22_2013_102
      lrwxrwxrwx 1 root system 91 Apr 17 11:21 previous@ -> /var/cfengine/outputs/cf_ftw_srv_isix_02_nhsrx_com__1366215682_Wed_Apr_17_11_21_22_2013_102
      </pre>

      The diff is non-zero:
      <pre>
      sudo diff cf_ftw_srv_isix_02_nhsrx_com_1366215086_Wed_Apr_17_11_11_26_2013_102 cf_ftw_srv_isix_02_nhsrx_com_1366215682_Wed_Apr_17_11_21_22_2013_102
      Password:
      1c1,2
      < R: Updated /etc/motd.

      > R: Updated /etc/environment.
      > R: WHATIS EXISTS
      </pre>

      I have not reproduced this myself, but one theory is that the "md5" algorithm is not obtained correctly in cf-execd-runner.c:FileChecksum() (does it incorrectly return 0?).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10003 Eystein Maloy Stenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel