Project

General

Profile

Actions

Bug #20704

open

After removing a block in a technique any new block is non working

Added by Benoît PECCATTE 6 months ago. Updated 24 days ago.

Status:
New
Priority:
N/A
Category:
Web - UI & UX
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:
65
Regression:

Description

  • create a technique with a method in it
  • add a block
  • add a method in it
  • save
  • move the method out
  • remove the block
  • save : there is an error
  • add a new block

-> the new block cannot be edited


Files

test_bloc_with_report2.json (2.38 KB) test_bloc_with_report2.json Elaad FURREEDAN, 2022-02-14 17:26
Actions #1

Updated by François ARMAND 6 months ago

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Getting started - demo | first install | Technique editor and level 1 Techniques
  • Priority changed from 0 to 70
Actions #2

Updated by Elaad FURREEDAN 6 months ago

  • Status changed from New to In progress
  • Assignee set to Elaad FURREEDAN
Actions #3

Updated by Elaad FURREEDAN 6 months ago

Can't reproduce
You shouldn't be able to save a technique with a block without component name anyway, but I can't figure it out how you manage to do this.

Actions #4

Updated by Elaad FURREEDAN 6 months ago

  • Status changed from In progress to New
Actions #5

Updated by Félix DALLIDET 6 months ago

Got a similar behaviour while creating a technique from scratch. I added a block and when I wanted to save I got a strange error, and then my technique could not be saved because another "shadow" one was taling its ID. I had to change its name, and when saving, I ended up with both techniques...
See the webapp logs below:

[2022-02-14 14:18:04+0000] INFO  policy.generation - [metrics] Xmx:1015 MB nodes:1 (cached:1) rules:4 (enabled:3) techniques:47 (enabled:47) directives:8 (enabled:8) groups:2 (dynamic:2) parameters:2
[2022-02-14 14:18:04+0000] ERROR com.normation.rudder.rest.RestUtils - "Could not create ncf technique <- An error occurred during technique update after files were created for ncf Technique Test bloc with report <- Unexpected: Accumulated: Error when automatically activating technique 'test_bloc_with_report'; cause was: Consistancy: Can not add a technique with id 'test_bloc_with_report' in user library. active technique 'activeTechniqueId=test_bloc_with_report,techniqueCategoryId=ncf_techniques,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration}' is already defined with such a reference technique." 
[2022-02-14 14:18:04+0000] INFO  policy.generation - No node configuration was updated, no policies to write
[2022-02-14 14:18:04+0000] DEBUG explain_compliance - Updated node configuration ids: 
[2022-02-14 14:18:04+0000] INFO  policy.generation.timing - Timing summary:

[2022-02-14 14:18:05+0000] INFO  policy.generation.timing - Policy generation succeeded in:           
[2022-02-14 14:18:05+0000] INFO  policy.generation.manager - Successful policy update '5' [started 2022-02-14 14:18:04 - ended 2022-02-14 14:18:05]
[2022-02-14 14:18:30+0000] ERROR com.normation.rudder.rest.RestUtils - "Could not create ncf technique <- Technique name and ID must be unique. Name 'Test bloc with report' and ID 'test_bloc_with_report' already used, they are case insensitive" 
[2022-02-14 14:19:06+0000] ERROR com.normation.rudder.rest.RestUtils - "Could not create ncf technique <- Technique name and ID must be unique. Name 'Test bloc with report' and ID 'test_bloc_with_report' already used, they are case insensitive" 
[2022-02-14 14:19:15+0000] INFO  techniques.reader - Reloading technique library, found modified technique(s): ['test_bloc_with_report2': updated (1.0: added)]
[2022-02-14 14:19:15+0000] INFO  com.normation.rudder.services.policies.TechniqueAcceptationUpdater - Automatically adding technique 'test_bloc_with_report2' in category 'User Techniques (ncf_techniques)' of active techniques library
[2022-02-14 14:19:15+0000] INFO  com.normation.rudder.services.policies.DeployOnTechniqueCallback - Update Technique library after creating files for ncf Technique Test bloc with report2
[2022-02-14 14:19:15+0000] INFO  policy.generation - Start policy generation, checking updated rules
[2022-02-14 14:19:15+0000] INFO  policy.generation - [metrics] Xmx:1015 MB nodes:1 (cached:1) rules:4 (enabled:3) techniques:48 (enabled:48) directives:8 (enabled:8) groups:2 (dynamic:2) parameters:2
[2022-02-14 14:19:15+0000] INFO  policy.generation - No node configuration was updated, no policies to write
[2022-02-14 14:19:15+0000] DEBUG explain_compliance - Updated node configuration ids: 
Actions #6

Updated by Elaad FURREEDAN 6 months ago

Still can't reproduce
Here is the JSON that may cause the bug

Actions #7

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.0.1 to 7.0.2
Actions #8

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 7.0.2 to 7.0.3
  • Priority changed from 70 to 68
Actions #9

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 7.0.3 to 7.0.4
  • Priority changed from 68 to 67
Actions #10

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.0.4 to 7.0.5
  • Priority changed from 67 to 66
Actions #11

Updated by Vincent MEMBRÉ 24 days ago

  • Target version changed from 7.0.5 to 7.0.6
  • Priority changed from 66 to 65
Actions

Also available in: Atom PDF