Project

General

Profile

Tâche #29966

Scénario #29921: Sphynx 2.8.0 : Porter ARV en python 3

Porter l'agent Zéphir RVP en Python 3

Added by Fabrice Barconnière 3 months ago. Updated about 1 month ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
05/20/2020
Due date:
% Done:

100%

Estimated time:
0.00 h
Remaining (hours):
0.0

Description

ARV utilise du code de l'agent RVP.
De plus le diagnose renvoie une erreur :

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

Associated revisions

Revision 6200440d (diff)
Added by Emmanuel GARETTE about 2 months ago

portage des agents Sphynx en python3 (ref #29966)

Revision 1d12e103 (diff)
Added by Emmanuel GARETTE about 1 month ago

converti bytes => str (ref #29966)

History

#1 Updated by Emmanuel GARETTE about 2 months ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Emmanuel GARETTE
  • Start date set to 05/20/2020

#2 Updated by Emmanuel GARETTE about 2 months ago

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

#3 Updated by Fabrice Barconnière about 1 month ago

  • Status changed from Résolu to En cours

#4 Updated by Fabrice Barconnière about 1 month ago

Traceback dans l'agent rvp :

2020-05-27T10:45:54.158932+02:00 amon.etb1.lan zephiragents[71537]: 2020-05-27T10:45:54+0200 [stderr#error] Traceback (most recent call last):
2020-05-27T10:45:54.159202+02:00 amon.etb1.lan zephiragents[71537]: 2020-05-27T10:45:54+0200 [stderr#error]   File "/usr/lib/python3/dist-packages/zephir/monitor/agents/rvp.py", line 55, in parse_ipsec_statusall
2020-05-27T10:45:54.159453+02:00 amon.etb1.lan zephiragents[71537]: 2020-05-27T10:45:54+0200 [stderr#error]     if "statusall" in response:
2020-05-27T10:45:54.159513+02:00 amon.etb1.lan zephiragents[71537]: 2020-05-27T10:45:54+0200 [stderr#error] TypeError: a bytes-like object is required, not 'str'
2020-05-27T10:45:54.159713+02:00 amon.etb1.lan zephiragents[71537]: 2020-05-27T10:45:54+0200 [-] a bytes-like object is required, not 'str'
2020-05-27T10:45:54.159851+02:00 amon.etb1.lan zephiragents: [-] a bytes-like object is required, not 'str

#5 Updated by Emmanuel GARETTE about 1 month ago

  • Status changed from En cours to Résolu

Pour le diagnose, je ne reproduit pas :

root@sphynx:~# /usr/share/eole/diagnose/152-rvp
*** Réseau virtuel privé
.                         VPN => Aucun tunnel
.                         ARV => Ok

root@sphynx:~# 

#6 Updated by Fabrice Barconnière about 1 month ago

Je ferme, l'agent semble fonctionner, il génère les stats mais la page web ne s'affiche pas (cf #30221).
OK pour le diagnose, le traceback se produisait logiquement avant le portage en python3.

#7 Updated by Fabrice Barconnière about 1 month ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF