Projet

Général

Profil

Tâche #35321

Scénario #35309: Les fichiers complémentaires Zéphir sont vus comme non envoyé sur 2.7

Zephir-agent traceback dans la calcule des MD5 avec personnalisation serveur

Ajouté par Emmanuel GARETTE il y a environ un an. Mis à jour il y a 12 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
04/04/2023
Echéance:
% réalisé:

0%

Restant à faire (heures):

Description

Si on a ajouter une fichier personnalisé pour le serveur, on se retrouve avec un traceback :

avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'192.168.10.201')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'192.168.5.0')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'255.255.255.0')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'192.168.5.254')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'0')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'xxxxxxxx')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'192.168.10.201')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'0')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'192.168.5.0')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'255.255.255.0')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'xxxxxxxx')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'0')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stdout#info] (<type 'unicode'>, u'0')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'xxxxxxxx')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'0')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'xxxxxxxx')
avril 04 10:29:56 intranet zephiragents[955]: [-] (<type 'unicode'>, u'0')
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [-] !! Erreur rencontrée lors du calcul du md5 de config.eol !!
avril 04 10:29:56 intranet zephiragents[955]: [-] !! Erreur rencontrée lors du calcul du md5 de config.eol !!
avril 04 10:29:56 intranet zephiragents[955]: [-] Traceback (most recent call last):
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stderr#error] Traceback (most recent call last):
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stderr#error]   File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/zephirservice.py", line 388, in _check_md5
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stderr#error]     md5res = md5file(fichier_serveur)
avril 04 10:29:56 intranet zephiragents[955]: [-]   File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/zephirservice.py", line 388, in _check_md5
avril 04 10:29:56 intranet zephiragents[955]: [-]     md5res = md5file(fichier_serveur)
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stderr#error]   File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/util.py", line 149, in md5file
avril 04 10:29:56 intranet zephiragents[955]: [-]   File "/usr/lib/python2.7/dist-packages/zephir/monitor/agentmanager/util.py", line 149, in md5file
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stderr#error]     fh = open(filename)
avril 04 10:29:56 intranet zephiragents[955]: 2023-04-04T10:29:56+0200 [stderr#error] TypeError: coercing to Unicode: need string or buffer, PosixPath found
avril 04 10:29:56 intranet zephiragents[955]: [-]     fh = open(filename)
avril 04 10:29:56 intranet zephiragents[955]: [-] TypeError: coercing to Unicode: need string or buffer, PosixPath found

Les fichiers personnalisés sont toujours vu comme modifié.

Il semble y avoir le même genre de problème pour les fichiers de la variante.

Comme on peut voir, il y a aussi des print qui traine dans le code.

Problème constater sur 2.7.2.

Historique

#1 Mis à jour par Emmanuel GARETTE il y a environ un an

  • Description mis à jour (diff)

#2 Mis à jour par Emmanuel GARETTE il y a environ un an

  • Description mis à jour (diff)

#3 Mis à jour par Benjamin Bohard il y a environ un an

  • Lié à Scénario #35309: Les fichiers complémentaires Zéphir sont vus comme non envoyé sur 2.7 ajouté

#4 Mis à jour par Joël Cuissinat il y a 12 mois

  • Statut changé de Nouveau à Fermé
  • Assigné à mis à Joël Cuissinat
  • Tâche parente mis à #35309

Je constate bien ces erreurs sur mon Eolebase 2.7.2 avec le paquet zephir-client 2.7.2-26.

Elles disparaissent avec le paquet candidat : zephir-client 2.7.2-27.

Formats disponibles : Atom PDF