Created
May 10, 2015 05:09
-
-
Save garionphx/ddd24a29153047aa1b7e to your computer and use it in GitHub Desktop.
error when calling highstate, trying to access a mine from a pillar.
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
2015-05-10 05:07:23,503 [salt.pillar ][CRITICAL] Rendering SLS 'dev-pillars' failed, render error: | |
Jinja error: 'master_uri' | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 280, in render_jinja_tmpl | |
output = template.render(**decoded_context) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render | |
return self.environment.handle_exception(exc_info, True) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "<template>", line 2, in top-level template code | |
File "/usr/lib/python2.7/dist-packages/salt/modules/mine.py", line 222, in get | |
load['tok'] = _auth().gen_token('salt') | |
File "/usr/lib/python2.7/dist-packages/salt/modules/mine.py", line 27, in _auth | |
__context__['auth'] = salt.crypt.SAuth(__opts__) | |
File "/usr/lib/python2.7/dist-packages/salt/crypt.py", line 811, in __init__ | |
self.crypticle = self.__authenticate() | |
File "/usr/lib/python2.7/dist-packages/salt/crypt.py", line 832, in __authenticate | |
self.opts.get('auth_tries', 1) | |
File "/usr/lib/python2.7/dist-packages/salt/crypt.py", line 636, in sign_in | |
self.opts['master_uri'], | |
KeyError: 'master_uri' | |
; line 2 | |
--- | |
database_conn: | |
{% for server, addrs in salt['mine.get']('nodetype:infrastructure', 'network.ip_addrs', expr_form='grain') %} <====================== | |
host: {{ addrs[0] }} | |
{% endfor %} | |
port: 3306 | |
username: test | |
password: test | |
[...] | |
--- | |
2015-05-10 05:07:23,505 [salt.pillar ][CRITICAL] Pillar render error: Rendering SLS 'dev-pillars' failed. Please see master log for details. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment