-
-
Save jalons/67f68ba52f2fd6373492 to your computer and use it in GitHub Desktop.
minions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Line 16 was changed on each run, to demo each as the default ext_job_cache. All ports are reachable, and dns name of mongo resolves correctly. Python from within the virtualenvironment is able to import the relative rivers | |
16 ext_job_cache: [mongo|memcache|redis] | |
17 | |
18 memcache.host: 10.3.10.4 | |
19 memcache.port: '11211' | |
20 | |
21 redis.host: 10.3.10.4 | |
22 redis.db: 0 | |
23 redis.port: 6379 | |
24 | |
25 mongo.db: salt | |
26 mongo.host: mongo | |
27 mongo.port: 27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] User root Executing command test.ping with jid 20150706130102338568 | |
[DEBUG ] Command details {'tgt_type': 'glob', 'jid': '20150706130102338568', 'tgt': '*', 'ret': 'memcache', 'user': 'root', 'arg': [], 'fun': 'test.ping'} | |
[INFO ] Starting a new job with PID 17682 | |
[DEBUG ] LazyLoaded test.ping | |
[INFO ] Returning information for job: 20150706130102338568 | |
[DEBUG ] Re-using SAuth for ('/home/jalons/salt/etc/salt/pki/minion', 'minion.domain.tld', 'tcp://127.0.0.1:14506') | |
[DEBUG ] LazyLoaded memcache.returner | |
[DEBUG ] memcache server: : | |
[ERROR ] Host or port not defined in salt config | |
[ERROR ] The return failed for job 20150706130102338568 'NoneType' object has no attribute 'set' | |
[ERROR ] Traceback (most recent call last): | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/minion.py", line 1238, in _thread_return | |
)](ret) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/memcache_return.py", line 119, in returner | |
serv.set('{0}:{1}'.format(ret['id'], ret['jid']), json.dumps(ret)) | |
AttributeError: 'NoneType' object has no attribute 'set' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] User root Executing command test.ping with jid 20150706130003155202 | |
[DEBUG ] Command details {'tgt_type': 'glob', 'jid': '20150706130003155202', 'tgt': '*', 'ret': 'mongo', 'user': 'root', 'arg': [], 'fun': 'test.ping'} | |
[INFO ] Starting a new job with PID 17091 | |
[DEBUG ] LazyLoaded test.ping | |
[INFO ] Returning information for job: 20150706130003155202 | |
[DEBUG ] Re-using SAuth for ('/home/jalons/salt/etc/salt/pki/minion', 'minion.domain.tld', 'tcp://127.0.0.1:14506') | |
[DEBUG ] LazyLoaded mongo.returner | |
[ERROR ] The return failed for job 20150706130003155202 [Errno -2] Name or service not known | |
[ERROR ] Traceback (most recent call last): | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/minion.py", line 1238, in _thread_return | |
)](ret) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/mongo_future_return.py", line 147, in returner | |
conn, mdb = _get_conn(ret) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/mongo_future_return.py", line 128, in _get_conn | |
conn = pymongo.Connection(host, port) | |
File "/root/saltvenv/lib/python2.7/site-packages/pymongo/connection.py", line 236, in __init__ | |
max_pool_size, document_class, tz_aware, _connect, **kwargs) | |
File "/root/saltvenv/lib/python2.7/site-packages/pymongo/mongo_client.py", line 369, in __init__ | |
raise ConnectionFailure(str(e)) | |
ConnectionFailure: [Errno -2] Name or service not known |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] User root Executing command test.ping with jid 20150706125850004837 | |
[DEBUG ] Command details {'tgt_type': 'glob', 'jid': '20150706125850004837', 'tgt': '*', 'ret': 'redis', 'user': 'root', 'arg': [], 'fun': 'test.ping'} | |
[INFO ] Starting a new job with PID 16464 | |
[DEBUG ] LazyLoaded test.ping | |
[INFO ] Returning information for job: 20150706125850004837 | |
[DEBUG ] Re-using SAuth for ('/home/jalons/salt/etc/salt/pki/minion', 'minion.domain.tld', 'tcp://127.0.0.1:14506') | |
[DEBUG ] LazyLoaded redis.returner | |
[ERROR ] The return failed for job 20150706125850004837 'NoneType' object has no attribute 'get' | |
[ERROR ] Traceback (most recent call last): | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/minion.py", line 1238, in _thread_return | |
)](ret) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/redis_return.py", line 100, in returner | |
serv = _get_serv(ret) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/redis_return.py", line 85, in _get_serv | |
_options = _get_options(ret) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/redis_return.py", line 77, in _get_options | |
__opts__=__opts__) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/__init__.py", line 85, in get_returner_options | |
attrs, | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/__init__.py", line 170, in _options_browser | |
value = _fetch_option(cfg, ret_config, virtualname, options[option]) | |
File "/root/saltvenv/lib/python2.7/site-packages/salt/returners/__init__.py", line 136, in _fetch_option | |
return c_cfg.get(default_cfg_key, cfg(default_cfg_key)) | |
AttributeError: 'NoneType' object has no attribute 'get' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment