You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
githubcdr opened this issue
Feb 11, 2020
· 4 comments
· Fixed by #56143
Assignees
Labels
Bugbroken, incorrect, or confusing behaviorConfirmedSalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to SaltP2Priority 2severity-high2nd top severity, seen by most users, causes major problemsv3000.1vulnerable version
/e/a/sources.list.d # ❯❯❯ salt-minion --versions
Salt Version:
Salt: 3000
Dependency Versions:
cffi: 1.12.3
cherrypy: Not Installed
dateutil: 2.6.1
docker-py: 4.0.2
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10
libgit2: 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: Not Installed
Python: 3.6.9 (default, Nov 7 2019, 10:44:02)
python-gnupg: 0.4.1
PyYAML: 3.12
PyZMQ: 16.0.2
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5
System Versions:
dist: Ubuntu 18.04 bionic
locale: ANSI_X3.4-1968
machine: x86_64
release: 4.15.0-72-generic
system: Linux
version: Ubuntu 18.04 bionic
/e/a/sources.list.d # ❯❯❯ salt-call test.version
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
load_entry_point('salt==3000', 'console_scripts', 'salt-call')()
File "/usr/lib/python3/dist-packages/salt/scripts.py", line 445, in salt_call
client.run()
File "/usr/lib/python3/dist-packages/salt/cli/call.py", line 47, in run
caller = salt.cli.caller.Caller.factory(self.config)
File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 63, in factory
return ZeroMQCaller(opts, **kwargs)
File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 312, in __init__
super(ZeroMQCaller, self).__init__(opts)
File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 87, in __init__
self.minion = salt.minion.SMinion(opts)
File "/usr/lib/python3/dist-packages/salt/minion.py", line 868, in __init__
salt.utils.yaml.safe_dump(cache_top, fp_)
File "/usr/lib/python3/dist-packages/salt/utils/yamldumper.py", line 124, in safe_dump
return yaml.dump(data, stream, Dumper=SafeOrderedDumper, **kwargs)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 200, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 188, in dump_all
dumper.represent(data)
File "/usr/lib/python3/dist-packages/yaml/representer.py", line 27, in represent
self.serialize(node)
File "ext/_yaml.pyx", line 1350, in _yaml.CEmitter.serialize (ext/_yaml.c:19880)
File "ext/_yaml.pyx", line 1525, in _yaml.output_handler (ext/_yaml.c:22762)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
load_entry_point('salt==3000', 'console_scripts', 'salt-call')()
File "/usr/lib/python3/dist-packages/salt/scripts.py", line 445, in salt_call
client.run()
File "/usr/lib/python3/dist-packages/salt/cli/call.py", line 47, in run
caller = salt.cli.caller.Caller.factory(self.config)
File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 63, in factory
return ZeroMQCaller(opts, **kwargs)
File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 312, in __init__
super(ZeroMQCaller, self).__init__(opts)
File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 87, in __init__
self.minion = salt.minion.SMinion(opts)
File "/usr/lib/python3/dist-packages/salt/minion.py", line 868, in __init__
salt.utils.yaml.safe_dump(cache_top, fp_)
File "/usr/lib/python3/dist-packages/salt/utils/yamldumper.py", line 124, in safe_dump
return yaml.dump(data, stream, Dumper=SafeOrderedDumper, **kwargs)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 200, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 188, in dump_all
dumper.represent(data)
File "/usr/lib/python3/dist-packages/yaml/representer.py", line 27, in represent
self.serialize(node)
File "ext/_yaml.pyx", line 1350, in _yaml.CEmitter.serialize (ext/_yaml.c:19880)
File "ext/_yaml.pyx", line 1525, in _yaml.output_handler (ext/_yaml.c:22762)
TypeError: a bytes-like object is required, not 'str'
All dependencies are provided upstream.
The text was updated successfully, but these errors were encountered:
Bugbroken, incorrect, or confusing behaviorConfirmedSalt engineer has confirmed bug/feature - often including a MCVECorerelates to code central or existential to SaltP2Priority 2severity-high2nd top severity, seen by most users, causes major problemsv3000.1vulnerable version
Description of Issue
Salt-minion is not functioning as expected after upgrading to Salt 3000
Setup
apt source:
deb http://repo.saltstack.com/py3/ubuntu/18.04/amd64/latest bionic main
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Steps to Reproduce Issue
run salt-call test.version
Versions Report
/e/a/sources.list.d # ❯❯❯ salt-minion --versions
Salt Version:
Salt: 3000
Dependency Versions:
cffi: 1.12.3
cherrypy: Not Installed
dateutil: 2.6.1
docker-py: 4.0.2
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10
libgit2: 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: Not Installed
Python: 3.6.9 (default, Nov 7 2019, 10:44:02)
python-gnupg: 0.4.1
PyYAML: 3.12
PyZMQ: 16.0.2
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5
System Versions:
dist: Ubuntu 18.04 bionic
locale: ANSI_X3.4-1968
machine: x86_64
release: 4.15.0-72-generic
system: Linux
version: Ubuntu 18.04 bionic
All dependencies are provided upstream.
The text was updated successfully, but these errors were encountered: