gbless 发表于 2018-1-3 22:37:55

Saltstack之multi-master

# salt-call test.ping  
SaltReqTimeoutError: after 60 seconds. (Try 1 of 4)
  
SaltReqTimeoutError: after 60 seconds. (Try 2 of 4)
  
SaltReqTimeoutError: after 60 seconds. (Try 3 of 4)
  
SaltReqTimeoutError: after 60 seconds. (Try 4 of 4)
  
Attempted to authenticate with master 192.168.199.39 and failed
  
Master ip address changed from 192.168.199.39 to 192.168.163.13
  
local:
  True
  
----以上测试结果是将minion中的auth_tries修改为4,默认值为7.
  
将值改成3次,并关闭主备master的测试结果:
  
# salt-call test.ping
  
SaltReqTimeoutError: after 60 seconds. (Try 1 of 3)
  
SaltReqTimeoutError: after 60 seconds. (Try 2 of 3)
  
SaltReqTimeoutError: after 60 seconds. (Try 3 of 3)
  
Attempted to authenticate with master 192.168.199.39 and failed
  
Master ip address changed from 192.168.199.39 to 192.168.163.13
  
SaltReqTimeoutError: after 60 seconds. (Try 1 of 3)
  
SaltReqTimeoutError: after 60 seconds. (Try 2 of 3)
  
SaltReqTimeoutError: after 60 seconds. (Try 3 of 3)
  
Attempted to authenticate with master 192.168.163.13 and failed
  
An un-handled exception was caught by salt's global exception handler:
  
AttributeError: 'SMinion' object has no attribute 'functions'
  
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
  salt_call()
  File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 227, in salt_call
  client.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/call.py", line 71, in run
  caller.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 236, in run
  ret = self.call()
  File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 107, in call
  if fun not in self.minion.functions:
  
AttributeError: 'SMinion' object has no attribute 'functions'
  
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 11, in <module>
  salt_call()
  File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 227, in salt_call
  client.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/call.py", line 71, in run
  caller.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 236, in run
  ret = self.call()
  File "/usr/lib/python2.7/site-packages/salt/cli/caller.py", line 107, in call
  if fun not in self.minion.functions:
  
AttributeError: 'SMinion' object has no attribute 'functions'
页: [1]
查看完整版本: Saltstack之multi-master