Details
-
Type:
Bug
-
Status: Done
-
Priority:
Higher
-
Resolution: Fixed
-
Affects Version/s: 3.17.0
-
Component/s: Promise type: files
-
Labels:
-
Story Points:0
Description
The attached test fails on CFEngine 3.17.0 (running on FreeBSD). It does not fail on CFEngine 3.12.1 and 3.15.2 (both running on Debian).
When writing a non-already-existent file, if the backup has been enabled the promise fails.
3.12.1 on Debian buster
$ bin/cf-agent -KI inputs/cfe-XXXX.cf info: Created directory '/tmp/cfe-XXXX/.' info: Created directory '/tmp/cfe-XXXX/backups/.' info: Copying from 'localhost:/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' R: CFEngine 3.12.1 (running on debian_10) R: Results: _repaired _reached _kept
3.15.2 on Debian sid
$ cf-agent -KI inputs/cfe-XXXX.cf
info: Copying from 'localhost:/home/gpiero/.cfagent/inputs/cfe-XXXX.cf'
info: The file '' has already been moved to the repository once. Multiple update will cause loss of backup.
R: CFEngine 3.15.2 (running on debian_11)
R: Results: _repaired _reached _kept
3.17.0 on FreeBSD 12.2
$ cf-agent -KI inputs/cfe-XXXX.cf info: Copied file '/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' to '/tmp/cfe-XXXX/file-1619124071-2136.cfnew' (mode '600') info: Moved '/tmp/cfe-XXXX/file-1619124071-2136.cfnew' to '/tmp/cfe-XXXX/file-1619124071-2136' info: The file '' has already been moved to the repository once. Multiple update will cause loss of backup. info: Archived backup '' error: Failed to clean backup '' after archiving info: Updated file '/tmp/cfe-XXXX/file-1619124071-2136' from 'localhost:/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' error: Errors encountered when actuating files promise '/tmp/cfe-XXXX/file-1619124071-2136' R: CFEngine 3.17.0a.68302fb6a (running on freebsd_12.2) R: Results: _kept _error _failed _reached _repaired
3.17.0 on FreeBSD 13.0
$ cf-agent -KI inputs/cfe-XXXX.cf info: Copied file '/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' to '/tmp/cfe-XXXX/file-1619124082-7924.cfnew' (mode '600') info: Moved '/tmp/cfe-XXXX/file-1619124082-7924.cfnew' to '/tmp/cfe-XXXX/file-1619124082-7924' info: The file '' has already been moved to the repository once. Multiple update will cause loss of backup. info: Archived backup '' error: Failed to clean backup '' after archiving info: Updated file '/tmp/cfe-XXXX/file-1619124082-7924' from 'localhost:/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' error: Errors encountered when actuating files promise '/tmp/cfe-XXXX/file-1619124082-7924' R: CFEngine 3.17.0a.68302fb6a (running on freebsd_13.0) R: Results: _kept _error _failed _reached _repaired