Project

General

Profile

Tâche #29904

Scénario #29873: Corriger les templates 2.8.0 non compatibles python3

Porter l’outil CreoleCat en python3 pour avoir un panel d’outils plus homogène.

Added by Benjamin Bohard over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/09/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

L’utilisation de CreoleCat pour templatiser les templates mis en cause dans le scénario ne déclenche pas les mêmes erreurs que celles rencontrées à l’instance.

Associated revisions

Revision 211f80bf (diff)
Added by Benjamin Bohard over 3 years ago

Port to python3

Ref #29904

History

#1 Updated by Benjamin Bohard over 3 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#2 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • Assigned To set to Benjamin Bohard
  • Remaining (hours) set to 0.0
root@eolebase:~# head -n1 /usr/bin/CreoleCat 
#! /usr/bin/python3
root@eolebase:~# CreoleCat -dt hosts.allow
urllib3.connectionpool - Starting new HTTP connection (1): 127.0.0.1:8000
urllib3.connectionpool - http://127.0.0.1:8000 "GET /get/creole HTTP/1.1" 200 7270
urllib3.connectionpool - Starting new HTTP connection (1): 127.0.0.1:8000
urllib3.connectionpool - http://127.0.0.1:8000 "GET /get/creole?variable=mode_conteneur_actif HTTP/1.1" 200 32
urllib3.connectionpool - Starting new HTTP connection (1): 127.0.0.1:8000
urllib3.connectionpool - http://127.0.0.1:8000 "GET /get/containers/containers HTTP/1.1" 200 609
urllib3.connectionpool - Starting new HTTP connection (1): 127.0.0.1:8000
urllib3.connectionpool - http://127.0.0.1:8000 "GET /get/containers?withoption=real_container&withvalue=root HTTP/1.1" 200 74056
Instanciation du fichier '/etc/eole/hosts.allow' depuis '/var/lib/creole/hosts.allow'
Copie du template '/usr/share/eole/creole/distrib/hosts.allow' vers '/var/lib/creole'
Traitement Cheetah : '/var/lib/creole/hosts.allow' vers '/etc/eole/hosts.allow'
urllib3.connectionpool - Starting new HTTP connection (1): 127.0.0.1:8000
urllib3.connectionpool - http://127.0.0.1:8000 "GET /get/containers/service_restrictions HTTP/1.1" 200 11290
urllib3.connectionpool - Starting new HTTP connection (1): 127.0.0.1:8000
urllib3.connectionpool - http://127.0.0.1:8000 "GET /get/containers/service_accesss HTTP/1.1" 200 7152
Changement des propriétés : chown root:root /etc/eole/hosts.allow
Changement des propriétés : chmod 0644 /etc/eole/hosts.allow

Also available in: Atom PDF