Closed oms4suse closed 6 years ago
@oms4suse I am able to replicate this thanks for the heads up on this. we will need to get this fixed. Thanks
This issue is also affecting me, but with another module.
Salt Version:
Salt: 2016.11.2
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.4.2
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.0.3
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.12 (default, Nov 19 2016, 06:48:10)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.2.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: Ubuntu 16.04 xenial
machine: x86_64
release: 4.8.0-32-generic
system: Linux
version: Ubuntu 16.04 xenial
Am getting this on module.run
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.
Description of Issue/Question
This issue is subtle. It causes execution modules to behave differently when called by sls files and on the command line. I found it while supporting my salt module for ceph. I will submit a different bug for that instance. That said I will use the same example for this and the specific bug.
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Assuming you have an execution module that looks like:
When called by the command line this works:
or like this:
but if called like this:
it produces the following exception:
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
you can reproduce this simply by making a prototype execution:
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)Salt Version: Salt: 2015.8.10
Dependency Versions: Jinja2: 2.8 M2Crypto: Not Installed Mako: 1.0.1 PyYAML: 3.11 PyZMQ: 15.2.0 Python: 2.7.12 (default, Jul 01 2016, 15:34:22) [GCC] RAET: Not Installed Tornado: 4.3 ZMQ: 4.1.5 cffi: 1.6.0 cherrypy: 3.6.0 dateutil: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed libgit2: 0.22.0 libnacl: Not Installed msgpack-pure: Not Installed msgpack-python: 0.4.6 mysql-python: 1.2.5 pycparser: 2.14 pycrypto: 2.6.1 pygit2: 0.22.0 python-gnupg: 0.3.8 smmap: Not Installed timelib: Not Installed
System Versions: dist: SuSE 42.1 x86_64 machine: x86_64 release: 4.1.27-27-default system: openSUSE 42.1 x86_64
Minion:
rpm -qa | grep salt
salt-2015.8.10-76.1.x86_64 salt-minion-2015.8.10-76.1.x86_64
Master
rpm -qa | grep salt
salt-master-2015.8.10-76.8.x86_64 salt-2015.8.10-76.8.x86_64 salt-minion-2015.8.10-76.8.x86_64