Project

General

Profile

Tâche #31059

Scénario #31087: Zéphir 2.8.0 : Corrections python 3 (2.8.0-beta1)

Correction ZC-T06-001 - Vérification de la remontée de statistiques (2.8.0-beta1)

Added by Joël Cuissinat 11 months ago. Updated 10 months ago.

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

0%

Estimated time:
0.00 h
Remaining (hours):
0.0

Description

Pas №1

Les tests Onduleur sont en rouge dans Zéphir

Pas №4

Vérifier la temporisation.

Indépendamment du test, j'ai constaté des erreurs dans les logs zephiragents :

2020-11-06T14:16:39.103343+01:00 scribe.dompedago.etb1.lan zephiragents[5874]: 2020-11-06T14:16:39+0100 [-] /!\ Agent dhcp, exception during measure: a bytes-like object is required, not 'str' (ligne 654)
2020-11-06T14:16:39.103791+01:00 scribe.dompedago.etb1.lan zephiragents: [-] /!\ Agent dhcp, exception during measure: a bytes-like object is required, not 'str' (ligne 654)

2020-11-06T14:16:37.877970+01:00 scribe.dompedago.etb1.lan zephiragents: [-] Unhandled error in Deferred:
2020-11-06T14:16:37.878134+01:00 scribe.dompedago.etb1.lan zephiragents: [-] Unhandled Error
2020-11-06T14:16:37.878204+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011Traceback (most recent call last):
2020-11-06T14:16:37.878272+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011  File "/usr/lib/python3/dist-packages/twisted/internet/_baseprocess.py", line 64, in maybeCallProcessEnded
2020-11-06T14:16:37.878360+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011    proto.processEnded(Failure(reason))
2020-11-06T14:16:37.878434+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011  File "/usr/lib/python3/dist-packages/twisted/internet/utils.py", line 93, in processEnded
2020-11-06T14:16:37.878517+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011    self.deferred.callback(self.s.getvalue())
2020-11-06T14:16:37.878594+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 460, in callback
2020-11-06T14:16:37.878669+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011    self._startRunCallbacks(result)
2020-11-06T14:16:37.878748+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
2020-11-06T14:16:37.878821+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011    self._runCallbacks()
2020-11-06T14:16:37.878896+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011--- <exception caught here> ---
2020-11-06T14:16:37.878977+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
2020-11-06T14:16:37.879060+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011    current.result = callback(current.result, *args, **kw)
2020-11-06T14:16:37.879144+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011  File "/usr/lib/python3/dist-packages/zephir/monitor/agents/web.py", line 37, in process_tcp
2020-11-06T14:16:37.879236+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011    if 'alive' in tcp_result:
2020-11-06T14:16:37.879316+01:00 scribe.dompedago.etb1.lan zephiragents: [-] #011builtins.TypeError: a bytes-like object is required, not 'str'

2020-11-06T14:14:54.987904+01:00 scribe.dompedago.etb1.lan zephiragents[5874]: 2020-11-06T14:14:54+0100 [-] !! Erreur rencontrée lors du calcul du md5 de config.eol !!
2020-11-06T14:14:54.988042+01:00 scribe.dompedago.etb1.lan zephiragents: [-] !! Erreur rencontrée lors du calcul du md5 de config.eol !!
2020-11-06T14:14:54.988687+01:00 scribe.dompedago.etb1.lan zephiragents[5874]: 2020-11-06T14:14:54+0100 [stderr#error] Traceback (most recent call last):
2020-11-06T14:14:54.988828+01:00 scribe.dompedago.etb1.lan zephiragents[5874]: 2020-11-06T14:14:54+0100 [stderr#error]   File "/usr/lib/python3/dist-packages/zephir/monitor/agentmanager/zephirservice.py", line 326, in _check_md5
2020-11-06T14:14:54.988877+01:00 scribe.dompedago.etb1.lan zephiragents[5874]: 2020-11-06T14:14:54+0100 [stderr#error]     conf = json.load(file(orig_eol).read())
2020-11-06T14:14:54.989052+01:00 scribe.dompedago.etb1.lan zephiragents[5874]: 2020-11-06T14:14:54+0100 [stderr#error] NameError: name 'file' is not defined

Exécution Squash-TM

Associated revisions

Revision 3df2c288 (diff)
Added by Philippe Caseiro 10 months ago

Fix python3 port for nut monitor

ref #31059

Revision 42b2ddc7 (diff)
Added by Philippe Caseiro 10 months ago

Fix python3 port for nut monitor

ref #31059

History

#1 Updated by Joël Cuissinat 11 months ago

  • Copied from Tâche #30975: Correction <ID_DU_TEST> - <nom test> - <NOM DU JEU DE DONNÉES> (2.8.0-beta1) added

#2 Updated by Fabrice Barconnière 11 months ago

  • Copied from deleted (Tâche #30975: Correction <ID_DU_TEST> - <nom test> - <NOM DU JEU DE DONNÉES> (2.8.0-beta1))

#3 Updated by Joël Cuissinat 11 months ago

  • Parent task changed from #30862 to #31087

#4 Updated by Philippe Caseiro 11 months ago

  • Assigned To set to Philippe Caseiro

#5 Updated by Philippe Caseiro 10 months ago

  • Status changed from Nouveau to En cours

#6 Updated by Philippe Caseiro 10 months ago

  • Status changed from En cours to Résolu

#7 Updated by Fabrice Barconnière 10 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF