Project

General

Profile

Tâche #29847

Scénario #29650: Faire fonctionner Zéphir-web + GenConfig en 2.8.0

Porter les agents Zéphir en python3

Added by Emmanuel GARETTE over 2 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/02/2020
Due date:
% Done:

100%

Estimated time:
0.00 h
Remaining (hours):
0.0

Associated revisions

Revision d8a92290 (diff)
Added by Emmanuel GARETTE over 2 years ago

port des fonctions utiles pour les agents Zéphir en python3 (ref #29847)

Revision db97d80a (diff)
Added by Emmanuel GARETTE over 2 years ago

suppression de la duplication de l'entrée activer_ead_web (ref #29847)

Revision 55a42627 (diff)
Added by Emmanuel GARETTE over 2 years ago

port de l'agent Zéphir debsums en python3 (ref #29847)

Revision fd8c3c2b (diff)
Added by Emmanuel GARETTE over 2 years ago

port de l'agent Zéphir debsums en python3 (ref #29847)

Revision 92f393a2 (diff)
Added by Emmanuel GARETTE over 2 years ago

portage des agents Zéphir en python3 (ref #29847)

Revision 10b9b2ae (diff)
Added by Emmanuel GARETTE over 2 years ago

portage des agents Zéphir en python3 (ref #29847)

Revision d882a9a1 (diff)
Added by Emmanuel GARETTE over 2 years ago

port de l'agent Zéphir debsums en python3 (ref #29847)

Revision 2d23465c (diff)
Added by Emmanuel GARETTE over 2 years ago

correction Makefile (ref #29847)

Revision 3e48996a (diff)
Added by Emmanuel GARETTE over 2 years ago

correction Makefile (ref #29847)

Revision 0eca3853 (diff)
Added by Emmanuel GARETTE over 2 years ago

portage des agents Zéphir en python3 (ref #29847)

Revision 562852a8 (diff)
Added by Emmanuel GARETTE over 2 years ago

correction Makefile (ref #29847)

Revision 30f9c4ea (diff)
Added by Emmanuel GARETTE over 2 years ago

correction Makefile (ref #29847)

Revision 51c53f73 (diff)
Added by Emmanuel GARETTE over 2 years ago

port en python3 (ref #29847)

Revision f61234fe (diff)
Added by Emmanuel GARETTE over 2 years ago

Port de Zéphir (ref #29847)

Revision 1d6448ad (diff)
Added by Emmanuel GARETTE over 2 years ago

correction agents en python3 (ref #29847)

Revision a9224c20 (diff)
Added by Joël Cuissinat over 2 years ago

Toutes les fonctions "diagnose" semblent compatibles python3

ref #29847

Revision 20d73152 (diff)
Added by Joël Cuissinat over 2 years ago

  • show-reports.py : portage python3

(ref #29847)

History

#1 Updated by Emmanuel GARETTE over 2 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Emmanuel GARETTE over 2 years ago

  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE over 2 years ago

  • Status changed from En cours to Résolu

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

Ne peut pas tester. Les modules 2.8.0 ne s'instancient pas.
On verra à la qualification.

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

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

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

  • Status changed from Fermé to En cours
  • Estimated time set to 0.00 h

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

Diagnose d'un Sphynx 2.8.0 instancié :

*** Mise à jour
.        Dernière mise à jour => OK (Mise à jour terminée avec succès (état le 16 Apr 2020 09:32:15))
.        Reconfigure effectué => OK
.           Reboot nécessaire => Non

Traceback (most recent call last):
  File "/usr/share/eole/diagnose/152-rvp", line 14, in <module>
    from zephir.monitor.agents.rvp import parse_ipsec_statusall
ImportError: No module named zephir.monitor.agents.rvp
run-parts: /usr/share/eole/diagnose/152-rvp exited with return code 1

#8 Updated by Fabrice Barconnière over 2 years ago

z_stats ne se lance pas sur un Sphynx 2.8.0 instancié :

2020-04-16T09:52:27.981237+02:00 sphynx.ac-test.fr zephiragents[24563]: Traceback (most recent call last):
2020-04-16T09:52:27.981417+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/bin/twistd3", line 11, in <module>
2020-04-16T09:52:27.981482+02:00 sphynx.ac-test.fr zephiragents[24563]:     load_entry_point('Twisted==18.9.0', 'console_scripts', 'twistd')()
2020-04-16T09:52:27.981618+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/scripts/twistd.py", line 31, in run
2020-04-16T09:52:27.981701+02:00 sphynx.ac-test.fr zephiragents[24563]:     app.run(runApp, ServerOptions)
2020-04-16T09:52:27.981752+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 669, in run
2020-04-16T09:52:27.981797+02:00 sphynx.ac-test.fr zephiragents[24563]:     config.parseOptions()
2020-04-16T09:52:27.981858+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 636, in parseOptions
2020-04-16T09:52:27.981918+02:00 sphynx.ac-test.fr zephiragents[24563]:     usage.Options.parseOptions(self, options)
2020-04-16T09:52:27.981977+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/python/usage.py", line 265, in parseOptions
2020-04-16T09:52:27.982035+02:00 sphynx.ac-test.fr zephiragents[24563]:     self.subOptions = parser()
2020-04-16T09:52:27.982083+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 660, in <lambda>
2020-04-16T09:52:27.982135+02:00 sphynx.ac-test.fr zephiragents[24563]:     lambda plug=plug: plug.options(),
2020-04-16T09:52:27.982186+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/application/service.py", line 77, in get
2020-04-16T09:52:27.982265+02:00 sphynx.ac-test.fr zephiragents[24563]:     return namedAny(self.module).Options
2020-04-16T09:52:27.982312+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 308, in namedAny
2020-04-16T09:52:27.982384+02:00 sphynx.ac-test.fr zephiragents[24563]:     topLevelPackage = _importAndCheckStack(trialname)
2020-04-16T09:52:27.982435+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/twisted/python/reflect.py", line 247, in _importAndCheckStack
2020-04-16T09:52:27.982498+02:00 sphynx.ac-test.fr zephiragents[24563]:     return __import__(importName)
2020-04-16T09:52:27.982563+02:00 sphynx.ac-test.fr zephiragents[24563]:   File "/usr/lib/python3/dist-packages/zephir/monitor/agentmanager/zephir_tap.py", line 20, in <module>
2020-04-16T09:52:27.982652+02:00 sphynx.ac-test.fr zephiragents[24563]:     gettext.install(APP, DIR, unicode=False)
2020-04-16T09:52:27.982718+02:00 sphynx.ac-test.fr zephiragents[24563]: TypeError: install() got an unexpected keyword argument 'unicode'

#9 Updated by Fabrice Barconnière over 2 years ago

Pour l'erreur diagnose (#29847#note-7), sera traité dans #29966.

#10 Updated by Emmanuel GARETTE over 2 years ago

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

#11 Updated by Fabrice Barconnière over 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF