Project

General

Profile

Actions

Bug #14354

closed

New techniques are not added to directive tree

Added by Nicolas CHARLES almost 6 years ago. Updated about 5 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Priority:
83
Name check:
Fix check:
Regression:

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.


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #15954: typo in ncf techniques category nameReleasedNicolas CHARLESActions
Related to Rudder - Bug #15809: Webapp does not wait long enough for technique editor API response, which can break startupReleasedVincent MEMBRÉActions
Actions #1

Updated by Nicolas CHARLES almost 6 years ago

# 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 ..
Actions #2

Updated by Nicolas CHARLES almost 6 years ago

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

Actions #3

Updated by Nicolas CHARLES almost 6 years ago

chown ncf-api-venv:ncf-api-venv /var/lib/ncf-api-venv/ solves the issue

Actions #4

Updated by François ARMAND almost 6 years ago

  • 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.

Actions #5

Updated by François ARMAND over 5 years ago

  • 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
Actions #6

Updated by Félix DALLIDET about 5 years ago

  • 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

Actions #7

Updated by Alexis Mousset about 5 years ago

  • 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.

Actions #8

Updated by Nicolas CHARLES about 5 years ago

Still true

Actions #9

Updated by Nicolas CHARLES about 5 years ago

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
"

Actions #10

Updated by Nicolas CHARLES about 5 years ago

category.xml is in ncf_technique and not in ncf_techniques

Actions #11

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from New to Rejected

Fixed in #15954

Actions #12

Updated by Nicolas CHARLES about 5 years ago

  • Related to Bug #15954: typo in ncf techniques category name added
Actions #13

Updated by Nicolas CHARLES about 5 years ago

renaming the folder ncf_technique to ncf_techniques fixes the issue

Actions #14

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from Rejected to New

reopening, as it does not fix for new technique

Actions #15

Updated by Vincent MEMBRÉ about 5 years ago

  • Related to Bug #15809: Webapp does not wait long enough for technique editor API response, which can break startup added
Actions #16

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from New to In progress
  • Assignee changed from Benoît PECCATTE to Vincent MEMBRÉ
Actions #17

Updated by Vincent MEMBRÉ about 5 years ago

  • 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
Actions #18

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #19

Updated by Vincent MEMBRÉ about 5 years ago

  • 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.

Actions

Also available in: Atom PDF