Bug #20184
closedRessource not found when creating a draft and comming back to it to save it as a technique
Description
I started a Technique in Rudder 7.0, and attached a ressource to it - but didn't save it
I then went to do something else, logged out, and logged in again
Went back to this technique, finished it and saved it - not using a ressource
When deploying the technique, I go the following error
⇨ Policy update error for process '49' at 2021-10-21 10:27:56 ⇨ Cannot write nodes configuration ⇨ Accumulated: Unexpected: Error when trying to open resource 'techniques/ncf_techniques/test_block/1.0/resources/brightness_364_512.icc'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects.
the technique doesn't show any ressource, not any way to remove it
yet metadata says
<FILE name="RUDDER_CONFIGURATION_REPOSITORY/techniques/ncf_techniques/test_block/1.0/resources/brightness_364_512.icc"> <INCLUDED>false</INCLUDED> <OUTPATH>test_block/1.0/resources/brightness_364_512.icc</OUTPATH> </FILE> </FILES>
It might be related to the fact that I have a draft technique with the same name, and the ressource is in there
it seems there is a collision between the draft and the technique, but changing the technique by adding a method in it converted it to "draft" (according to the tag next to it), but didn't change the actual draft
Files
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~beta2 to 7.0.0~beta3
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~beta3 to 7.0.0~rc1
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~rc1 to 7.0.0~rc2
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~rc2 to 7.0.0~rc3
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0~rc3 to 7.0.0
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0 to 7.0.1
Updated by Nicolas CHARLES almost 3 years ago
It appened also without leaving the technique
I created a technique, first attached parameter, then ressource, and generic method, and finally the name
I saved it
I tried to create a directive based on it and applied it, and I had a policy generation error about a missing ressource in technique; and it was indeed not there
Updated by Elaad FURREEDAN almost 3 years ago
- Status changed from New to In progress
- Assignee set to Elaad FURREEDAN
Updated by Elaad FURREEDAN almost 3 years ago
Work in progess here: https://github.com/ElaadF/rudder/commit/77f27f7ff9ca240d2b07383bdcad688b021121c4
Updated by Elaad FURREEDAN almost 3 years ago
Work in progess here: https://github.com/ElaadF/rudder/commit/bc361e464ec07378333641a7abd495acc8bab230
Updated by Elaad FURREEDAN almost 3 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Elaad FURREEDAN to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/4170
Updated by Anonymous almost 3 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|a068e9d91cc556329b0ee4315f8359e657cffadb.
Updated by Nicolas CHARLES almost 3 years ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ almost 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.1 which was released today.