Project

General

Profile

Actions

Architecture #7471

open

Techniques should be reloaded before importing an archive

Added by Nicolas CHARLES almost 9 years ago. Updated 14 days ago.

Status:
New
Priority:
4
Assignee:
-
Category:
Web - Config management
Target version:
Effort required:
Very Small
Name check:
Fix check:
Regression:

Description

I put files in /var/rudder/configuraition-repository, git added them, and queried the api to import them in Rudder
curl -f -s "http://localhost:8080/rudder/api/archives/restore/full/latestCommit"

I had the following error

[2015-11-25 14:24:10] ERROR historization - Could not find version 1.0 for Technique with name someNewTechnique for Directive dc1d684f-eb61-48ae-a074-13e876a055df

Generation obviously fails, and the Web Interface complains that it doesn't find the technique (in the directive screen, the technique is in red)

After 5 minutes, problem automagically solves itself as the techniques is correctly imported by auto-import

WORKAROUND: this is because the technique library is not updated before an import, and so the new techniques in the git are not seen. After 5 minutes, the default "auto-update technique library" process happened. So the work around is to force a technique reload before importing:

# add files on git & git commit, then:
curl -f -s "http://localhost:8080/rudder/api/techniqueLibrary/reload" 
curl -f -s "http://localhost:8080/rudder/api/archives/restore/full/latestCommit" 

Related issues 3 (2 open1 closed)

Related to Rudder - Bug #4480: When restoring archive (full or groups) dynamic groups are created emptyReleasedNicolas CHARLESActions
Related to Rudder - Bug #20520: Error while importing ncf techniques using the restore from latest commit featureNewActions
Related to Rudder - Bug #24294: API Import does not reload imported techniques before importing elements that rely on themNewFrançois ARMANDActions
Actions

Also available in: Atom PDF