Project

General

Profile

Tâche #16103

Scénario #16058: Traitement express (19-21)

nom_zone_forward ne migre pas correctement de 2.2 vers 2.5

Added by Christophe Dezé over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
05/09/2016
Due date:
% Done:

50%

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

Description

j'essaie de migrer un amon 2.2 vers 2.5 avec mon script de migration de conf et j'ai ,l'erreur arrive sur [nom_zone_forward] valdefault = [] valprec = [] val = ['cite-scolaire.local']


Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/zephir/utils/creolewrap.py", line 834, in set_value
value = convert_to_creole3(option, value)
File "/usr/lib/python2.7/dist-packages/zephir/utils/creolewrap.py", line 96, in convert_to_creole3
vals.append(convert_value(option, val))
File "/usr/lib/python2.7/dist-packages/creole/var_loader.py", line 95, in convert_value
return force_unicode(value)
File "/usr/lib/python2.7/dist-packages/creole/var_loader.py", line 86, in force_unicode
return unicode(val, 'utf-8')
TypeError: coercing to Unicode: need string or buffer, list found

j'ai rajouté un print dans var_loader.py et il renvoit [u'cite-scolaire.local']

fichier .eol en pj

Si j'importe dans gen_config
pas de msg d'erreur , mais activer_zone_forward est à non
si je met à oui nom_zone_forward_0 est OK

zephir_config_1641.eol (58 KB) Christophe Dezé, 05/09/2016 04:57 PM


Related issues

Related to eole-dns - Tâche #11922: Ajouter une variable oui/non et les contraintes associées dans le dico Fermé 06/04/2015
Related to zephir-parc - Tâche #16138: Erreur à l'import d'un ancien fichier config.eol dans Zéphir 2.6 Fermé 05/17/2016

Associated revisions

Revision 51b70e40 (diff)
Added by Bruno Boiget over 7 years ago

Zéphir : Correction de l'application des fonctions d'upgrade successives

  • à la génération de configuration de migration
  • à l'import de fichier depuis genconfig (Zéphir Web)

ref #16138 @6h
ref #16103

History

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

  • Tracker changed from Demande to Tâche
  • Estimated time set to 3.00 h
  • Parent task set to #16058
  • Remaining (hours) set to 3.0

#2 Updated by Bruno Boiget over 7 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Bruno Boiget
  • % Done changed from 0 to 50
  • Remaining (hours) changed from 3.0 to 1.5

essai de reproduction du problème (Zéphir 2.5.2, migration d'Amon 2.2 vers 2.5.1 avec la configuration fournie).

Je reproduit bien le fait qu'activer_zone_forward n'est pas passé à oui automatiquement.

Pour le problème du traceback sur set_value, il provient de la construction d'une variable à partir de nom_zone_forward dans le script de migration (fourni pour test par Christophe).

#3 Updated by Scrum Master over 7 years ago

  • Status changed from En cours to Fermé
  • Remaining (hours) changed from 1.5 to 0.0

Also available in: Atom PDF