Bug #7202
closedTechnique Editor and Rudder Techniques Library isn't coherent
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
Files
Updated by Vincent MEMBRÉ over 9 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 ...)
Updated by Florian Dhomps over 9 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
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.14 to 2.11.15
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.11.15 to 2.11.16
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.11.16 to 2.11.17
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.11.17 to 2.11.18
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.18 to 2.11.19
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.19 to 2.11.20
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.20 to 2.11.21
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.21 to 2.11.22
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.22 to 2.11.23
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.23 to 2.11.24
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.24 to 308
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 308 to 3.1.14
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.14 to 3.1.15
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.15 to 3.1.16
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.16 to 3.1.17
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by Jonathan CLARKE almost 8 years ago
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.22 to 3.1.23
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.25 to 387
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 387 to 4.1.10
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by François ARMAND about 6 years ago
- Status changed from New to Rejected
- Priority changed from 27 to 0
This is in fact a duplicate of #5432
Updated by François ARMAND about 6 years ago
- Is duplicate of Bug #5432: Deleted Technique from technique editor are still present in directive tree view added