[Pkg-salt-team] Bug#921630: salt-common: Python DeprecationWarning when using platform.linux_distribution in Python 3.5+
Malcolm Acker
i.am.malcolm+debian at gmail.com
Thu Feb 7 13:05:07 GMT 2019
Package: salt-common
Version: 2018.3.3+dfsg1-2
Severity: normal
Dear Maintainer,
The following error messages are printed to console/log and causes issues with OS-level targeting via grains:
2019-02-07 07:34:10,823 [py.warnings :110 ][WARNING ][1645] /usr/lib/python3/dist-packages/salt/loader.py:741: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
ret = funcs[key]()
2019-02-07 07:34:10,884 [py.warnings :110 ][WARNING ][1645] /usr/lib/python3/dist-packages/salt/grains/core.py:1756: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
linux_distribution(supported_dists=_supported_dists)]
This is solved upstream in the following merge request:
- https://github.com/saltstack/salt/pull/50822/
This fix requires an additional package dependency: python3-distro
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-2-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_BAD_PAGE, TAINT_DIE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages salt-common depends on:
ii python3 3.7.2-1
ii python3-apt 1.8.3
ii python3-dateutil 2.6.1-1
ii python3-jinja2 2.10-1
ii python3-msgpack 0.5.6-1+b1
ii python3-pkg-resources 40.6.3-1
ii python3-psutil 5.5.0-1
ii python3-requests 2.20.0-2
ii python3-tornado 5.1.1-4
ii python3-tornado4 4.5.3-3
ii python3-yaml 3.13-2
Versions of packages salt-common recommends:
ii lsb-release 10.2018112800
ii python3-croniter 0.3.24-2
Versions of packages salt-common suggests:
pn python3-mako <none>
pn salt-doc <none>
-- no debconf information
More information about the pkg-salt-team
mailing list