Actions
Bug #26125
openAfter removing techniques, they still appear in the techniques tree and filesystem
Pull Request:
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
No data to display
Actions