Actions
Bug #24515
closedRudder should finish to migrate all techniques when booting instead of stopping on first error
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
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
Updated by Vincent MEMBRÉ 8 months ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ 8 months 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
Updated by Anonymous 8 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|157e508cc78f3e536d73820a910432c5d75a823c.
Updated by François ARMAND 8 months 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
Updated by Vincent MEMBRÉ 7 months 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