Project

General

Profile

Tâche #29668

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

Salt ne fonctionne pas sur python 3.8

Added by Emmanuel GARETTE about 1 year ago. Updated about 1 year ago.

Status:
Reporté
Priority:
Normal
Assigned To:
Start date:
03/02/2020
Due date:
% Done:

0%

Remaining (hours):

History

#1 Updated by Emmanuel GARETTE about 1 year ago

  • Status changed from Nouveau to En cours

#2 Updated by Emmanuel GARETTE about 1 year ago

  • Description updated (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 Updated by Emmanuel GARETTE about 1 year ago

En attente d'un point avec Joel.

#4 Updated by Emmanuel GARETTE about 1 year ago

  • Assigned To set to Emmanuel GARETTE

#5 Updated by Emmanuel GARETTE about 1 year ago

  • Status changed from En cours to Reporté

Also available in: Atom PDF