Tâche #10950
Distribution EOLE - Scénario #10752: Assistance aux utilisateurs (11-13)
Application des patchs
Description
Les patchs ne s'appliquent pas en 2.4.1.
Le diagnose est toujours en erreur et les fichiers ne sont pas modifiés après le reconfigure.
Problème reproduit en formation avec des Scribe 2.4.1 et sur AmonÉcole 2.4.1.
Le gen_patch fonctionne correctement.
Related issues
History
#1 Updated by Joël Cuissinat about 8 years ago
- Tracker changed from Anomalie to Tâche
- Project changed from Distribution EOLE to creole
- Estimated time set to 2.00 h
- Parent task set to #10752
- Remaining (hours) set to 2.0
#2 Updated by Joël Cuissinat about 8 years ago
- Status changed from Nouveau to En cours
#3 Updated by Joël Cuissinat about 8 years ago
- Assigned To set to Joël Cuissinat
- Remaining (hours) changed from 2.0 to 1.5
Je ne reproduis pas le problème mais j'attends un retour plus précis (exemple de patch ...).
#4 Updated by Joël Cuissinat about 8 years ago
Pour moi, le problème se produit uniquement si le template est désactivé.
root@amonecole:/usr/share/eole/diagnose# CreoleCat -dt clamd.conf root - Fichier template inexistant: clamd.conf Traceback (most recent call last): File "/usr/bin/CreoleCat", line 142, in main " {0}".format(options.template)) CreoleClientError: Fichier template inexistant: clamd.conf
Si on active l'antivirus sur la messagerie et sur le proxy, le template se retrouve patché 2 fois :
root@amonecole:~# CreoleSet exim_clamav oui root@amonecole:~# CreoleSet dansguardian_clam oui root@amonecole:~# CreoleCat -dt clamd.conf Instanciation du fichier '/etc/clamav/clamd.conf' depuis '/var/lib/creole/clamd.conf' Copie du template '/usr/share/eole/creole/distrib/clamd.conf' vers '/var/lib/creole' Patch du template '/var/lib/creole/clamd.conf' avec '/usr/share/eole/creole/patch/clamd.conf.patch' Traitement Cheetah : '/var/lib/creole/clamd.conf' vers '/var/lib/lxc/reseau/rootfs/etc/clamav/clamd.conf' Changement des propriétés : chown root:root /etc/clamav/clamd.conf Changement des propriétés : chmod 0644 /etc/clamav/clamd.conf Instanciation du fichier '/etc/clamav/clamd.conf' depuis '/var/lib/creole/clamd.conf' Copie du template '/usr/share/eole/creole/distrib/clamd.conf' vers '/var/lib/creole' Patch du template '/var/lib/creole/clamd.conf' avec '/usr/share/eole/creole/patch/clamd.conf.patch' Traitement Cheetah : '/var/lib/creole/clamd.conf' vers '/var/lib/lxc/internet/rootfs/etc/clamav/clamd.conf' Changement des propriétés : chown root:root /etc/clamav/clamd.conf Changement des propriétés : chmod 0644 /etc/clamav/clamd.confDu coup, j'entrevois deux possibilité de correction :
- ne pas tester les patches sur les templates désactivés
- appliquer les patches sur tous les templates, y compris les inactifs
Les templates "non déclarés" (en général pour être inclus dans d'autres) sont bien patchés (visible dans /var/log/reconfigure.log) :
2015-03-23 16:34:50,153: creole.template - Copie du template '/usr/share/eole/creole/distrib/smb-include_global.conf' vers '/var/lib/creole' 2015-03-23 16:34:50,153: creole.template - Patch du template '/var/lib/creole/smb-include_global.conf' avec '/usr/share/eole/creole/patch/smb-include_global.conf.patch'
#5 Updated by Joël Cuissinat about 8 years ago
- Remaining (hours) changed from 1.5 to 1.0
#6 Updated by Joël Cuissinat about 8 years ago
- Status changed from En cours to Fermé
- Remaining (hours) changed from 1.0 to 0.0
L'étude étant réalisée, j'ai préparé un scénario dédié à la résolution du problème : #11029
#7 Updated by Joël Cuissinat about 8 years ago
- % Done changed from 0 to 100