salt-pack
salt-pack copied to clipboard
Salt: 2018.3.0 cp.get_dir cannot be used
Hello, when I installed the salt 2018.3.0 version, I can't execute cp.get_dir, cp.get_file can be used normally. Error is as follows: [root@master_1 qfpay]# salt 'minion_1' cp.get_dir salt://f5 /tmp/
minion_1:
The minion function caused an exception: Traceback (most recent call last):
File "/home/qfpay/python/lib/python2.7/site-packages/salt/minion.py", line 1600, in _thread_return
return_data = minion_instance.executors[fname](opts, data, func, args, kwargs)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/executors/direct_call.py", line 12, in execute
return func(*args, **kwargs)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/modules/cp.py", line 352, in get_dir
return client().get_dir(path, dest, saltenv, gzip)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/fileclient.py", line 437, in get_dir
for fn in self.file_list(saltenv, prefix=path):
File "/home/qfpay/python/lib/python2.7/site-packages/salt/fileclient.py", line 1276, in file_list
return salt.utils.data.decode(self.channel.send(load)) if six.PY2
File "/home/qfpay/python/lib/python2.7/site-packages/salt/utils/async.py", line 64, in wrap
ret = self._block_future(ret)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/utils/async.py", line 74, in _block_future
return future.result()
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/transport/zeromq.py", line 324, in send
ret = yield self._crypted_transfer(load, tries=tries, timeout=timeout, raw=raw)
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/transport/zeromq.py", line 292, in _crypted_transfer
ret = yield _do_transfer()
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/home/qfpay/python/lib/python2.7/site-packages/salt/transport/zeromq.py", line 276, in _do_transfer
tries=tries,
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/home/qfpay/python/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "
[root@master_1 qfpay]# salt -V Salt Version: Salt: 2018.3.0
Dependency Versions: cffi: 1.11.2 cherrypy: 3.2.3 dateutil: 2.6.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed Jinja2: 2.10 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: 1.0.7 msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: 1.3.12 pycparser: 2.18 pycrypto: 3.7.2 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.9 (default, Sep 30 2017, 07:50:44) python-gnupg: Not Installed PyYAML: 3.12 PyZMQ: 16.0.3 RAET: Not Installed smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.1.6
System Versions: dist: centos 6.9 Final locale: UTF-8 machine: x86_64 release: 2.6.32-696.el6.x86_64 system: Linux version: CentOS 6.9 Final #------------------------------------------------------------- [root@minion_1 ~]# /home/qfpay/python/bin/salt-minion -V Salt Version: Salt: 2018.3.0
Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed ioflo: Not Installed Jinja2: 2.10 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: Not Installed pycparser: Not Installed pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.14 (default, Apr 16 2018, 15:25:21) python-gnupg: Not Installed PyYAML: 3.12 PyZMQ: 17.0.0 RAET: Not Installed smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.1.6
System Versions: dist: centos 6.9 Final locale: UTF-8 machine: x86_64 release: 2.6.32-696.el6.x86_64 system: Linux version: CentOS 6.9 Final
Error log of minion is as follows: 2019-01-10 10:25:19,185 [salt.minion :1658][WARNING ][10099] The minion function caused an exception