salt: minion does not return chocolatey.list
Description of Issue
Trying to execute salt module chocolatey to list installed packages on Windows minions.
salt -G 'os:Windows' chocolatey.list local_only=True
Minions never return anything, I just get [No Reponse] on master.
If I run
salt-call --local chocolatey.list local_only=True
on the minion itself, I get expected output, which is the list of chocolatey packages currently installed on the minion.
Setup
There is nothing particular about my setup. I have a master running on Ubuntu 18.04 (Py3) and two Windows minions, Server 2016 and Server 2019.
Steps to Reproduce Issue
As per above
salt -G 'os:Windows' chocolatey.list local_only=True
Versions Report
Master and minions both running latest 2019.2.1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Fixes minion returning list in chocolatey module Changes CaseInsensitiveDict implementation from requests to salt's data util Fixes #54899 — committed to haodeon/salt by haodeon 4 years ago
Don’t forget
json.dumps
too as it’s used by themysql
returner and likely others.That’ll do it - it looks like msgpack 0.5.6 dumped a repr, where 0.6.1 will do something like this:
Tricksy.
We have some efforts to unify the way we’re wrapping msgpack, so it should be possible for us to put a try/except around there to confirm that we’re properly passing serializable types to msgpack. Which we’re clearly not doing here 😞
This issue still occurs with MsgPack v0.5.6 and it was explained with code references why it would have issues. The requirements as listed in salt still reference v0.5.6, until this is updated or the issue I pointed out is fixed, this doesn’t deserve to be closed.