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

Also available in: Atom PDF