Project

General

Profile

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

Added by Emmanuel GARETTE about 6 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/26/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
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
>>> 

Associated revisions

Revision 89bbbd58 (diff)
Added by Emmanuel GARETTE over 5 years ago

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

History

#1 Updated by Joël Cuissinat over 5 years ago

  • Tracker changed from Anomalie to Proposition Scénario
  • Status changed from Nouveau to À formaliser
  • Assigned To set to Emmanuel GARETTE

Pour traitement express ?

#2 Updated by Joël Cuissinat over 5 years ago

  • Status changed from À formaliser to Nouveau
  • Assigned To deleted (Emmanuel GARETTE)
  • Estimated time set to 2.00 h

#3 Updated by Joël Cuissinat over 5 years ago

  • Tracker changed from Proposition Scénario to Tâche
  • Parent task set to #15610
  • Remaining (hours) set to 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 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from Nouveau to En cours

#5 Updated by Emmanuel GARETTE over 5 years ago

  • Assigned To set to Emmanuel GARETTE

#6 Updated by Emmanuel GARETTE over 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#7 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Résolu

#8 Updated by Joël Cuissinat over 5 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

OK avec creole 2.6.0-18

Also available in: Atom PDF