Project

General

Profile

Bug #13183

Error when using 2 or more File from a jinja2 template

Added by Guillaume Terrier 4 months ago. Updated about 2 months ago.

Status:
Released
Priority:
N/A
Category:
Generic methods - File Management
Target version:
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
79

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.

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
1384
1385

Subtasks

Bug #13204: Parent fix breaks ncf tests with old jinja2ReleasedAlexis MOUSSET

Associated revisions

Revision 12944d6c (diff)
Added by Alexis MOUSSET 4 months ago

Fixes #13183: Error when using 2 or more File from a jinja2 template

History

#1 Updated by Alexis MOUSSET 4 months ago

  • Project changed from Rudder to ncf
  • Assignee set to Alexis MOUSSET

#2 Updated by Alexis MOUSSET 4 months ago

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

#3 Updated by Alexis MOUSSET 4 months ago

  • Status changed from New to In progress

#4 Updated by Alexis MOUSSET 4 months 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.

#5 Updated by Alexis MOUSSET 4 months ago

  • Status changed from New to In progress

#6 Updated by Alexis MOUSSET 4 months 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.

#7 Updated by Alexis MOUSSET 4 months ago

  • Status changed from Pending technical review to Pending release

#8 Updated by Vincent MEMBRÉ about 2 months 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

Also available in: Atom PDF