Bug #26152
closedMulti directive instance of a technique with jinja templating method fail
Description
1. Create a technique with a method "File from a Jinja2 templating" with a parameter
2. Create at least 2 directive based on this technique with different parameter value
3. Only the first directive will succeed, the second one will be on error
4. the first directive succeed, the second one fail
2025-01-08T14:27:39+00:00 rudder info: Created file '/tmp/toto.datastate.70100.json', mode 0600 2025-01-08T14:27:39+00:00 rudder info: Updated rendering of '/tmp/toto.datastate.70100.json' from mustache template '/var/rudder/cfengine-community/modules/templates/datastate.json.tpl' info test_jija_files File from a jinja2 templ| /opt/toto Copying /opt/toto from /tmp/toto.70100.new was correct info test_jija_files File from a jinja2 templ| /opt/toto Copying /opt/toto from local /tmp/toto.70100.new, recursion level 0 was correct info test_jija_files File from a jinja2 templ| /opt/toto Copying /opt/toto from local /tmp/toto.70100.new was correct 2025-01-08T14:27:40+00:00 rudder info: Deleted file '/tmp/toto.datastate.70100.json' info test_jija_files File from a jinja2 templ| /opt/toto Remove file /tmp/toto.datastate.70100.json was repaired 2025-01-08T14:27:40+00:00 rudder info: Deleted file '/tmp/toto.70100.new' info test_jija_files File from a jinja2 templ| /opt/toto Remove file /tmp/toto.70100.new was repaired E| compliant test_jija_files File from a jinja2 templ| /opt/toto Build file /opt/toto from jinja2 template /tmp/toto was correct 2025-01-08T14:27:40+00:00 rudder info: Created file '/tmp/toto.datastate.70100.json', mode 0600 2025-01-08T14:27:40+00:00 rudder info: Updated rendering of '/tmp/toto.datastate.70100.json' from mustache template '/var/rudder/cfengine-community/modules/templates/datastate.json.tpl' 2025-01-08T14:27:40+00:00 error: Can't stat file '/tmp/toto.70100.new' on 'localhost' in files.copy_from promise, it may be missing or access may not be authorized 2025-01-08T14:27:40+00:00 error: Errors encountered when actuating files promise '/opt/tutu' info test_jija_files File from a jinja2 templ| /opt/tutu Copying /opt/tutu from /tmp/toto.70100.new could not be repaired info test_jija_files File from a jinja2 templ| /opt/tutu Copying /opt/tutu from local /tmp/toto.70100.new, recursion level 0 could not be repaired info test_jija_files File from a jinja2 templ| /opt/tutu Copying /opt/tutu from local /tmp/toto.70100.new could not be repaired E| error test_jija_files File from a jinja2 templ| /opt/tutu Build file /opt/tutu from jinja2 template /tmp/toto could not be repaired
Updated by Nicolas CHARLES 14 days ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES 14 days ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Elaad FURREEDAN
- Pull Request set to https://github.com/Normation/ncf/pull/1440
Updated by François ARMAND 13 days ago
- Priority changed from To review to 1 (highest)
Updated by Anonymous 13 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset ncf|373810b5f048f042a23f37ef3a1c0116ad36f3a2.
Updated by Anonymous 13 days ago
Applied in changeset ncf|458c87591ddc095bfa9390c19b23e6a9e4db0a6e.
Updated by Anonymous 13 days ago
Applied in changeset ncf|458c87591ddc095bfa9390c19b23e6a9e4db0a6e.
Updated by Anonymous 13 days ago
Applied in changeset ncf|9c1aa835858b20559504feb5a0f9c1dde02cdb9d.
Updated by Anonymous 13 days ago
Applied in changeset ncf|9c1aa835858b20559504feb5a0f9c1dde02cdb9d.
Updated by Anonymous 13 days ago
Applied in changeset ncf|44f5a70779f66775450cb93822ee4dd5195d3b86.
Updated by Anonymous 13 days ago
Applied in changeset ncf|44f5a70779f66775450cb93822ee4dd5195d3b86.
Updated by Alexis Mousset 13 days ago
Applied in changeset ncf|c28cf0c0877169ea9e2f3844d3dfbdcf5311c191.
Updated by Vincent MEMBRÉ 9 days ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 8.1.11 and 8.2.4 which were released today.