Projet

Général

Profil

Tâche #12214

Scénario #15610: Corriger les problèmes liés à Creole 2.6

la présence de variable inconnue dans un extra fait planter creole_loader

Ajouté par Emmanuel GARETTE il y a presque 9 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
26/06/2015
Echéance:
% réalisé:

100%

Temps estimé:
2.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

root@amon:~# cat /etc/eole/extra/bacula/config.eol
{"___version___": "2.5.0", "serveur_maj_clients": {"owner": "basique", "val": ["test-eole.ac-dijon.fr"]}, "bacula.monitor.bacula_mon_password": {"owner": "creoled", "val": "cc9bdc7e9017fb696c82c2da7bcd2e8958fffaf3d0b928a5f7966cfb"}}root@amon:~# 
root@amon:~# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from creole.loader import creole_loader
>>> c=creole_loader(load_extra=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 378, in creole_loader
    load_extras(config, load_values=load_values)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 237, in load_extras
    config_load_values(config, extraname)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 534, in config_load_values
    force_load_owner=force_load_owner)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 473, in config_load_store
    eol_version, store = store_path_and_reorder(eol_version)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 463, in store_path_and_reorder
    store_key.sort(reorder_store)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 433, in reorder_store
    idx_2 = cache_paths.index(path2)
ValueError: tuple.index(x): x not in tuple
>>> 

Révisions associées

Révision 89bbbd58 (diff)
Ajouté par Emmanuel GARETTE il y a presque 8 ans

support des variables extra inconnues (ref #12214 @1h)

Historique

#1 Mis à jour par Joël Cuissinat il y a environ 8 ans

  • Tracker changé de Anomalie à Proposition Scénario
  • Statut changé de Nouveau à À formaliser
  • Assigné à mis à Emmanuel GARETTE

Pour traitement express ?

#2 Mis à jour par Joël Cuissinat il y a environ 8 ans

  • Statut changé de À formaliser à Nouveau
  • Assigné à Emmanuel GARETTE supprimé
  • Temps estimé mis à 2.00 h

#3 Mis à jour par Joël Cuissinat il y a environ 8 ans

  • Tracker changé de Proposition Scénario à Tâche
  • Tâche parente mis à #15610
  • Restant à faire (heures) mis à 2.0

Le problème étant toujours présent sur EOLE 2.6, je propose de l'étudier sur cette version.

>>> from creole.loader import creole_loader
>>> c=creole_loader(load_extra=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 421, in creole_loader
    load_extras(config, load_values=load_values)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 275, in load_extras
    config_load_values(config, extraname)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 602, in config_load_values
    force_load_owner=force_load_owner)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 516, in config_load_store
    eol_version, store = store_path_and_reorder(eol_version)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 506, in store_path_and_reorder
    store_key.sort(reorder_store)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 475, in reorder_store
    idx_1 = cache_paths.index(path1)
ValueError: tuple.index(x): x not in tuple

#4 Mis à jour par Emmanuel GARETTE il y a presque 8 ans

  • Statut changé de Nouveau à En cours

#5 Mis à jour par Emmanuel GARETTE il y a presque 8 ans

  • Assigné à mis à Emmanuel GARETTE

#6 Mis à jour par Emmanuel GARETTE il y a presque 8 ans

  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 2.0 à 0.25

#7 Mis à jour par Scrum Master il y a presque 8 ans

  • Statut changé de En cours à Résolu

#8 Mis à jour par Joël Cuissinat il y a presque 8 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.25 à 0.0

OK avec creole 2.6.0-18

Formats disponibles : Atom PDF