Projet

Général

Profil

Tâche #29478

Scénario #29463: Préparer la version EOLE 2.8.0

Faire en sorte que le module Zéphir s'instancie (version de postgresql dans les chemins)

Ajouté par Joël Cuissinat il y a plus de 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
17/01/2020
Echéance:
% réalisé:

100%

Temps estimé:
0.00 h
Restant à faire (heures):
0.0

Description

https://dev-eole.ac-dijon.fr/jenkins/job/2.8.0/job/test-instance-acazephir-2.8.0-amd64/

postgresql-10 => postgresql-12

run-parts: executing /usr/share/eole/pretemplate/00-zephir instance
initialisation de la base postgresql...
-bash: /usr/lib/postgresql/10/bin/initdb: Aucun fichier ou dossier de ce type
--------------------------------------------------------------------------------
                   Génération des fichiers de configuration.
--------------------------------------------------------------------------------
Le répertoire /etc/postgresql/10/main n'existe pas mais est obligatoire pour /etc/postgresql/10/main/postgresql.conf
Le répertoire /etc/postgresql/10/main n'existe pas mais est obligatoire pour /etc/postgresql/10/main/postgresql.conf

Demandes liées

Lié à Distribution EOLE - Tâche #23152: Zéphir et postgresql : des références à la version 9.5 de postgresql sont faites.En 2.7, on est en version 10. Fermé 29/01/2018

Révisions associées

Révision d9cb8aed (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

Update PostgreSQL version for EOLE 2.8

Ref: #29478

Révision e9db7a17 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

Remove deprecated pretemplate hacks

Ref: #29478

Révision 145703ef (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

Update PostgreSQL version for EOLE 2.8

Ref: #29478

Révision 75b11291 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

Use new python-ldap syntax

Ref: #29478

Révision 3cddc262 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

Use new python-ldap syntax

Ref: #29478

Révision 2677553f (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

Use new python-ldap syntax

Ref: #29478

Historique

#1 Mis à jour par Joël Cuissinat il y a plus de 4 ans

  • Statut changé de Nouveau à En cours

#2 Mis à jour par Joël Cuissinat il y a plus de 4 ans

  • Assigné à mis à Joël Cuissinat

#3 Mis à jour par Joël Cuissinat il y a plus de 4 ans

Visiblement tous les problèmes sont concentrés dans eole-postgresql :

tmpl/postgresql.conf:hba_file = '/etc/postgresql/10/main/pg_hba.conf'    # host-based authentication file
tmpl/postgresql.conf:ident_file = '/etc/postgresql/10/main/pg_ident.conf'    # ident configuration file
tmpl/postgresql.conf:external_pid_file = '/var/run/postgresql/10-main.pid'            # write an extra PID file
dicos/22_postgresql.xml:            <file filelist='postgresql' name='/etc/postgresql/10/main/postgresql.conf' del_comment='#'/>
dicos/22_postgresql.xml:            <file filelist='postgresql' name='/etc/postgresql/10/main/pg_hba.conf'/>
dicos/22_postgresql.xml:            <file filelist='postgresql' name='/etc/postgresql/10/main/pg_ident.conf'/>
dicos/22_postgresql.xml:                <value>/etc/postgresql/10/main/server.key</value>
dicos/22_postgresql.xml:                <value>/etc/postgresql/10/main/server.crt</value>
dicos/22_postgresql.xml:                <value>/var/lib/postgresql/10/main</value>
pretemplate/03-eole-postgresql:    if [ "$pg_data_directory" != "/var/lib/postgresql/10/main" ];then
pretemplate/03-eole-postgresql:        nbFic=$(ls -a /var/lib/postgresql/10/main/ |sed -e "/\.$/d"|wc -l)
pretemplate/03-eole-postgresql:            mv /var/lib/postgresql/10/main/* $pg_data_directory

Ah, on me dit qu'il y en aurait dans conf-zephir :

eole/restauration.sh:pg_version=10
eole/sauvegarde.sh:pg_version=10
pretemplate/00-zephir:PG_VERSION=10
posttemplate/10-conf-zephir:PG_VERSION=10

#4 Mis à jour par Joël Cuissinat il y a plus de 4 ans

  • Lié à Tâche #23152: Zéphir et postgresql : des références à la version 9.5 de postgresql sont faites.En 2.7, on est en version 10. ajouté

#5 Mis à jour par Joël Cuissinat il y a plus de 4 ans

Autre blagounette :

root@zephir:~# python2 /usr/share/zephir/utils/add_user.py 
nom de connexion du nouvel utilisateur : toto
mot de passe pour l'utilisateur toto : 
saisissez à nouveau ce mot de passe : 
Traceback (most recent call last):
  File "/usr/share/zephir/utils/add_user.py", line 35, in <module>
    add_user(login, enc_passwd)
  File "/usr/lib/python2.7/dist-packages/zephir/utils/ldap_user.py", line 51, in add_user
    l = ldap.open(ldap_server)
AttributeError: 'module' object has no attribute 'open'

Vu au détour d'un forum :

"Changed in version 3.1: The deprecated functions ldap.init() and ldap.open() were removed." You are supposed to to ldap.initialize

Cela fait 8 occurrences à changer dans zephir-parc mais la syntaxe attendue n'est plus "127.0.0.1" mais "ldap://127.0.0.1" :o

#6 Mis à jour par Joël Cuissinat il y a plus de 4 ans

Autre soucis :

AssertionError: This template was compiled with Cheetah version 2.4.4. Templates compiled before version 3.0.0a1 must be recompiled.

Visiblement c'est fait à la compilation du paquet :

$ grep -A1 build: Makefile 
build: clean
    $(MAKE) -C $(ZEPHIR_TMPL) all

Normalement c'est OK avec le paquet zephir-client 2.8.0-1

#7 Mis à jour par Joël Cuissinat il y a environ 4 ans

  • Statut changé de En cours à Fermé
  • % réalisé changé de 0 à 100
  • Restant à faire (heures) mis à 0.0

Formats disponibles : Atom PDF