Projet

Général

Profil

Tâche #29668

Scénario #29628: Faire fonctionner l'EAD3 sur EOLE 2.8.0

Salt ne fonctionne pas sur python 3.8

Ajouté par Emmanuel GARETTE il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Reporté
Priorité:
Normal
Assigné à:
Début:
02/03/2020
Echéance:
% réalisé:

0%

Restant à faire (heures):

Historique

#1 Mis à jour par Emmanuel GARETTE il y a environ 4 ans

  • Statut changé de Nouveau à En cours

#2 Mis à jour par Emmanuel GARETTE il y a environ 4 ans

  • Description mis à jour (diff)

Le module "core" des grains ne se charge pas.

Si on fait un "salt-call -c /etc/ead3/salt grains.items", on n'a que :

local:
    ----------
    SSDs:
    disks:
        - loop1
        - dm-1
        - sdb
        - loop6
        - loop4
        - sr0
        - loop2
        - loop0
        - dm-0
        - loop7
        - sda
        - loop5
        - loop3
    gid:
        0
    groupname:
        root
    mdadm:
    pid:
        125780
    shell:
        /bin/bash
    uid:
        0
    username:
        root
    zfs_feature_flags:
        False
    zfs_support:
        False

Il faut au minimum "os_platform" pour que salt fonctionne.

Pour cela il faut modifier /usr/lib/python3/dist-packages/salt/grains/core.py :

from platform import _supported_dists

devient :

_supported_dists = ('SuSE', 'debian', 'fedora', 'redhat', 'centos', 'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo', 'UnitedLinux', 'turbolinux', 'arch', 'mageia', 'Ubuntu')
             linux_distribution(supported_dists=_supported_dists)]

devient:

             linux_distribution()]

#3 Mis à jour par Emmanuel GARETTE il y a environ 4 ans

En attente d'un point avec Joel.

#4 Mis à jour par Emmanuel GARETTE il y a environ 4 ans

  • Assigné à mis à Emmanuel GARETTE

#5 Mis à jour par Emmanuel GARETTE il y a environ 4 ans

  • Statut changé de En cours à Reporté

Formats disponibles : Atom PDF