Bug #14354
closed
New techniques are not added to directive tree
Added by Nicolas CHARLES almost 6 years ago.
Updated about 5 years ago.
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Description
When trying to save a technique, error is:
[2019-10-02 11:40:36] INFO policy.generation - Flag file '/opt/rudder/etc/policy-update-running' successfully removed
[2019-10-02 11:40:36] INFO policy.generation - Successful policy update '5' [started 2019-10-02 11:40:33 - ended 2019-10-02 11:40:36]
[2019-10-02 11:41:29] INFO com.normation.rudder.rest.RestAuthentication - User(admin,c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec)
[2019-10-02 11:41:52] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Can not find the parent (root) category '/ncf_techniques/bob/1.0' for package 'bob/1.0'
[2019-10-02 11:41:52] INFO com.normation.cfclerk.services.impl.TechniqueRepositoryImpl - Reloading technique library, no modified techniques found
[2019-10-02 11:41:52] INFO com.normation.rudder.services.policies.DeployOnTechniqueCallback - Update Technique library after creating files for ncf Technique bob
[2019-10-02 11:42:38] INFO com.normation.rudder.rest.RestAuthentication - User(admin,c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec)
And it is saved in the technique editor but does not show up in directive tree.
# ls -alh /var/lib/ncf-api-venv/
total 8.0K
drwxr-xr-x 2 root root 4.0K Nov 22 2017 .
drwxr-xr-x 31 root root 4.0K Feb 20 11:44 ..
permissions should be
# ls -alh /var/lib/ncf-api-venv/
total 24K
drwxr-xr-x 3 ncf-api-venv ncf-api-venv 4.0K Jan 22 2015 .
drwxr-xr-x 42 root root 4.0K Nov 15 2017 ..
-rw-r--r-- 1 ncf-api-venv ncf-api-venv 220 Jul 13 2012 .bash_logout
-rw-r--r-- 1 ncf-api-venv ncf-api-venv 3.4K Jul 13 2012 .bashrc
drwxr-xr-x 11 ncf-api-venv www-data 4.0K Apr 12 2018 .cfagent
-rw-r--r-- 1 ncf-api-venv ncf-api-venv 675 Jul 13 2012 .profile
chown ncf-api-venv:ncf-api-venv /var/lib/ncf-api-venv/ solves the issue
- Severity set to Critical - prevents main use of Rudder | no workaround | data loss | security
- User visibility set to Getting started - demo | first install | Technique editor and level 1 Techniques
- Priority changed from 0 to 94
5.1 is broken for now with that bug.
- Subject changed from cannot create techniques in rudder 5.1 to perm error: cannot create techniques in rudder 5.1
- Category changed from Web - Technique editor to Packaging
- Assignee set to Benoît PECCATTE
- Priority changed from 94 to 93
- Priority changed from 93 to 84
Still relevant but I had a different error:
[2019-10-02 11:40:36] INFO policy.generation - Flag file '/opt/rudder/etc/policy-update-running' successfully removed
[2019-10-02 11:40:36] INFO policy.generation - Successful policy update '5' [started 2019-10-02 11:40:33 - ended 2019-10-02 11:40:36]
[2019-10-02 11:41:29] INFO com.normation.rudder.rest.RestAuthentication - User(admin,c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec)
[2019-10-02 11:41:52] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Can not find the parent (root) category '/ncf_techniques/bob/1.0' for package 'bob/1.0'
[2019-10-02 11:41:52] INFO com.normation.cfclerk.services.impl.TechniqueRepositoryImpl - Reloading technique library, no modified techniques found
[2019-10-02 11:41:52] INFO com.normation.rudder.services.policies.DeployOnTechniqueCallback - Update Technique library after creating files for ncf Technique bob
[2019-10-02 11:42:38] INFO com.normation.rudder.rest.RestAuthentication - User(admin,c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec)
Technique is well created from the technique editor point of view but does not show up in the directive tree nor in /var/rudder/configuration-repository/techniques/ncf_technique
- Subject changed from perm error: cannot create techniques in rudder 5.1 to New techniques are not added to directive tree
- Description updated (diff)
Reproduced today: technique is created but does not appear in the directive tree.
Techniques files were not commited
I added them, made the commit and reloaded the technique, webapp said
"
[2019-10-16 09:58:25+0000] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Can not find the parent (root) category '/ncf_techniques/sqfsqfsqfs
qfsqfsfsf/1.0' for package 'sqfsqfsqfsqfsqfsfsf/1.0'
...
[2019-10-16 09:58:40+0000] DEBUG com.normation.cfclerk.services.impl.TechniqueRepositoryImpl - Not reloading technique library as nothing changed since last reload
"
category.xml is in ncf_technique and not in ncf_techniques
- Status changed from New to Rejected
- Related to Bug #15954: typo in ncf techniques category name added
renaming the folder ncf_technique to ncf_techniques fixes the issue
- Status changed from Rejected to New
reopening, as it does not fix for new technique
- Related to Bug #15809: Webapp does not wait long enough for technique editor API response, which can break startup added
- Status changed from New to In progress
- Assignee changed from Benoît PECCATTE to Vincent MEMBRÉ
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2534
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
- Priority changed from 84 to 83
This bug has been fixed in Rudder 6.0.0~beta1 which was released today.
Also available in: Atom
PDF