Projet

Général

Profil

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.

Ajouté par Benjamin Bohard il y a environ 4 ans. Mis à jour il y a environ 4 ans.

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

100%

Restant à faire (heures):
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.

Révisions associées

Révision 211f80bf (diff)
Ajouté par Benjamin Bohard il y a environ 4 ans

Port to python3

Ref #29904

Historique

#1 Mis à jour par Benjamin Bohard il y a environ 4 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

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

  • Statut changé de Résolu à Fermé
  • Assigné à mis à Benjamin Bohard
  • Restant à faire (heures) mis à 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

Formats disponibles : Atom PDF