我正在尝试将小兵重新连接到新的盐管理员。 为此,
rm -r /etc/salt/pki
systemctl force-reload salt-minion.servce
salt-call state.sls motd
(或任何公式)要点如下。对于我的一些奴才,我不能说为什么,但是当我运行最后一个命令salt-call state.sls motd
时,我遇到了这个问题:
[ERROR ] An un-handled exception was caught by salt's global exception handler:
KeyError: 'saltutil.is_running'
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
salt_call()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 396, in salt_call
client.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/call.py", line 58, in run
caller.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 134, in run
ret = self.call()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 204, in call
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 1071, in sls
conflict = running(concurrent)
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 209, in running
active = __salt__['saltutil.is_running']('state.*')
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1121, in __getitem__
func = super(LazyLoader, self).__getitem__(item)
File "/usr/lib/python2.7/dist-packages/salt/utils/lazy.py", line 101, in __getitem__
raise KeyError(key)
KeyError: 'saltutil.is_running'
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
salt_call()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 396, in salt_call
client.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/call.py", line 58, in run
caller.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 134, in run
ret = self.call()
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 204, in call
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 1071, in sls
conflict = running(concurrent)
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 209, in running
active = __salt__['saltutil.is_running']('state.*')
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1121, in __getitem__
func = super(LazyLoader, self).__getitem__(item)
File "/usr/lib/python2.7/dist-packages/salt/utils/lazy.py", line 101, in __getitem__
raise KeyError(key)
KeyError: 'saltutil.is_running'
我的盐版本:
Salt Version:
Salt: 2017.7.8
Dependency Versions:
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.3
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: 1.2.3
pycparser: 2.10
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.9 (default, Jun 29 2016, 13:08:31)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
System Versions:
dist: debian 8.8
locale: UTF-8
machine: x86_64
release: 3.16.0-4-amd64
system: Linux
version: debian 8.8
我尝试通过以下方式卸载salt-minion:
apt-get autoremove salt-minion* -y
apt-get purge salt-minion* -y
aptitude purge salt-minion -y
还有apt-get update & install salt-minion
但是我仍然有完全相同的错误。而且不是每个奴才。对于其中一些服务器,我在每台服务器上都具有完全相同的配置,并且它可以在一个服务器上工作,而不能在另一个服务器上工作。
有任何线索吗?帮助:s