Project

General

Profile

Actions

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.

Status:
Released
Priority:
1 (highest)
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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'
Actions #1

Updated by Dennis Cabooter about 10 years ago

For now I will migrate back to version 1.1.

Actions #2

Updated by Vincent MEMBRÉ about 10 years ago

  • 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?

Actions #3

Updated by Dennis Cabooter about 10 years ago

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
Actions #4

Updated by Dennis Cabooter about 10 years ago

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.

Actions #5

Updated by Nicolas CHARLES about 10 years ago

If reverting to previous version doesn't fix the issue, then it is probably related to the new version of the agent (3.6)

Actions #6

Updated by Dennis Cabooter about 10 years ago

Ok, and can we fix that?

Actions #7

Updated by Nicolas CHARLES about 10 years ago

From my tests, using mtime and leaf_name with cfengine 3.6 fails. I'm opening a ticket on cfengine bug tracker

Actions #8

Updated by Nicolas CHARLES about 10 years ago

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

Actions #9

Updated by Matthieu CERDA about 10 years ago

  • Target version changed from 2.11.3 to 2.11.4
Actions #10

Updated by Nicolas CHARLES about 10 years ago

  • 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
Actions #11

Updated by Jonathan CLARKE about 10 years ago

  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
Actions #12

Updated by Nicolas CHARLES about 10 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset packages:commit:b92fe951865eb0899823fd13acb5713d1148c7ac.

Actions #13

Updated by Jonathan CLARKE about 10 years ago

Applied in changeset packages:commit:1ae116ba2f6bc02280f0bd91297df06e081d336e.

Actions #14

Updated by Nicolas CHARLES about 10 years ago

  • 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
Actions #15

Updated by Nicolas CHARLES about 10 years ago

  • Parent task set to #5660
Actions #16

Updated by Vincent MEMBRÉ about 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.4, which was released today.

Actions

Also available in: Atom PDF