Bug #5503
closed
Bug #5660: Evaluation of promises is not correctly done in CFEngine 3.6.0 - 3.6.2, preventing some promises evaluation
Manage files and folders: files and folders are not deleted with rudder-agent 2.11
Added by Dennis Cabooter about 10 years ago.
Updated about 10 years ago.
Description
Manage files and folders 2.0: files and folders are not deleted. However, the webapp reports success.
In the output I see things like this:
2014-09-08T15:45:18+0200 verbose: /default/manageFilesAndFolders/files/'/usr/local/hobbit'[1]: file_select result 'leaf_name.mtime' on '/usr/local/hobbit/load.bb' was 'false'
For now I will migrate back to version 1.1.
- Assignee set to Nicolas CHARLES
Nicolas (or Matthieu/Benoit) can you look at it ?
Dennis, to be sure, what are the parameter you put in that technique?
Section: File
- Path: /usr/local/hobbit
- Set action on file or folder: Clean
Section: File cleaning options
- Everything in this directory and the directory itself
Migrating back to 1.1 didn't help. Files and folders are still not deleted. Olivier Mauras tested for me and he experienced the same behaviour.
If reverting to previous version doesn't fix the issue, then it is probably related to the new version of the agent (3.6)
From my tests, using mtime and leaf_name with cfengine 3.6 fails. I'm opening a ticket on cfengine bug tracker
Ok, it is much much more complex than that
In CFEngine 3.6.x, we cannot delete files based on mtime while iterating on lists.
I've opened this ticket with this weird description there https://dev.cfengine.com/issues/6577
- Target version changed from 2.11.3 to 2.11.4
- Status changed from New to Pending technical review
- Assignee changed from Nicolas CHARLES to Jonathan CLARKE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/489
- Assignee changed from Jonathan CLARKE to Benoît PECCATTE
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset packages:commit:b92fe951865eb0899823fd13acb5713d1148c7ac.
Applied in changeset packages:commit:1ae116ba2f6bc02280f0bd91297df06e081d336e.
- Subject changed from Manage files and folders 2.0: files and folders are not deleted to Manage files and folders: files and folders are not deleted with rudder-agent 2.11
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.4, which was released today.
Also available in: Atom
PDF