Project

General

Profile

Tâche #31421

Scénario #31375: Zéphir 2.8.0 ne devrait plus fournir les données des modules 2.4 et 2.5

Les modules 2.4 et 2.5 sont présents dans le répertoire /usr/share/zephir/default_modules/

Added by Fabrice Barconnière almost 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Normal
Start date:
12/09/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Les numéros de module concernés sont 6, 7, 8, 9, 10 et 11
Il faudrait voir à ne plus les fournir (zephir-parc) dans /usr/share/zephir/eole_modules/ ainsi que les dictionnaires 2.4 et 2.5 dans /usr/share/zephir/dictionnaires/

Associated revisions

Revision bd5e3213 (diff)
Added by Fabrice Barconnière almost 2 years ago

Cleanup not maintained modules's datas

ref #31421

Revision 92577397 (diff)
Added by Fabrice Barconnière almost 2 years ago

Cleanup not maintained modules's datas

ref #31421

Revision 82a0d0ff (diff)
Added by Fabrice Barconnière almost 2 years ago

Don't show errors if directories are missing

ref #31421

Revision 55948511 (diff)
Added by Fabrice Barconnière almost 2 years ago

Cleanup not maintained modules schemas

ref #31421

Revision 29738c00 (diff)
Added by Fabrice Barconnière almost 2 years ago

Cleanup not maintained modules's datas

ref #31421

Revision c146fee5 (diff)
Added by Fabrice Barconnière almost 2 years ago

Don't show errors if directories are missing

ref #31421

Revision f68419e9 (diff)
Added by Fabrice Barconnière almost 2 years ago

Cleanup not maintained modules's datas

ref #31421

Revision aba7fe8c (diff)
Added by Fabrice Barconnière almost 2 years ago

Don't show errors if directories are missing

ref #31421

Revision 51030584 (diff)
Added by Fabrice Barconnière almost 2 years ago

Cleanup not maintained modules's datas

ref #31421

Revision 7259a586 (diff)
Added by Fabrice Barconnière almost 2 years ago

Don't show errors if directories are missing

ref #31421

History

#1 Updated by Fabrice Barconnière almost 2 years ago

  • Description updated (diff)

#2 Updated by Fabrice Barconnière almost 2 years ago

  • Description updated (diff)

#3 Updated by Fabrice Barconnière almost 2 years ago

  • Status changed from Nouveau to En cours

#4 Updated by Fabrice Barconnière almost 2 years ago

  • Assigned To set to Fabrice Barconnière

#5 Updated by Fabrice Barconnière almost 2 years ago

Si on supprime les "anciens" dictionnaires et qu'on restaure une sauvegarde 2.6.2 par exemple, on a ça dans les logs :
/var/log/rsyslog/local/zephir_backend/zephir_backend.info.log

2020-12-15T10:41:56.459833+01:00 zephir.ac-test.fr zephir_backend[11774]: 2020-12-15T10:41:56+0100 [-] Erreur de lecture de la configuration du serveur 632 ([Errno 2] No such file or directory: '/var/lib/zephir/conf/00000003/632/dicos/module/99-network.xml')
2020-12-15T10:41:56.459912+01:00 zephir.ac-test.fr zephir_backend: [-] Erreur de lecture de la configuration du serveur 632 ([Errno 2] No such file or directory: '/var/lib/zephir/conf/00000003/632/dicos/module/99-network.xml')

Et on n'accède plus à la liste des modules dans l'interface Zéphir :
/var/log/rsyslog/local/zephir_web/zephir_web.alert.log

2020-12-15T10:54:35.830412+01:00 zephir.ac-test.fr zephir_web: [-] Traceback (most recent call last):
2020-12-15T10:54:35.830473+01:00 zephir.ac-test.fr zephir_web: [-]   File "/usr/lib/python3/dist-packages/zephir/web/html/modules.py", line 276, in renderView
2020-12-15T10:54:35.830528+01:00 zephir.ac-test.fr zephir_web: [-]     self.content = """<h1>Liste des modules</h1>%s""" % self._dump_html(liste, stats['serv_modules'], dictpool_modules)
2020-12-15T10:54:35.830626+01:00 zephir.ac-test.fr zephir_web: [-]   File "/usr/lib/python3/dist-packages/zephir/web/html/modules.py", line 211, in _dump_html
2020-12-15T10:54:35.830684+01:00 zephir.ac-test.fr zephir_web: [-]     libelle_distrib = "EOLE-%s (Ubuntu %s)" % (DISTRIBS[d['version']][1], DISTRIBS[d['version']][0])
2020-12-15T10:54:35.830729+01:00 zephir.ac-test.fr zephir_web: [-] KeyError: 11

On ne peut pas faire le ménage comme ça

#6 Updated by Fabrice Barconnière almost 2 years ago

Lors de la restauration, le nettoyage ne supprime pas les serveurs et modules non supportés. Ça provoque des dysfontionnements dans l'interface Zéphir.
Les modules et serveurs < 2.7.0 sont toujours présents. On peut effectivement voir dans /usr/share/zephir/utils/cleanup_import.py qu'on ne supprime que les modules < 6 (cf #16988)

#7 Updated by Fabrice Barconnière almost 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#8 Updated by Laurent Flori almost 2 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF