Project

General

Profile

Bug #14354

New techniques are not added to directive tree

Added by Nicolas CHARLES 9 months ago. Updated 15 days ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
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
Effort required:
Priority:
83

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

Related to Rudder - Bug #15954: typo in ncf techniques category nameReleasedActions
Related to Rudder - Bug #15809: Webapp does not wait long enough for technique editor API response, which can break startupReleasedActions

Associated revisions

Revision 783e194c (diff)
Added by Vincent MEMBRÉ about 1 month ago

Fixes #14354: New techniques are not added to directive tree

History

#1

Updated by Nicolas CHARLES 9 months 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 ..
#2

Updated by Nicolas CHARLES 9 months 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

#3

Updated by Nicolas CHARLES 9 months ago

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

#4

Updated by François ARMAND 8 months 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.

#5

Updated by François ARMAND 8 months 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
#6

Updated by Félix DALLIDET about 2 months 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

#7

Updated by Alexis MOUSSET about 2 months 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.

#8

Updated by Nicolas CHARLES about 1 month ago

Still true

#9

Updated by Nicolas CHARLES about 1 month 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
"

#10

Updated by Nicolas CHARLES about 1 month ago

category.xml is in ncf_technique and not in ncf_techniques

#11

Updated by Nicolas CHARLES about 1 month ago

  • Status changed from New to Rejected

Fixed in #15954

#12

Updated by Nicolas CHARLES about 1 month ago

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

Updated by Nicolas CHARLES about 1 month ago

renaming the folder ncf_technique to ncf_techniques fixes the issue

#14

Updated by Nicolas CHARLES about 1 month ago

  • Status changed from Rejected to New

reopening, as it does not fix for new technique

#15

Updated by Vincent MEMBRÉ about 1 month ago

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

Updated by Vincent MEMBRÉ about 1 month ago

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

Updated by Vincent MEMBRÉ about 1 month 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
#18

Updated by Vincent MEMBRÉ about 1 month ago

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

Updated by Vincent MEMBRÉ 15 days 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.

Also available in: Atom PDF