Project

General

Profile

Tâche #30873

Scénario #30863: Traitement express MEN (43-45)

Finalisation du portage des évolutions EOP en 2.7.1+

Added by Joël Cuissinat 11 months ago. Updated 11 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/16/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Suite du scénario #30679 validé sur 2.6.2.

J'ai réalisé tous les merge sans difficulté dans les versions supérieures mais j'ai compilé uniquement en 2.8.0 afin de tester en priorité le portage sur cette version : #30869

N'arrivant pas à accéder à EOP sur Scribe 2.8.0, j'ai laissé les choses en l'état.

Il pourrait y avoir des perturbations liées à web_url mais, il y a une erreur suspecte dans le status du service (qui rappelle : #29487).

root@scribe:~# service eoleapps status
● eoleapps.service - Eole flask server
     Loaded: loaded (/lib/systemd/system/eoleapps.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-10-16 12:08:20 CEST; 1min 53s ago
   Main PID: 171368 (gunicorn)
      Tasks: 2 (limit: 5856)
     Memory: 31.8M
     CGroup: /system.slice/eoleapps.service
             ├─171368 /usr/bin/python3 /usr/bin/gunicorn --pid /run/eoleapps.pid -c /etc/eole/flask/eoleapps.conf eoleflask.application:run(config='eoleapps')
             └─171375 /usr/bin/python3 /usr/bin/gunicorn --pid /run/eoleapps.pid -c /etc/eole/flask/eoleapps.conf eoleflask.application:run(config='eoleapps')

oct. 16 12:08:19 scribe systemd[1]: Starting Eole flask server...
oct. 16 12:08:20 scribe gunicorn[171297]: !!!
oct. 16 12:08:20 scribe gunicorn[171297]: !!! WARNING: configuration file should have a valid Python extension.
oct. 16 12:08:20 scribe gunicorn[171297]: !!!
oct. 16 12:08:20 scribe systemd[1]: eoleapps.service: Can't open PID file /run/eoleapps.pid (yet?) after start: Operation not permitted
oct. 16 12:08:20 scribe systemd[1]: Started Eole flask server.

À voir avec Cadoles car il y a de l'EOP 2.8.0 au programme du sprint en cours : #30786 !


Related issues

Related to EOP - Tâche #30869: Fusionner le code dans les versions supérieures Fermé 09/21/2020
Related to Distribution EOLE - Scénario #30786: Restaurer les options "Changement de mot de passe à la première connexion" sur Scribe 2.8.0 Terminé (Sprint) 10/01/2020 11/06/2020
Related to eole-ad - Tâche #29865: Adapter les scripts pre/post Fermé 04/07/2020
Related to eole-flask - Tâche #30922: Le service eole-flask ne démarre pas sur 2.8.1 Fermé 10/29/2020

Associated revisions

Revision e98cbde0 (diff)
Added by Daniel Dehennin 11 months ago

Gunicorn configuration must end with “.py” under python3

Ref: #30873

Revision 784c91d2 (diff)
Added by Daniel Dehennin 11 months ago

Systemd: gunicorn configuration must end with “.py” under python3

Ref: #30873

Revision 797b16fd (diff)
Added by Daniel Dehennin 11 months ago

Remove old gunicorn configuration

Ref: #30873

Revision 593a131f (diff)
Added by Daniel Dehennin 11 months ago

Remove old gunicorn configuration

Ref: #30873

Revision 84e16cc2 (diff)
Added by Daniel Dehennin 11 months ago

Python: 2to3

Ref: #30873

Revision 838be013 (diff)
Added by Daniel Dehennin 11 months ago

Remove old gunicorn configuration

Ref: #30873

Revision 616a5d19 (diff)
Added by Daniel Dehennin 11 months ago

Python: 2to3 fixes execpt syntax

Ref: #30873

Revision 6c1761e3 (diff)
Added by Joël Cuissinat 11 months ago

Remove posttemplate from eole-controle-vnc packaging

Ref: #29865
Ref: #30873

Revision 452f206a (diff)
Added by Joël Cuissinat 11 months ago

Remove posttemplate from eole-controle-vnc packaging

Ref: #29865
Ref: #30873

History

#1 Updated by Joël Cuissinat 11 months ago

  • Related to Tâche #30869: Fusionner le code dans les versions supérieures added

#2 Updated by Joël Cuissinat 11 months ago

  • Description updated (diff)

#3 Updated by Joël Cuissinat 11 months ago

  • Related to Scénario #30786: Restaurer les options "Changement de mot de passe à la première connexion" sur Scribe 2.8.0 added

#4 Updated by Daniel Dehennin 11 months ago

Il y a quelques trucs à passer en python3

==> /var/log/eoleflask/eoleflask.log <==
2020-10-26 16:56:22,352: eoleflask - Unable to load module 'eop': No module named 'xmlrpclib'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/eoleflask/loader.py", line 89, in load_app
    m = __import__(module)
  File "/usr/lib/python3/dist-packages/eop/__init__.py", line 44, in <module>
    mod = importlib.import_module(module, package='eop')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3/dist-packages/eop/modules/api/etabsapi.py", line 3, in <module>
    from xmlrpclib import ServerProxy
ModuleNotFoundError: No module named 'xmlrpclib'
2020-10-26 16:56:22,355: eoleflask - Unable to load module 'eoe': invalid syntax (ldappasswordpersoapi.py, line 44)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/eoleflask/loader.py", line 89, in load_app
    m = __import__(module)
  File "/usr/lib/python3/dist-packages/eoe/__init__.py", line 42, in <module>
    mod = importlib.import_module(module, package='eoe')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3/dist-packages/eoe/modules/api/ldappasswordpersoapi.py", line 44
    except PasswordCheckError, e:
                             ^
SyntaxError: invalid syntax

#5 Updated by Daniel Dehennin 11 months ago

  • Status changed from Nouveau to En cours

#6 Updated by Daniel Dehennin 11 months ago

  • % Done changed from 0 to 80

EOE est corrigé aussi.

#7 Updated by Daniel Dehennin 11 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 80 to 100

J’ai refait les paquets 2.7.1 et 2.7.2.

#8 Updated by Joël Cuissinat 11 months ago

#9 Updated by Joël Cuissinat 11 months ago

Il est nécessaire de valider le fonctionnement d'EOP dans toutes les versions >= 2.7.1 :
  • 2.7.1 : OK avec les paquets eop 2.7.1-10 et controle-vnc 2.7.1-6 (attention au cache !)
  • 2.7.2 : OK avec les paquets eop 2.7.2-5 et controle-vnc 2.7.2-3 (attention au cache !)
  • 2.8.0 : OK avec les derniers paquets eop (2.8.0-11) + EOE : OK

#10 Updated by Joël Cuissinat 11 months ago

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

#11 Updated by Joël Cuissinat 11 months ago

  • Related to Tâche #30922: Le service eole-flask ne démarre pas sur 2.8.1 added

Also available in: Atom PDF