New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacktrace with listen_in when key is not valid #13744

Closed
ryan-lane opened this Issue Jun 25, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@ryan-lane
Contributor

ryan-lane commented Jun 25, 2014

My state had the following:

Ensure redis.conf is present:
  file.managed:
    - name: /etc/redis/redis.conf
    - source: salt://redis/redis.conf
    - template: jinja
    - listen_in:
      - supervisord: redis

But I had removed my supervisord state for redis. This resulted in a stack trace:

KeyError: ('supervisord', 'redis')
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 128, in salt_call
    client.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 398, in run
    caller.run()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 186, in run
    ret = self.call()
  File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 91, in call
    ret['return'] = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 288, in highstate
    whitelist=kwargs.get('whitelist')
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2770, in call_highstate
    return self.state.call_high(high)
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1906, in call_high
    ret = self.call_listen(chunks, ret)
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1872, in call_listen
    chunk = crefs[key]
KeyError: ('supervisord', 'redis')

@thatch45 thatch45 added Bug labels Jun 26, 2014

@thatch45 thatch45 added this to the ww27 milestone Jun 26, 2014

@thatch45 thatch45 self-assigned this Jun 26, 2014

@thatch45 thatch45 closed this in b1bdae8 Jun 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment