Project

General

Profile

Bug #7202

Technique Editor and Rudder Techniques Library isn't coherent

Added by Florian Dhomps almost 3 years ago. Updated about 1 month ago.

Status:
New
Priority:
2
Assignee:
-
Category:
Web - Technique editor
Target version:
Target version (plugin):
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Pull Request:
Priority:
27

Description

Hi,
I have several problems with technical editor.

$ sudo ls /var/rudder/configuration-repository/ncf/50_techniques/
FusionInventory  SSMTP
$ sudo ls /var/rudder/configuration-repository/techniques/ncf_techniques/
category.xml  Enable_Backup_User  Enable_Backup_User_on_Debian_8  FusionInventory  SSMTP  VMWare_Tools

I juste use "FusionInventory" and "SSMTP" techniques.
Others are deleted in Technique Editor but are always present in the Rudder Directives.
And in Rudder directive, I have 2 FusionInventory technique. (look screen "techniques list in rudder directives").

$ dpkg -l |grep rudder
ii  rudder-agent                    3.0.8-jessie0               amd64        Configuration management and audit tool - agent
ii  rudder-inventory-endpoint       3.0.8-jessie0               all          Configuration management and audit tool - service to receive inventory data
ii  rudder-inventory-ldap           3.0.8-jessie0               amd64        Configuration management and audit tool - OpenLDAP
ii  rudder-jetty                    3.0.8-jessie0               all          Configuration management and audit tool - Jetty application server
ii  rudder-plugin-advancedreporting 2.3.0~release-jessie0       all          Configuration management and audit tool - advanced reporting plugin
ii  rudder-reports                  3.0.8-jessie0               all          Configuration management and audit tool - reports database
ii  rudder-server-root              3.0.8-jessie0               all          Configuration management and audit tool - root server base package
ii  rudder-techniques               3.0.8-jessie0               all          Configuration management and audit tool - techniques
ii  rudder-webapp                   3.0.8-jessie0               all          Configuration management and audit tool - webapp

$ dpkg -l |grep ncf
ii  ncf                             0.201508172248-jessie1      all          ncf - CFEngine framework
ii  ncf-api-virtualenv              3.0.8-jessie1               all          ncf - CFEngine framework
rudder_ncf_techniques.jpeg (10.1 KB) rudder_ncf_techniques.jpeg techniques list in rudder directives Florian Dhomps, 2015-09-18 11:05
rudder_library.jpeg (15 KB) rudder_library.jpeg techniques list in rudder library Florian Dhomps, 2015-09-18 11:05
rudder_technique_editor.png (91.7 KB) rudder_technique_editor.png techniques list in rudder technique editor Florian Dhomps, 2015-09-18 11:18

History

#1 Updated by Vincent MEMBRÉ almost 3 years ago

  • Priority changed from N/A to 2
  • Target version set to 2.11.14

Rudder techniques are not deleted when you delete them in technique editor.

You have to remove them from:

  • The user technique library (go to techniques pages, click on each you want to delete, scrool down, click on delete button)
  • The git directory with 'git rm -r'
cd /var/rudder/configuration-repository/techniques/ncf_techniques/
git rm -r Enable_Backup_User Enable_Backup_User_on_Debian_8 VMWare_Tools

We should add a default post-delete hook that remove the technique from repoisotry if possible (it may not work if some Directive based on those techniques exists ...)

#2 Updated by Florian Dhomps almost 3 years ago

Hi,

I tried on a test platform and it isn't enough.
The technique is still present in the directives.

Just create 'Test' Technique

root@rudder:/var/rudder/configuration-repository/techniques/ncf_techniques# ls ../../ncf/50_techniques/
Test

root@rudder:/var/rudder/configuration-repository/techniques/ncf_techniques# git status                                                                                                                                                                                         
On branch master                                                                                                                                                                                                                                                               
Untracked files:                                                                                                                                                                                                                                                               
  (use "git add <file>..." to include in what will be committed)                                                                                                                                                                                                               

        ../../ncf/ncf.conf                                                                                                                                                                                                                                                     

nothing added to commit but untracked files present (use "git add" to track)                                                                                                                                                                                                   

Remove With NCF

root@rudder:/var/rudder/configuration-repository/techniques/ncf_techniques# git status
On branch master                                                                                                                                                                                                                                                               
Changes not staged for commit:                                                                                                                                                                                                                                                 
  (use "git add/rm <file>..." to update what will be committed)                                                                                                                                                                                                                
  (use "git checkout -- <file>..." to discard changes in working directory)                                                                                                                                                                                                    

        deleted:    ../../ncf/50_techniques/Test/Test.cf                                                                                                                                                                                                                       

Untracked files:                                                                                                                                                                                                                                                               
  (use "git add <file>..." to include in what will be committed)                                                                                                                                                                                                               

        ../../ncf/ncf.conf                                                                                                                                                                                                                                                     

no changes added to commit (use "git add" and/or "git commit -a")                                                                                                                                                                                                              

Remove Rudder Technique

       
root@rudder:/var/rudder/configuration-repository/techniques/ncf_techniques# git rm -r Test
rm 'techniques/ncf_techniques/Test/1.0/expected_reports.csv'
rm 'techniques/ncf_techniques/Test/1.0/metadata.xml'

root@rudder:/var/rudder/configuration-repository/techniques/ncf_techniques# git status
On branch master                                                                                                                                                                                                                                                               
Changes to be committed:                                                                                                                                                                                                                                                       
  (use "git reset HEAD <file>..." to unstage)                                                                                                                                                                                                                                  

        deleted:    Test/1.0/expected_reports.csv                                                                                                                                                                                                                              
        deleted:    Test/1.0/metadata.xml                                                                                                                                                                                                                                      

Changes not staged for commit:                                                                                                                                                                                                                                                 
  (use "git add/rm <file>..." to update what will be committed)                                                                                                                                                                                                                
  (use "git checkout -- <file>..." to discard changes in working directory)                                                                                                                                                                                                    

        deleted:    ../../ncf/50_techniques/Test/Test.cf                                                                                                                                                                                                                       

Untracked files:                                                                                                                                                                                                                                                               
  (use "git add <file>..." to include in what will be committed)                                                                                                                                                                                                               

        ../../ncf/ncf.conf                                                                                                                                                                                                                                                     

The technique is still present in the webapp after reboot server and manual technique update.

I am looking for other files 'Test'.

               
root@rudder:/var/rudder/configuration-repository/techniques/ncf_techniques# locate Test |grep var
/var/rudder/configuration-repository/directives/89636d5d-d552-4b72-b4ba-6655f4e5a6cc/Test
/var/rudder/configuration-repository/directives/89636d5d-d552-4b72-b4ba-6655f4e5a6cc/Test/activeTechniqueSettings.xml
rm -r /var/rudder/configuration-repository/directives/89636d5d-d552-4b72-b4ba-6655f4e5a6cc/Test

WebApp Directives.

  User Techniques
  - The technique with id ''Test'' is missing from repository

Thx

#3 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.14 to 2.11.15

#4 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.15 to 2.11.16

#5 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.16 to 2.11.17

#6 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.17 to 2.11.18

#7 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.18 to 2.11.19

#8 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.19 to 2.11.20

#9 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.20 to 2.11.21

#10 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.21 to 2.11.22

#11 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.22 to 2.11.23

#12 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 2.11.23 to 2.11.24

#13 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 2.11.24 to 308

#14 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 308 to 3.1.14

#15 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.14 to 3.1.15

#16 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.15 to 3.1.16

#17 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.16 to 3.1.17

#18 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.17 to 3.1.18

#19 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.18 to 3.1.19

#20 Updated by Jonathan CLARKE over 1 year ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings

#21 Updated by Benoît PECCATTE about 1 year ago

  • Priority set to 14

#22 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.19 to 3.1.20

#23 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.20 to 3.1.21

#24 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.21 to 3.1.22

#25 Updated by Benoît PECCATTE 12 months ago

  • Priority changed from 14 to 27

#26 Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 3.1.22 to 3.1.23

#27 Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 3.1.23 to 3.1.24

#28 Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 3.1.24 to 3.1.25

#29 Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 3.1.25 to 387

#30 Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 387 to 4.1.10

#31 Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 4.1.10 to 4.1.11

#32 Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 4.1.11 to 4.1.12

#33 Updated by Vincent MEMBRÉ about 1 month ago

  • Target version changed from 4.1.12 to 4.1.13

Also available in: Atom PDF