Actions
Bug #11876
closedArchitecture #10625: Don't merge directive from same technique on generation
Broken reporting in Rudder 4.3 with standard directives
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Compliance & node report
Target version:
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
69
Name check:
Fix check:
Regression:
Description
I was trying a new version of CopyGitFile technique (2.2, that changes the key on which we report) with 2 directives, one that manages /tmp/foo,, directiveid a919e5df-8f6e-417d-bc7f-80f4fd9d3536 and one that managed /tmp/baz, directiveId 0056421c-66bb-45be-96ba-047fb26d95a6
I was also having multiversionned technique of this technique, in version 2.1 (dev environnement), which I later disabled, and even migrated to 2.2, to no avail
Rudder reports tells that i'm missing reporting on /tmp/baz (see screenshot), even if I get the report on this component
R: @@copyFile@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@0056421c-66bb-45be-96ba-047fb26d95a6@@0@@Copy file@@/tmp/baz@@2017-12-13 15:16:34+00:00##db80271f-3b98-4cc6-aaad-9cf29f31fac8@#The content of the file(s) (copied from foo/baz) is valid R: @@copyFile@@result_error@@32377fd7-02fd-43d0-aab7-28460a91347b@@a919e5df-8f6e-417d-bc7f-80f4fd9d3536@@0@@Copy file@@/tmp/foo@@2017-12-13 15:16:34+00:00##db80271f-3b98-4cc6-aaad-9cf29f31fac8@#The content or permissions of the file(s) could not have been repaired (file not found?) R: @@copyFile@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@0056421c-66bb-45be-96ba-047fb26d95a6@@0@@Post-modification hook@@/tmp/baz@@2017-12-13 15:16:34+00:00##db80271f-3b98-4cc6-aaad-9cf29f31fac8@#/tmp/baz was already in the desired state, so no command was executed R: @@copyFile@@result_error@@32377fd7-02fd-43d0-aab7-28460a91347b@@a919e5df-8f6e-417d-bc7f-80f4fd9d3536@@0@@Post-modification hook@@/tmp/foo@@2017-12-13 15:16:34+00:00##db80271f-3b98-4cc6-aaad-9cf29f31fac8@#/tmp/foo couldn't be copied from foo/bar, so the post-hook command is not executed
Expected reports are
| | | | { + | | | | "directiveId":"a919e5df-8f6e-417d-bc7f-80f4fd9d3536",+ | | | | "isSystem":false, + | | | | "components":[ + | | | | { + | | | | "componentName":"Copy file", + | | | | "cardinality":2, + | | | | "values":[ + | | | | "/tmp/foo", + | | | | "/tmp/baz" + | | | | ], + | | | | "unexpanded":[ + | | | | "/tmp/foo", + | | | | "/tmp/baz" + | | | | ] + | | | | } | | | | { + | | | | "directiveId":"a919e5df-8f6e-417d-bc7f-80f4fd9d3536",+ | | | | "isSystem":false, + | | | | "components":[ + | | | | { + | | | | "componentName":"Copy file", + | | | | "cardinality":2, + | | | | "values":[ + | | | | "/tmp/foo", + | | | | "/tmp/baz" + | | | | ], + | | | | "unexpanded":[ + | | | | "/tmp/foo", + | | | | "/tmp/baz" + | | | | ] + | | | | }
as if they are both in the same directive !
Files
Actions