Bug #21220
closedWhen upgrading to 7.1, techniques are not upgraded to the new format and reporting issue occur
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