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

encoding is deprecated #51741

Closed
Ofloo opened this issue Feb 21, 2019 · 15 comments
Closed

encoding is deprecated #51741

Ofloo opened this issue Feb 21, 2019 · 15 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Core relates to code central or existential to Salt P2 Priority 2 Regression The issue is a bug that breaks functionality known to work in previous releases. Silicon v3004.0 Release code name

Comments

@Ofloo
Copy link

Ofloo commented Feb 21, 2019

Description of Issue/Question

[WARNING ] /usr/local/lib/python2.7/site-packages/salt/payload.py:145: DeprecationWarning: encoding is deprecated, Use raw=False instead.
ret = msgpack.loads(msg, use_list=True, ext_hook=ext_type_decoder, encoding=encoding)

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)
just run salt

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

salt --versions-report

Salt Version:
Salt: 2018.3.3

Dependency Versions:
cffi: 1.11.5
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.1
mysql-python: Not Installed
pycparser: 2.18
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.15 (default, Feb 7 2019, 01:15:05)
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:
locale: US-ASCII
machine: amd64
release: 12.0-RELEASE
system: FreeBSD
version: Not Installed

@Ofloo
Copy link
Author

Ofloo commented Feb 21, 2019

@Ch3LL
Copy link
Contributor

Ch3LL commented Feb 21, 2019

mind pushing that as a PR?

@Ch3LL Ch3LL added Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists P3 Priority 3 labels Feb 21, 2019
@Ch3LL Ch3LL added this to the Approved milestone Feb 21, 2019
alxwr added a commit to alxwr/salt that referenced this issue Apr 10, 2019
@alxwr
Copy link
Contributor

alxwr commented Apr 10, 2019

mind pushing that as a PR?

@Ch3LL Here you go: #52480

@alxwr
Copy link
Contributor

alxwr commented Apr 10, 2019

@Ofloo Thanks for the initial work!

@Ch3LL
Copy link
Contributor

Ch3LL commented Apr 25, 2019

thanks for that. looks like this PR #52487 will be what will be merged to resolve this just for anyone that sees this issue. Thanks for the initial work though :)

@waynew waynew mentioned this issue May 29, 2019
@mkeen
Copy link

mkeen commented Dec 21, 2019

Is this fixed in a release?

@stale
Copy link

stale bot commented Jan 20, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Jan 20, 2020
@sagetherage
Copy link
Contributor

@garethgreenaway @waynew can you see if this has a PR that was ported to master, please?

@stale
Copy link

stale bot commented Jan 22, 2020

Thank you for updating this issue. It is no longer marked as stale.

@stale stale bot removed the stale label Jan 22, 2020
@Ch3LL
Copy link
Contributor

Ch3LL commented Feb 5, 2020

i'm seeing the code https://github.com/saltstack/salt/blob/master/salt/payload.py#L109 in master adn 2019.2.3. @mkeen are you still seeing it? and if so what version of salt?

@mkeen
Copy link

mkeen commented Feb 5, 2020

@Ch3LL I'm no longer seeing it in 2019.2.2

@Ch3LL
Copy link
Contributor

Ch3LL commented Feb 10, 2020

perfect i'll go ahead and close :) thanks for confirming

@Ch3LL Ch3LL closed this as completed Feb 10, 2020
@grichmond-salt
Copy link

This issue appears to have resurfaced:

[root@ip-172-31-27-137 minion]# salt --versions
Salt Version:
           Salt: 3001.1
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
         Jinja2: 2.8.1
        libgit2: Not Installed
       M2Crypto: 0.33.0
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.6.2
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: Not Installed
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 3.6.8 (default, Sep 26 2019, 11:57:09)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 17.0.0
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.1.4
 
System Versions:
           dist: rhel 7.5 Maipo
         locale: UTF-8
        machine: x86_64
        release: 3.10.0-862.el7.x86_64
         system: Linux
        version: Red Hat Enterprise Linux Server 7.5 Maipo

Example:

# salt \* test.ping
[WARNING ] /usr/lib/python3.6/site-packages/salt/utils/msgpack.py:152: DeprecationWarning: encoding is deprecated, Use raw=False instead.
  return msgpack.unpackb(packed, **_sanitize_msgpack_unpack_kwargs(kwargs))

SaltDocs-RaaS-01:
    True
SaltDocs-PostgreSQL-01:
    True
SaltDocs-RaaS-02:
    True
SaltDocs-Redis-01:
    True
SaltDocs-Master-02:
    True
SaltDocs-Master-01:
    True

@sagetherage sagetherage reopened this Aug 12, 2020
@sagetherage
Copy link
Contributor

sagetherage commented Aug 12, 2020

This has resurfaced, opening and putting through triage. Noted in v3001.1 with python 3.6.

@sagetherage sagetherage added needs-triage and removed P3 Priority 3 severity-low 4th level, cosemtic problems, work around exists labels Aug 12, 2020
@sagetherage sagetherage removed this from the Approved milestone Aug 12, 2020
@sagetherage sagetherage added the Regression The issue is a bug that breaks functionality known to work in previous releases. label Aug 12, 2020
@DmitryKuzmenko DmitryKuzmenko added Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Core relates to code central or existential to Salt severity-low 4th level, cosemtic problems, work around exists Magnesium Mg release after Na prior to Al and removed needs-triage labels Aug 12, 2020
@sagetherage sagetherage added this to the Magnesium milestone Aug 17, 2020
@sagetherage sagetherage added Magnesium Mg release after Na prior to Al and removed Magnesium Mg release after Na prior to Al severity-low 4th level, cosemtic problems, work around exists labels Sep 10, 2020
@sagetherage sagetherage added Aluminium Release Post Mg and Pre Si and removed Magnesium Mg release after Na prior to Al labels Sep 29, 2020
@sagetherage sagetherage modified the milestones: Magnesium, Approved Oct 8, 2020
@sagetherage sagetherage modified the milestones: Approved, Aluminium Dec 7, 2020
@sagetherage sagetherage added Silicon v3004.0 Release code name and removed Aluminium Release Post Mg and Pre Si labels Mar 24, 2021
@sagetherage sagetherage modified the milestones: Aluminium, Silicon Mar 24, 2021
@sagetherage sagetherage added the P2 Priority 2 label May 7, 2021
@cmcmarrow
Copy link
Contributor

@grichmond-salt I got the same warning on 3001 but on master I no longer get this warning on master.
I used msgpack==0.6.2.
I looked around for any other encoding args/warnings that would bother you and did not see any.
If you see anymore warnings pls reopen the PR and given the commanded you ran to give it.
Here is the PR that fixed the problem #51262.

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 Confirmed Salt engineer has confirmed bug/feature - often including a MCVE Core relates to code central or existential to Salt P2 Priority 2 Regression The issue is a bug that breaks functionality known to work in previous releases. Silicon v3004.0 Release code name
Projects
None yet
Development

No branches or pull requests

8 participants