Details
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?).