Project

General

Profile

Actions

Bug #21220

closed

When upgrading to 7.1, techniques are not upgraded to the new format and reporting issue occur

Added by Nicolas CHARLES over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
70
Name check:
To do
Fix check:
Checked
Regression:

Description

at least when upgrading from 6.1, ncf_techniques are not upgraded (they dont contain the _method_reporting_context_v4 ) and so they report erraticaly

There are no errors in the logs, they says that everything is fine, it finished with

 [2022-06-08 10:31:54+0200] DEBUG bootchecks - [#8] Regenerate all ncf techniques: OK in [9 s 727 ms] ms

but file /opt/rudder/etc/force_ncf_technique_update is still present

The issue resides in the dsc writing part, because the parameters of generic method changed between 6.x and 7.x
With the attached json file, the classic migration part, but the dsc fails with the following log (that is never outputed)

Parameter 'path' for method 'file_replace_lines' not found when writing dsc Technique 'Test broken upgrade' methods calls

The related parameter passed TechniqueWriter is "file -> /etc/default/grub"

But method does not contain anymore this parameter, but the parameter "path", as hinted by the `# @parameter_rename file path
` in the description

So the writing of dsc technique does not know the the parameter rename, and fails to generate.

But it does rewrite the json correctly, and so at next restart of the webapp, it picks up the updated json file, which list "path" and not "file" as the parameter, and correctly fixes it


Files

stack (85.5 KB) stack Nicolas CHARLES, 2022-06-03 17:53

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #21355: Remove unused variable newCall in JRTechniqueElemReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF