Project

General

Profile

Tâche #23033

Scénario #22741: Traitement express MEN (05-07)

Traceback gen_config si erreur au listing des partitions LVM

Added by Joël Cuissinat about 3 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/12/2018
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
0.0

Description

J'ai eu le problème car j'ai installé le module Seth dans un conteneur LXC ;)

2018-02-12 09:30:17,272: eolegenconfig ERROR validate_config - "0" est une valeur invalide pour l'option "Liste des noms de volume logique actuellement créés sur le module" de type texte unicode
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/webapi.py", line 273, in validate_config
    ret = lib.valid_mandatory(id_, zephir_sync=zephir_sync)
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 975, in valid_mandatory
    mandatory_errors = list(config.cfgimpl_get_values().mandatory_warnings(force_permissive=True))
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 691, in mandatory_warnings
    for path in _mandatory_warnings(descr):
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 662, in _mandatory_warnings
    for path in _mandatory_warnings(opt, currpath + [name]):
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 662, in _mandatory_warnings
    for path in _mandatory_warnings(opt, currpath + [name]):
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 670, in _mandatory_warnings
    setting_properties=setting_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/setting.py", line 401, in _getproperties
    requires = self.apply_requires(opt, path, setting_properties, index, False)
  File "/usr/lib/python2.7/dist-packages/tiramisu/setting.py", line 663, in apply_requires
    index=idx, returns_raise=True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 284, in getattr
    index=index, returns_raise=returns_raise)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 325, in getattr
    index=index)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 300, in _get_cached_value
    display_warnings=display_warnings)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 331, in _get_validated_value
    with_meta, masterlen, session, validate)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 146, in _getvalue
    submulti_index, validate)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 68, in _getdefaultvalue
    index=index, validate=validate)
  File "/usr/lib/python2.7/dist-packages/tiramisu/autolib.py", line 185, in carry_out_calculation
    raise value
ValueError: "0" est une valeur invalide pour l'option "Liste des noms de volume logique actuellement créés sur le module" de type texte unicode

La fonction "get_lv_names" de /usr/share/creole/funcs/partitioning_utils.py devrait toujours renvoyer de l'unicode...

NB : L'erreur originale est causée par l'absence de la commande "lvs" dans le conteneur (paquet lvm2 absent).

Associated revisions

Revision fc2895e9 (diff)
Added by Joël Cuissinat about 3 years ago

Creole funcs should always return unicode values

Ref: #23033

Revision cf876117 (diff)
Added by Joël Cuissinat about 3 years ago

Fix help messages in 00_partitioning.xml dict

Ref: #23033

History

#1 Updated by Joël Cuissinat about 3 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Joël Cuissinat about 3 years ago

  • Assigned To set to Joël Cuissinat

#3 Updated by Scrum Master about 3 years ago

  • Status changed from En cours to Résolu

#4 Updated by Joël Cuissinat about 3 years ago

  • Remaining (hours) changed from 3.0 to 0.25

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

  • % Done changed from 0 to 100

#6 Updated by Joël Cuissinat about 3 years ago

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

Also available in: Atom PDF