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)
100%
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
Related issues
Associated revisions
Update PostgreSQL version for EOLE 2.8
Ref: #29478
Remove deprecated pretemplate hacks
Ref: #29478
Update PostgreSQL version for EOLE 2.8
Ref: #29478
Use new python-ldap syntax
Ref: #29478
Use new python-ldap syntax
Ref: #29478
Use new python-ldap syntax
Ref: #29478
History
#1 Updated by Joël Cuissinat about 1 year ago
- Status changed from Nouveau to En cours
#2 Updated by Joël Cuissinat about 1 year ago
- Assigned To set to Joël Cuissinat
#3 Updated by Joël Cuissinat about 1 year ago
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 Updated by Joël Cuissinat about 1 year ago
- Related to 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. added
#5 Updated by Joël Cuissinat about 1 year ago
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 Updated by Joël Cuissinat about 1 year ago
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 Updated by Joël Cuissinat about 1 year ago
- Status changed from En cours to Fermé
- % Done changed from 0 to 100
- Remaining (hours) set to 0.0
#8 Updated by Joël Cuissinat about 1 year ago
- Estimated time set to 0.00 h