Repository navigation
Closed
Labels
Corerelates to code central or existential to SaltP3Priority 3Renderersbugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
Description of Issue/Question
This might be an issue between salt-master on Fedora 21 and salt-minion on Fedora 23. Happens with state.apply but also test.ping:
salt v3 test.pingFull debug trace: https://gist.github.com/robnagler/f07954d2f95f48064dc756b509c81fce
This often happens when trying to read a file not in binary mode.Please open an issue and include the following error: unhashable type: 'dict'
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: unhashable type: 'dict'
Traceback (most recent call last):
File "/home/vagrant/.pyenv/versions/2.7.10/bin/salt", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/vagrant/src/robnagler/salt/scripts/salt", line 10, in <module>
salt_main()
File "/home/vagrant/src/robnagler/salt/salt/scripts.py", line 470, in salt_main
client.run()
File "/home/vagrant/src/robnagler/salt/salt/cli/salt.py", line 158, in run
for full_ret in cmd_func(**kwargs):
File "/home/vagrant/src/robnagler/salt/salt/client/__init__.py", line 622, in cmd_cli
**kwargs):
File "/home/vagrant/src/robnagler/salt/salt/client/__init__.py", line 1304, in get_cli_event_returns
connected_minions = salt.utils.minions.CkMinions(self.opts).connected_ids()
File "/home/vagrant/src/robnagler/salt/salt/utils/minions.py", line 581, in connected_ids
grains = self.serial.load(fp_).get('grains', {})
File "/home/vagrant/src/robnagler/salt/salt/payload.py", line 160, in load
return self.loads(data)
File "/home/vagrant/src/robnagler/salt/salt/payload.py", line 136, in loads
ret = msgpack.loads(msg, use_list=True, encoding=encoding)
File "msgpack/_unpacker.pyx", line 139, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:139)
TypeError: unhashable type: 'dict'
Setup
Two VMs: one with Fedora 21 (master) and one with Fedora 23. Both installed with bootstrap git develop.
Steps to Reproduce Issue
On master:
salt \* test.ping
Versions Report
Master:
Salt Version:
Salt: 2016.3.0-488-g40b6dfa
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.4.2
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.7
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.10 (default, Nov 14 2015, 01:41:47)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.0.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.3
ZMQ: 4.1.2
System Versions:
dist: fedora 21 Twenty One
machine: x86_64
release: 4.1.12-101.fc21.x86_64
system: Linux
version: Fedora 21 Twenty One
Minion:
Salt Version:
Salt: 2016.3.0-501-g0ebeb58
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.11 (default, Mar 31 2016, 20:46:51)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 14.7.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.3
ZMQ: 4.1.2
System Versions:
dist: fedora 23 Twenty Three
machine: x86_64
release: 4.2.3-300.fc23.x86_64
system: Linux
version: Fedora 23 Twenty Three
Metadata
Metadata
Assignees
Labels
Corerelates to code central or existential to SaltP3Priority 3Renderersbugbroken, incorrect, or confusing behaviorfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
cachedout commentedon May 5, 2016
Hrm. Can we see the grains on that minion? You don't have something like the reserved word
dictas a value in those grains, do you?robnagler commentedon May 5, 2016
Nothing to do with the grains. It's improperly escaped YAML. Create a pillar file as follows:
This is invalid YAML. Demonstrated by:
python -c 'import yaml; yaml.load("- {{}}")'Seems like this should be caught at the YAML level.
jfindlay commentedon May 6, 2016
I can reproduce this on 2015.8.8-ish with the master and minion on the same system.
configs
commands
logs
versions
jfindlay commentedon May 6, 2016
Same for state files:
configs
commands
logs
Check rendered YAML for invalid keys (#33213)