Project

General

Custom queries

Profile

Actions

Bug #26555

open

Zip config archive can not be imported anymore

Added by Félix DALLIDET 14 days ago. Updated 13 days ago.

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

Description

If I try to import the attached archive, the API always fail with:

{'action': 'import', 'result': 'error', 'errorDetails': "Inconsistency: Technique 'testing_the_directives_generation' is used in imported directive Directive input - Node variables - 3 but is not in Rudder"}

2025-03-18 13:27:02+0000 INFO  application.archive - Received a new policy archive 'archive.zip', processing
2025-03-18 13:27:03+0000 ERROR application.archive - Error when processing uploaded archive: Inconsistency: Technique 'testing_the_directives_generation' is used in imported directive Directive input - JS execution - 7 but is not in Rudder
2025-03-18 13:27:03+0000 INFO  api-processing.response-error - Inconsistency: Technique 'testing_the_directives_generation' is used in imported directive Directive input - JS execution - 7 but is not in Rudder
2025-03-18 13:27:20+0000 INFO  application.authentication - Rudder authentication attempt for principal 'admin' with backend 'file': success
2025-03-18 13:27:20+0000 INFO  compliance - [metrics] global compliance (number of components): undefined
2025-03-18 13:27:39+0000 INFO  techniques.reader - Reloading technique library, found modified technique(s): ['testing_everything_rudder': updated (1.0: added)], ['testing_the_directives_generation': updated (1.0: added)]
2025-03-18 13:27:39+0000 INFO  com.normation.rudder.services.policies.TechniqueAcceptationUpdater - Automatically adding technique 'testing_everything_rudder' in category 'User Techniques (ncf_techniques)' of active techniques library
2025-03-18 13:27:39+0000 INFO  com.normation.rudder.services.policies.TechniqueAcceptationUpdater - Automatically adding technique 'testing_the_directives_generation' in category 'User Techniques (ncf_techniques)' of active techniques library
2025-03-18 13:27:40+0000 INFO  com.normation.rudder.services.policies.DeployOnTechniqueCallback - Automatic batch update at 20250318T132739.656Z
2025-03-18 13:27:40+0000 INFO  policy.generation - Start policy generation, checking updated rules
2025-03-18 13:27:40+0000 INFO  status.techniques - All techniques have success compilation result
2025-03-18 13:27:40+0000 INFO  status.techniques - All techniques have success compilation result
2025-03-18 13:27:40+0000 INFO  policy.generation - [metrics] Xmx:1 GB nodes:2 (cached:2) rules:6 (enabled:6) techniques:11 (enabled:11) directives:11 (enabled:11) groups:3 (dynamic:3) parameters:2
2025-03-18 13:27:40+0000 INFO  policy.generation - No node configuration was updated, no policies to write
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Timing summary:
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Run pre-gen scripts hooks     :        111 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Run pre-gen modules hooks     :          0 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Fetch all information         :         20 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Build current rule values     :          1 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Build target configuration    :          8 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Write node configurations     :        167 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Save expected reports         :          0 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Run post generation hooks     :         52 ms
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Number of nodes updated       :          0   
2025-03-18 13:27:40+0000 INFO  policy.generation.timing - Policy generation succeeded in:           
2025-03-18 13:27:40+0000 INFO  policy.generation.manager - Successful policy update '39' [started 2025-03-18 13:27:40 - ended 2025-03-18 13:27:40]
2025-03-18 13:32:39+0000 INFO  techniques.reader - Reloading technique library, no modified techniques found
2025-03-18 13:32:39+0000 INFO  com.normation.rudder.services.policies.DeployOnTechniqueCallback - Automatic batch update at 20250318T133239.695Z
2025-03-18 13:32:39+0000 INFO  status.techniques - All techniques have success compilation result
2025-03-18 13:32:39+0000 INFO  status.techniques - All techniques have success compilation result

Note that a generation was still triggered, and the techniques were still imported.
But there are no traces of groups, directives nor rules in the instance.
On 8.2, the error message used to be there, but everything was still imported.


Files

archive.zip (30.1 KB) archive.zip Félix DALLIDET, 2025-03-18 14:39

Related issues 1 (1 open0 closed)

Related to Rudder - Bug #24294: API Import does not reload imported techniques before importing elements that rely on themNewFrançois ARMANDActions
Actions #1

Updated by Félix DALLIDET 14 days ago

  • Priority changed from N/A to To review
Actions #2

Updated by François ARMAND 13 days ago

  • Priority changed from To review to N/A
  • Target version changed from 8.3.0~beta2 to 8.2.6

It looks like https://issues.rudder.io/issues/24294 but at least the error message should be there.

Actions #3

Updated by François ARMAND 13 days ago

  • Related to Bug #24294: API Import does not reload imported techniques before importing elements that rely on them added
Actions

Also available in: Atom PDF