3

I get this message, and I have no clue why

salt:/srv # salt-ssh foo-archiv state.sls monitoring

[ERROR   ] Rendering exception occurred: Jinja variable 'salt.utils.context.NamespacedDictWrapper object' has no attribute 'monitoring'
[CRITICAL] Rendering SLS 'base:monitoring' failed: Jinja variable 'salt.utils.context.NamespacedDictWrapper object' has no attribute 'monitoring'
foo-archiv:
    - Rendering SLS 'base:monitoring' failed: Jinja variable 'salt.utils.context.NamespacedDictWrapper object' has no attribute 'monitoring'

What can be the root of this problem?

The same sls-files works for a different host!

guettli
  • 3,113
  • 14
  • 59
  • 110
  • 1
    I had this same problem but it was due to a comment that had a non-existing variable in it. (sorry I don't have enough reputation to comment) – pwnyrainbow Jun 18 '20 at 15:22

1 Answers1

5

Answering my own question.

The file pillar/foo-archiv.sls` exists.

But the host foo-archiv was missing in pillar/top.sls.

In our setup the file pillar/foo-archiv.sls gets included in pillar/top.sls.

guettli
  • 3,113
  • 14
  • 59
  • 110