Project

General

Profile

Actions

Bug #26152

closed

Multi directive instance of a technique with jinja templating method fail

Added by Elaad FURREEDAN 14 days ago. Updated 9 days ago.

Status:
Released
Priority:
1 (highest)
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

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

Updated by Elaad FURREEDAN 14 days ago

  • Priority changed from N/A to To review
Actions #4

Updated by Nicolas CHARLES 14 days ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #5

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

Updated by François ARMAND 13 days ago

  • Priority changed from To review to 1 (highest)
Actions #7

Updated by Nicolas CHARLES 13 days ago

  • Category set to Generic methods
Actions #8

Updated by Anonymous 13 days ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Anonymous 13 days ago

Actions #10

Updated by Anonymous 13 days ago

Actions #11

Updated by Anonymous 13 days ago

Actions #12

Updated by Anonymous 13 days ago

Actions #13

Updated by Anonymous 13 days ago

Actions #14

Updated by Anonymous 13 days ago

Actions #16

Updated by Elaad FURREEDAN 13 days ago

  • Fix check changed from To do to Checked
Actions #17

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.

Actions

Also available in: Atom PDF