Project

General

Profile

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)

Added by Fabrice Barconnière about 1 month ago. Updated 3 days ago.

Status:
Nouveau
Priority:
Normal
Assigned To:
-
Start date:
Due date:
% Done:

0%

Remaining (hours):

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

Related to Distribution EOLE - Tâche #30399: ARV sur Sphynx 2.8.0 : traceback lors de la modification d'un serveur RVP Résolu 10/14/2019

History

#1 Updated by Fabrice Barconnière about 1 month ago

  • Description updated (diff)

#2 Updated by Emmanuel GARETTE about 1 month 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 3 days 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 3 days 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 3 days ago

Cela ne m'étonnerais pas que ce serait corrigé par #30399 :)

Also available in: Atom PDF