Project

General

Profile

Actions

Bug #24294

open

API Import does not reload imported techniques before importing elements that rely on them

Added by Michel BOUISSOU 11 months ago. Updated 1 day ago.

Status:
New
Priority:
1 (highest)
Category:
API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

The attached file was exported from a Rudder 8.0.4 server using :

curl --insecure --header "X-API-Token: $(cat /var/rudder/run/api-token)" "https://localhost/rudder/api/latest/archives/export?rules=212b0264-0322-49dc-844a-55d1403d5780,3350312d-b790-4c5e-ada5-3b5eeb2d354c,212b0264-0322-49dc-844a-55d1403d5780,6545e355-4f51-4dbd-ac25-14b00c1e83b0,21c06767-92f7-4ecb-a4b1-68127531eff4&groups=e8c2c43a-520d-42a5-b5da-32e72b99128d,9f0442f9-b85d-4669-bc0c-d4af7ee60205&include=all" --output lab_test_2_server_archive_240228b.zip

Trying to import it on a Rudder 8.0.6-nightly with :

curl --insecure --header "X-API-Token: $(cat /var/rudder/run/api-token)" -X POST https://localhost/rudder/api/latest/archives/import --form "archive=@lab_test_2_server_archive_240228b.zip" --form "merge=keep-rule-groups"

fails with :

{"action":"import","result":"error","errorDetails":"Inconsistency: Technique 'inventory_hook__headers_w_o_generic' is used in imported directive Inventory hook: Headers w/o generic but is not in Rudder"}

Although said technique is present in the archive file.

It appears that the importation doesn't properly reload the techniques after import, so the technique is not available when referenced.


Files


Related issues 7 (6 open1 closed)

Related to Rudder - Bug #24295: API export of groups doesn't export the categories as dependenciesReleasedVincent MEMBRÉActions
Related to Rudder - Bug #24013: Cannot import via API an archive made from an UI export of an archive via APINewFrançois ARMANDActions
Related to Rudder - Architecture #7471: Techniques should be reloaded before importing an archiveNewActions
Related to Rudder - Bug #20520: Error while importing ncf techniques using the restore from latest commit featureNewActions
Related to Rudder - Enhancement #22342: Add a "all" keyword for export API in place of listing UUIDs of rule/directive/etcNewFrançois ARMANDActions
Related to Rudder - Bug #26125: After removing techniques, they still appear in the techniques tree and filesystemNewFrançois ARMANDActions
Has duplicate Rudder - Bug #25928: cannot import ruleNewActions
Actions #1

Updated by Michel BOUISSOU 11 months ago

  • Related to Bug #24295: API export of groups doesn't export the categories as dependencies added
Actions #2

Updated by Michel BOUISSOU 11 months ago

  • Related to Bug #24013: Cannot import via API an archive made from an UI export of an archive via API added
Actions #3

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 8.0.7 to 8.0.8
Actions #4

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 8.0.8 to 8.0.9
Actions #5

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 8.0.9 to 8.0.10
Actions #6

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 8.0.10 to 1089
Actions #7

Updated by Alexis Mousset 6 months ago

  • Target version changed from 1089 to 8.1.6
Actions #8

Updated by Nicolas CHARLES 6 months ago

  • Related to Architecture #7471: Techniques should be reloaded before importing an archive added
Actions #9

Updated by Nicolas CHARLES 6 months ago

  • Related to Bug #20520: Error while importing ncf techniques using the restore from latest commit feature added
Actions #10

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 8.1.6 to 8.1.7
Actions #11

Updated by François ARMAND 4 months ago

  • Related to Enhancement #22342: Add a "all" keyword for export API in place of listing UUIDs of rule/directive/etc added
Actions #12

Updated by François ARMAND 4 months ago

  • Priority changed from N/A to 2
Actions #13

Updated by François ARMAND 4 months ago

  • Assignee set to François ARMAND
Actions #14

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 8.1.7 to 8.1.8
Actions #15

Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 8.1.8 to 8.1.9
Actions #16

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 8.1.9 to 8.1.10
Actions #17

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 8.1.10 to 8.1.11
Actions #18

Updated by Michel BOUISSOU 22 days ago

  • Has duplicate Bug #25928: cannot import rule added
Actions #19

Updated by Michel BOUISSOU 22 days ago

  • Priority changed from 2 to To review
Actions #20

Updated by Michel BOUISSOU 22 days ago

Has many duplicates and relateds, and is biting on a regular basis.
Please prioritize for a fix.

Actions #21

Updated by Michel BOUISSOU 22 days ago

A related problem, that may not be related but happened when examining the issue :

  • New VM with Rudder 8.2.2
  • Importing an archive containing both techniques and directives referring to them.
  • Import fails the 1st time (stating that the techniques refferred by directives are missing from Rudder)
  • After "rudder server reoad-techniques”, import succeeds on 2nd attempt.

Trying to reproduce once more :

  • From Utilities / Archive, “Restore all” from the 1st git commit on the system, effectively making everything that was previously imported disappear.
  • Trying to import again : No error message, everything seems to succeed, but nothing show up in the GUI afterwards
  • As if the import “succeeded” importing nothing.
Actions #22

Updated by François ARMAND 20 days ago

  • Priority changed from To review to 1 (highest)
Actions #23

Updated by François ARMAND 20 days ago

At least we need to put more log to explain what is happening, because that is blocking our documented way of saving/restoring rudder archives.

Actions #24

Updated by François ARMAND 13 days ago

  • Related to Bug #26125: After removing techniques, they still appear in the techniques tree and filesystem added
Actions #25

Updated by Vincent MEMBRÉ 12 days ago

  • Target version changed from 8.1.11 to 8.1.12
Actions

Also available in: Atom PDF