Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.7 warning on encodestring() deprecation #55899

Closed
sblaisot opened this issue Jan 17, 2020 · 3 comments
Closed

python 3.7 warning on encodestring() deprecation #55899

sblaisot opened this issue Jan 17, 2020 · 3 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior Deprecation severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@sblaisot
Copy link
Contributor

Description of Issue

in minion logs (salt 2019.2.3 on debian buster installed from official py3 packages):

2020-01-17 14:42:13,137 [py.warnings      :110 ][WARNING ][12187] /usr/lib/python3/dist-packages/salt/utils/hashutils.py:61: DeprecationWarning: encodestring() is a deprecated alias since 3.1, use encodebytes()
  base64.encodestring(salt.utils.stringutils.to_bytes(instr)),

Setup

Unable to know what configuration or state trigger this.

Steps to Reproduce Issue

Unable to know what configuration or state trigger this.

Versions Report

salt-minion -V

Salt Version:
Salt: 2019.2.3

Dependency Versions:
cffi: Not Installed
cherrypy: 8.9.1
dateutil: 2.7.3
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: 0.27.7
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.19
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: 0.27.4
Python: 3.7.3 (default, Apr 3 2019, 05:39:12)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.1.2
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.1

System Versions:
dist: debian 10.0
locale: UTF-8
machine: x86_64
release: 4.19.0-5-cloud-amd64
system: Linux
version: debian 10.0

@Ch3LL
Copy link
Contributor

Ch3LL commented Jan 17, 2020

looks like there are other instances of encodestring other than just the file hashutils.py so we will need to get these cleaned up. The instance in hashutils.py is only used if using python2, so we should be able to get this fixed post neon since we are migrating to only python3 for the sodium release.

@Ch3LL Ch3LL added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around ZRelease-Sodium retired label labels Jan 17, 2020
@Ch3LL Ch3LL added this to the Approved milestone Jan 17, 2020
@Ch3LL Ch3LL self-assigned this Jan 17, 2020
@Ajnbro
Copy link
Contributor

Ajnbro commented Jan 18, 2020

@Ch3LL Does #55506 address this issue or at least part of it?

@sagetherage sagetherage added the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label Jan 24, 2020
@Ch3LL
Copy link
Contributor

Ch3LL commented Feb 6, 2020

thanks for pointing that out, it should clean up the instance in hashutils,but there is still other instances in the code we need to clean up.

@sagetherage sagetherage assigned Akm0d and waynew and unassigned Ch3LL May 5, 2020
@sagetherage sagetherage removed the ZRelease-Sodium retired label label May 22, 2020
@sagetherage sagetherage reopened this May 22, 2020
@sagetherage sagetherage removed the Confirmed Salt engineer has confirmed bug/feature - often including a MCVE label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Deprecation severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

6 participants