Project

General

Profile

Actions

Bug #24515

closed

Rudder should finish to migrate all techniques when booting instead of stopping on first error

Added by Vincent MEMBRÉ about 1 month ago. Updated 3 days ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

Hence instead of having only one technique not rewritten we end with this one plus all the other that were not migrated

Actions #1

Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #2

Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/5479
Actions #3

Updated by Anonymous about 1 month ago

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

Updated by François ARMAND about 1 month ago

  • Fix check changed from To do to Checked

Works as expected:
(7.3 to 8.0)

2024-03-28 17:32:20+0000 INFO  bootchecks - Migrate technique.json to technique.yml
2024-03-28 17:32:20+0000 INFO  bootchecks.migration.techniques - Checking if some techniques need to be migrated to YAML format
2024-03-28 17:32:20+0000 INFO  bootchecks.migration.techniques - Found 5 to migrate to YAML format
2024-03-28 17:32:20+0000 INFO  bootchecks.migration.techniques - Migrating technique 'technique1_will_be_ok' to Rudder 8.0 yaml format
2024-03-28 17:32:21+0000 INFO  bootchecks.migration.techniques - Migration of technique 'technique1_will_be_ok' to YAML format done
2024-03-28 17:32:21+0000 INFO  bootchecks.migration.techniques - Migrating technique 'technique90_broken' to Rudder 8.0 yaml format
2024-03-28 17:32:21+0000 WARN  bootchecks.migration.techniques - An error occurred when migrating technique metadata '/var/rudder/configuration-repository/techniques/ncf_techniques/technique90_broken/1.0/technique.json'. Directives based on that technique may not work anymore and policy generation fail.Some files among technique.json, metadata.xml, technique.cf, technique.ps1 may have been altered. You can revert to pre-migration state using git. The error was: An error occurred while writing technique 'technique90€%!_broken'; cause was: SystemError: An error occurred while creating yaml file for Technique 'technique90_broken'; cause was: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /var/rudder/configuration-repository/techniques/ncf_techniques/technique90€%!_broken/1.0/technique.yml
 -> com.normation.rudder.ncf.TechniqueWriterImpl.$anonfun$writeYaml$2(TechniqueWriter.scala:191)
2024-03-28 17:32:21+0000 INFO  bootchecks.migration.techniques - Migrating technique 'technique99_ok' to Rudder 8.0 yaml format
2024-03-28 17:32:21+0000 INFO  bootchecks.migration.techniques - Migration of technique 'technique99_ok' to YAML format done
2024-03-28 17:32:21+0000 INFO  bootchecks.migration.techniques - Migrating technique 'technique_2_broken' to Rudder 8.0 yaml format
2024-03-28 17:32:21+0000 WARN  bootchecks.migration.techniques - An error occurred when migrating technique metadata '/var/rudder/configuration-repository/techniques/ncf_techniques/technique_2_broken/1.0/technique.json'. Directives based on that technique may not work anymore and policy generation fail.Some files among technique.json, metadata.xml, technique.cf, technique.ps1 may have been altered. You can revert to pre-migration state using git. The error was: An error occurred while writing technique 'technique_2_€%!broken'; cause was: SystemError: An error occurred while creating yaml file for Technique 'technique_2_broken'; cause was: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /var/rudder/configuration-repository/techniques/ncf_techniques/technique_2_€%!broken/1.0/technique.yml
 -> com.normation.rudder.ncf.TechniqueWriterImpl.$anonfun$writeYaml$2(TechniqueWriter.scala:191)
2024-03-28 17:32:21+0000 INFO  bootchecks.migration.techniques - Migrating technique 'technique_3_ok' to Rudder 8.0 yaml format
2024-03-28 17:32:22+0000 INFO  bootchecks.migration.techniques - Migration of technique 'technique_3_ok' to YAML format done
2024-03-28 17:32:22+0000 INFO  techniques.reader - Reloading technique library, found modified technique(s): ['technique1_will_be_ok': updated (1.0: updated)], ['technique_3_ok': updated (1.0: updated)], ['technique99_ok': updated (1.0: updated)]
2024-03-28 17:32:23+0000 INFO  com.normation.rudder.services.policies.DeployOnTechniqueCallback - Update Technique library after updating all techniques at start up
Actions #5

Updated by Vincent MEMBRÉ 3 days ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.3.14, 8.0.8 and 8.1.1 which were released today.

Actions

Also available in: Atom PDF