Tâche #30184
Scénario #30411: Traitement express MEN (28-35)
ARV : gérer la migration de la base de donnée ARV vers 2.8.0 (à vérifier)
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Start date:
07/21/2020
Due date:
% Done:
100%
Remaining (hours):
0.0
Description
Par exemples :
- Création de certificat autosigné:
-> entering Page.render() -> entering get_all_credentials([], {}) Error in GetAllCred with args {b'_dc': [b'1590570425833']} Traceback (most recent call last): File "/usr/lib/python3/dist-packages/arv/web/page.py", line 86, in render ret = self.render_page(request) File "/usr/lib/python3/dist-packages/arv/web/childpage.py", line 927, in render_page related_node_name = uai + " - " + name TypeError: can't concat str to bytes
- Appliquer :
Error in Apply with args {b'_dc': [b'1590570506624']} Traceback (most recent call last): File "/usr/lib/python3/dist-packages/arv/web/page.py", line 86, in render ret = self.render_page(request) File "/usr/lib/python3/dist-packages/arv/web/page.py", line 269, in render_page 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'
Related issues
Associated revisions
Decode bytes if needed to be a string
ref #30184
History
#1 Updated by Fabrice Barconnière over 3 years ago
- Description updated (diff)
#2 Updated by Emmanuel GARETTE over 3 years ago
Je ne vois pas de différence entre la base en 2.7.2 :
CREATE TABLE arv_db_node_node ( id INTEGER NOT NULL, name TEXT, uai TEXT, id_zephir INTEGER, eole_version TEXT, tmpl_node_id INTEGER, state INTEGER, PRIMARY KEY (id), CONSTRAINT arv_db_node_node_tmpl_node_id_fk FOREIGN KEY(tmpl_node_id) REFERENCES arv_db_node_tmplnode (id), UNIQUE (name) ); INSERT INTO arv_db_node_node VALUES(1,'sphynx 0000000A','0000000A',4,'2.7.2',1,0); INSERT INTO arv_db_node_node VALUES(2,'héhé','héhé',NULL,NULL,1,0);
et la version 2.8.0 a jour :
CREATE TABLE arv_db_node_node ( id INTEGER NOT NULL, name TEXT, uai TEXT, id_zephir INTEGER, eole_version TEXT, tmpl_node_id INTEGER, state INTEGER, PRIMARY KEY (id), CONSTRAINT arv_db_node_node_tmpl_node_id_fk FOREIGN KEY(tmpl_node_id) REFERENCES arv_db_node_tmplnode (id), UNIQUE (name) ); INSERT INTO arv_db_node_node VALUES(1,'sphynx 0000000A','0000000A',1,'2.8.0',1,0); INSERT INTO arv_db_node_node VALUES(2,'héhé','héhé',NULL,NULL,1,0);
#3 Updated by Joël Cuissinat about 3 years ago
- Subject changed from ARV : gérer la migration de la base de donnée ARV vers 2.8.0 to ARV : gérer la migration de la base de donnée ARV vers 2.8.0 (à vérifier)
- Parent task set to #30411
#4 Updated by Joël Cuissinat about 3 years ago
- Related to Tâche #30399: ARV sur Sphynx 2.8.0 : traceback lors de la modification d'un serveur RVP added
#5 Updated by Joël Cuissinat about 3 years ago
Cela ne m'étonnerais pas que ce serait corrigé par #30399 :)
#6 Updated by Fabrice Barconnière about 3 years ago
- Status changed from Nouveau to En cours
- Start date set to 07/21/2020
#7 Updated by Fabrice Barconnière about 3 years ago
- Assigned To set to Fabrice Barconnière
#8 Updated by Fabrice Barconnière about 3 years ago
Il reste ces tracebacks en restaurant une base ARV 2.7.2 sur 2.8.0 avec des tunnels créés entre sphynx 2.7.2 et Amon 2.7.2.
Dans l'onglet Tunnels, sélectionner le 1er serveur RVP dans "Serveur RVP 1" puis le 2ème dans "Serveur RVP 2" :
Error in GetEdges with args {b'nodea': [b'1'], b'nodeb': [b'2']} Traceback (most recent call last): File "/usr/lib/python3/dist-packages/arv/web/page.py", line 86, in render ret = self.render_page(request) File "/usr/lib/python3/dist-packages/arv/web/childpage.py", line 647, in render_page connect_infos += " / " + " certificate send : " + connect.leftsendcert.decode().upper() + " via ipsec protocol" AttributeError: 'str' object has no attribute 'decode' Error in GetEdges with args {b'nodea': [b'1'], b'nodeb': [b'2']} Traceback (most recent call last): File "/usr/lib/python3/dist-packages/arv/web/page.py", line 86, in render ret = self.render_page(request) File "/usr/lib/python3/dist-packages/arv/web/childpage.py", line 649, in render_page connect_infos += " / " + " IKE fragmentation : " + connect.fragmentation.decode() AttributeError: 'str' object has no attribute 'decode'
#9 Updated by Fabrice Barconnière about 3 years ago
- Status changed from En cours to Résolu
- % Done changed from 0 to 100
#10 Updated by Fabrice Barconnière about 3 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) set to 0.0
Je ferme, ça paraît bon. On verra pendant la qualif 2.8.0.