Project

General

Profile

Actions

Bug #26125

open

After removing techniques, they still appear in the techniques tree and filesystem

Added by Michel BOUISSOU 5 days ago.

Status:
New
Priority:
To review
Assignee:
-
Category:
-
Target version:
Severity:
UX impact:
I hate Rudder for that
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

Rudder server 8.2.2

After removing techniques by using the GUI “Archive / Restore everything” to restore a previous GIT snapshot at a point in time when these techniques didn't yet exist :

  • They are removed from the “Techniques” GUI page.
  • But they still appear in the “techniques tree” in the “Reference technique library” (left pane)
  • They are still present on the filesystem in /var/rudder/configuration-repository/techniques/ncf_techniques
  • A subsequent attempt to import these techniques again from an archive using the API silently fails :
  • It shows a success output :
root@server:/tmp# curl --insecure --header "X-API-Token: $(cat /var/rudder/run/api-token)" -X POST https://localhost/rudder/api/latest/archives/import --form "archive=@tech-ONLY_240502aa.zip" --form "merge=keep-rule-groups" 
{"action":"import","result":"success","data":{"success":true}}root@server:/tmp# 
root@server:/tmp# rudder server reload-techniques
ok: reload techniques from files.
  • The webapp log shows an import success :
2025-01-02 10:15:44+0000 INFO  application.archive - Received a new policy archive 'tech-ONLY_240502aa.zip', processing
2025-01-02 10:15:48+0000 INFO  application.archive - Uploaded archive 'tech-ONLY_240502aa.zip' processed successfully
2025-01-02 10:15:48+0000 INFO  policy.generation - Start policy generation, checking updated rules
2025-01-02 10:15:49+0000 INFO  policy.generation - [metrics] Xmx:1 GB nodes:2 (cached:2) rules:4 (enabled:3) techniques:8 (enabled:8) directives:8 (enabled:8) groups:2 (dynamic:2) parameters:2
2025-01-02 10:15:49+0000 INFO  policy.generation - No node configuration was updated, no policies to write
  • Still the imported techniques do not show up on the GUI “Techniques page”
  • But they do still appear on the “Technique tree” page
  • AND IT IS POSSIBLE to reactivate them by dragging them from the left pane to the right pane (Although the drag-drop process does not function quite well).

Files

Empty_techniques_250102a.png (13.4 KB) Empty_techniques_250102a.png No techniques on techniques page Michel BOUISSOU, 2025-01-02 11:07
Still_present_techniques_250102a.png (169 KB) Still_present_techniques_250102a.png Techniques present in techniques tree Michel BOUISSOU, 2025-01-02 11:07
Import_silent_fail_250102a.png (20.8 KB) Import_silent_fail_250102a.png Import silently fails Michel BOUISSOU, 2025-01-02 11:29
Import_webapp_log_250102a.png (30.4 KB) Import_webapp_log_250102a.png Import Webapp log Michel BOUISSOU, 2025-01-02 11:29
Some_techniques_dragged_back_250102a.png (82.9 KB) Some_techniques_dragged_back_250102a.png Techniques dragged back Michel BOUISSOU, 2025-01-02 11:30
Dragged_techniques_reappeared_250102a.png (26.3 KB) Dragged_techniques_reappeared_250102a.png Dragged techniques reappeared Michel BOUISSOU, 2025-01-02 11:30

No data to display

Actions

Also available in: Atom PDF