When trying to run a state.sls command and supplying pillar data as a kwarg, I'm receiving the following error. I have tried this via the cli and via libpepper.
Sample libpepper command:
api.local(tgt='minion',fun='state.sls', arg='state', kwarg='pillar:{"foo":"bar"}')
[ERROR ] Some exception handling a payload from minion
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py", line 773, in handle_message
ret, req_opts = yield self.payload_handler(payload)
File "/usr/lib/python2.7/dist-packages/salt/ext/tornado/gen.py", line 1056, in run
value = future.result()
File "/usr/lib/python2.7/dist-packages/salt/ext/tornado/concurrent.py", line 239, in result
raise_exc_info(self._exc_info)
File "/usr/lib/python2.7/dist-packages/salt/ext/tornado/gen.py", line 294, in wrapper
result = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/master.py", line 1065, in _handle_payload
'clear': self._handle_clear}[key](load)
File "/usr/lib/python2.7/dist-packages/salt/master.py", line 1096, in _handle_clear
ret = getattr(self.clear_funcs, cmd)(load), {'fun': 'send_clear'}
File "/usr/lib/python2.7/dist-packages/salt/master.py", line 2101, in publish
whitelist=['saltutil.find_job'],
File "/usr/lib/python2.7/dist-packages/salt/utils/minions.py", line 962, in auth_check
if self.__fun_check(ind[valid], fun, fun_args, fun_kwargs):
File "/usr/lib/python2.7/dist-packages/salt/utils/minions.py", line 1073, in __fun_check
if self.__args_check(cond[fname_cond], args, kwargs):
File "/usr/lib/python2.7/dist-packages/salt/utils/minions.py", line 1103, in __args_check
for k, v in six.iteritems(cond_kwargs):
File "/usr/lib/python2.7/dist-packages/salt/ext/six.py", line 606, in iteritems
return d.iteritems(**kw)
AttributeError: 'list' object has no attribute 'iteritems'
[ERROR ] Uncaught exception in zmqstream callback
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 454, in _handle_events
self._handle_send()
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 493, in _handle_send
status = self.socket.send_multipart(msg, **kwargs)
File "/usr/lib/python2.7/dist-packages/zmq/sugar/socket.py", line 434, in send_multipart
i, rmsg,
TypeError: Frame 0 (u'Some exception handling minion...) does not support the buffer interface.
[ERROR ] Exception in callback <functools.partial object at 0x7fa8d6ea94c8>
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/ext/tornado/ioloop.py", line 606, in _run_callback
ret = callback()
File "/usr/lib/python2.7/dist-packages/salt/ext/tornado/stack_context.py", line 278, in null_wrapper
return fn(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 536, in <lambda>
self.io_loop.add_callback(lambda : self._handle_events(self.socket, 0))
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 454, in _handle_events
self._handle_send()
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 493, in _handle_send
status = self.socket.send_multipart(msg, **kwargs)
File "/usr/lib/python2.7/dist-packages/zmq/sugar/socket.py", line 434, in send_multipart
i, rmsg,
TypeError: Frame 0 (u'Some exception handling minion...) does not support the buffer interface.
When trying to run a
state.sls
command and supplying pillar data as a kwarg, I'm receiving the following error. I have tried this via the cli and via libpepper. Sample libpepper command:api.local(tgt='minion',fun='state.sls', arg='state', kwarg='pillar:{"foo":"bar"}')
Sample pepper cli command:
pepper -H -a ldap 'minion' state.sls 'state' pillar='{"foo":"bar"}'
Output:Error on salt-master: