Tâche #36676
Scénario #36578: traceback agents Zéphir si eole-flag est installé
Etude
Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Début:
01/04/2025
Echéance:
% réalisé:
100%
Restant à faire (heures):
0.0
Description
En 2.9 il y a un warning mais le code est pleinement fonctionnel :
root@scribe:~# python3 /usr/share/zephir/monitor/configs/flag.agent
/usr/share/zephir/monitor/configs/flag.agent:10: DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead.
config.readfp(open('/etc/flag-switch.conf'))
Par contre ce n'est plus le cas en 2.10 :
root@scribe:~# python3 /usr/share/zephir/monitor/configs/flag.agent
Traceback (most recent call last):
File "/usr/share/zephir/monitor/configs/flag.agent", line 10, in <module>
config.readfp(open('/etc/flag-switch.conf'))
^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
La correction sera fait à partir de la 2.10.
Historique
#1 Mis à jour par Emmanuel GARETTE il y a 12 mois
- Statut changé de Nouveau à À valider
- % réalisé changé de 0 à 100
#2 Mis à jour par Emmanuel GARETTE il y a 12 mois
Au reconfigure j'ai ce warning :
/etc/tmpfiles.d/eole-flags.conf:1: Line references path below legacy directory /var/run/, updating /var/run/eole/flags → /run/eole/flags; please update the tmpfiles.d/ drop-in file accordingly.
Il faudrait corrigé pour éviter les problèmes potentiels futur.
#3 Mis à jour par Benjamin Bohard il y a 11 mois
- Statut changé de À valider à Résolu
#4 Mis à jour par Joël Cuissinat il y a 11 mois
- Statut changé de Résolu à Fermé
- Restant à faire (heures) mis à 0.0