Bug #13786
closedMissing report for component "Post-modification hook" when cleaning files with "File and directory basics" Technique version 4.1
Description
This is a follow up from Bug#12297
When cleaning files, the post modification hook is still not executed and it is reported missing.
See screenshot in attachment for the directive and the following logs when executed
rudder info: Deleted file '/etc/fail2ban/jail.d/defaults-debian.conf' E| n/a manageFilesAndFolders Permissions /etc/fail2ban/jai| The item /etc/fail2ban/jail.d/defaults-debian.conf was not requested to have its permission enforced E| compliant manageFilesAndFolders File /etc/fail2ban/jai| File cleaning was requested for /etc/fail2ban/jail.d/defaults-debian.conf. Check specific reporting in the 'File cleaning options' component. E| repaired manageFilesAndFolders File cleaning options /etc/fail2ban/jai| The item /etc/fail2ban/jail.d/defaults-debian.conf has been put in conformity with the deletion policy
There is no mention of the Post-modification hook being executed and I confirmed that indeed it was not executed.
I'm running rudder server 4.3.2 and rudder agent 4.3.6
Files
Updated by Renaud Manus about 6 years ago
- Related to Bug #12297: Missing report for component "Post-modification hook" when cleaning files added
Updated by Vincent MEMBRÉ about 6 years ago
Thanks Renaud for reporting !
Which version of the technique are you using ? I think the bug is fixed in 4.0 version of this technique (Done in #12297) but 4.1 version (introduced in Rudder 4.3 does not have the fix)
If you are using the 4.0 version, you need to update it (bugfixes in techniques are not propagated automatically, see https://docs.rudder.io/reference/5.0/installation/upgrade/rhel.html#_technique_upgrade) but we'll look deeper if you need!
Updated by Renaud Manus about 6 years ago
I'm using Technique v4.1.
I'm not sure to understand your last note. You wrote that the bug is fixed in 4.0 but not in 4.1 then you recommend to upgrade from 4.0 to 4.1, is that correct ?
Thanks
Updated by Vincent MEMBRÉ about 6 years ago
- Translation missing: en.field_tag_list set to Sponsored
- Subject changed from Missing report for component "Post-modification hook" when cleaning files to Missing report for component "Post-modification hook" when cleaning files with "File and directory basics" Technique version 4.1
- Target version set to 4.3.7
In fact, we fix bugs in technique without changing their version number, so when i say "upgrading techniques" it's not changing the version of the technique used but upgrading the files of the technique with the latest content which is not automatically done (see this link https://docs.rudder.io/reference/5.0/installation/upgrade/rhel.html#_technique_upgrade).
So we used to have a version 4.0 of the Technique with the bug in it.
We fixed it in Rudder 4.1.11 with issue #12297 in version 4.0 of the Technique. (and to have the fix in 4.0 you need to the upgrade procedure)
We created in Rudder 4.3.0 a new version 4.1 of the Technique but it was based on the old version of the technique.
When fix #12297 was upmergerd in 4.3 we did not modify 4.1 version of the technique to include the fix.
This means that: your 4.0 Technique may be ok (if you did upgrade the Technique) and the 4.1 Technique does not work.
We need to fix the 4.1 Technique.
As a workaround, you can use the 4.0 version (after upgrrade of the technique) by downgrading all your 4.1 based Directives to 4.0
Updated by Nicolas CHARLES about 6 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES about 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1352
Updated by Renaud Manus about 6 years ago
- Priority changed from 0 to 65
Downgrading the directive to 4.0 solved the issue. Thanks for the workaround.
Updated by Nicolas CHARLES about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|f34e2a41b0554066e405919ce93734f3d2e5db1c.
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released