Project

General

Profile

Tâche #30382

Scénario #30256: Traitement express MEN (25-27)

Passer ce script en python3 : /mnt/eole-ci-tests/scripts/arv_apply_conf_ipsec.py

Added by Fabrice Barconnière 3 months ago. Updated 3 months ago.

Status:
Fermé
Priority:
Normal
Start date:
10/14/2019
Due date:
% Done:

100%

Remaining (hours):
0.0


Related issues

Related to Sphynx - Tâche #30131: Porter ARV vers Sqlalchemy Fermé 05/04/2020

Associated revisions

Revision d8da59d6 (diff)
Added by Fabrice Barconnière 3 months ago

Execute arv_apply_conf_ipsec.py with python3

ref #30382

Revision 684db3ab (diff)
Added by Fabrice Barconnière 3 months ago

pylint : scripts/arv_apply_conf_ipsec.py:4: [E0012, ] Bad option value u'W0142'

ref #30382

Revision 7b23db74 (diff)
Added by Fabrice Barconnière 3 months ago

Disable some pylint Warning and Error control; It's OK mannually but not
in eole-ci job

ref #30382

Revision cfe85653 (diff)
Added by Fabrice Barconnière 3 months ago

Decode bytes if needed to be a string

ref #30382
ref #30399

History

#1 Updated by Fabrice Barconnière 3 months ago

  • Status changed from Nouveau to En cours

#2 Updated by Fabrice Barconnière 3 months ago

  • Assigned To set to Fabrice Barconnière

#3 Updated by Fabrice Barconnière 3 months ago

  • Status changed from En cours to Nouveau
  • Assigned To deleted (Fabrice Barconnière)

Je ne vois pas comment régler le problème.
Traceback dans Jenkins et pas manuellement.

#4 Updated by Joël Cuissinat 3 months ago

J'obtiens le traceback suivant :

root@sphynx:/mnt/eole-ci-tests# arv_apply_conf_ipsec.py
Traceback (most recent call last):
  File "/mnt/eole-ci-tests/scripts/arv_apply_conf_ipsec.py", line 24, in <module>
    ipsec_conf_apply(zephir=zephir)
  File "/usr/lib/python3/dist-packages/arv/lib/util.py", line 53, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/arv/lib/sw_config_apply.py", line 743, in ipsec_conf_apply
    ipsec_conf_build(zephir, current_node, arv_node=True)
  File "/usr/lib/python3/dist-packages/arv/lib/util.py", line 53, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/arv/lib/sw_config_apply.py", line 643, in ipsec_conf_build
    connect.leftsendcert.decode(), \
AttributeError: 'str' object has no attribute 'decode'

Si j'enlève les .decode() présents aux lignes 643 et 651 du fichier /mnt/eole-ci-tests/scripts/arv_apply_conf_ipsec.py

Les decode en question ont été ajoutés dans le cadre de #30131

#5 Updated by Joël Cuissinat 3 months ago

#6 Updated by Fabrice Barconnière 3 months ago

  • Status changed from Nouveau to En cours

#7 Updated by Fabrice Barconnière 3 months ago

  • Assigned To set to Fabrice Barconnière

#9 Updated by Joël Cuissinat 3 months ago

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

Vu.

Also available in: Atom PDF