Project

General

Profile

Actions

Bug #13183

closed

Error when using 2 or more File from a jinja2 template

Added by Guillaume Terrier over 6 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:

Description

When using more than one "File from a jinja2 template" something strange is happening. The first directive runs nicely
but all the other ones seems to bug (example in grub and snmpd images). It looks like the file in ".json" is deleted before it's time
and the ".new" file is never generated.
Let me know if more details are necessary.


Files

grub.png (117 KB) grub.png Guillaume Terrier, 2018-08-09 15:50
snmpd.png (111 KB) snmpd.png Guillaume Terrier, 2018-08-09 15:53

Subtasks 1 (0 open1 closed)

Bug #13204: Parent fix breaks ncf tests with old jinja2ReleasedAlexis MoussetActions
Actions #1

Updated by Alexis Mousset over 6 years ago

  • Project changed from Rudder to 41
  • Assignee set to Alexis Mousset
Actions #2

Updated by Alexis Mousset over 6 years ago

  • Category set to Generic methods - File Management
  • Target version set to 4.1.15
Actions #3

Updated by Alexis Mousset over 6 years ago

  • Status changed from New to In progress
Actions #4

Updated by Alexis Mousset over 6 years ago

  • Status changed from In progress to New
  • Target version changed from 4.1.15 to 4.3.5

Seems specific to 4.3 implementation.

Actions #5

Updated by Alexis Mousset over 6 years ago

  • Status changed from New to In progress
Actions #6

Updated by Alexis Mousset over 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Effort required set to Very Small
  • Priority changed from 0 to 80

https://github.com/Normation/ncf/pull/801

Not critical as this could only break behior of next method call but not break the content of templated files.

Actions #7

Updated by Alexis Mousset over 6 years ago

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

Updated by Vincent MEMBRÉ about 6 years ago

  • Status changed from Pending release to Released
  • Priority changed from 80 to 79
This bug has been fixed in Rudder 4.3.5 and 5.0.1 which were released today.
Changelog
Changelog
Actions #9

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category changed from Generic methods - File Management to Generic methods
  • Priority changed from 79 to 0
Actions

Also available in: Atom PDF