Rendering SLS '...' failed. Please see master log for details. without any actual data in master log

7,202 views
Skip to first unread message

Yaroslav Molochko

unread,
Jul 18, 2015, 5:45:16 PM7/18/15
to salt-...@googlegroups.com
Hello guys,

I've discovered strange behavior I can't fix for almost a week, when I do any of actions except test.ping to the node I got response:
[DEBUG   ] Sending event - data = {'fun_args': ['master-files'], 'jid': '20150718212000456503', 'return': ['Pillar failed to render with the following messages:', "Rendering SLS 'PSC01SERV008' failed. Please see master log for details."], 'retcode': 5, 'success': True, 'cmd': '_return', '_stamp': '2015-07-18T20:20:03.219076', 'fun': 'state.sls', 'id': 'PSC01SERV008', 'out': 'highstate'}

I've enabled debug log on master, without much success in dscovering where is the problem. I've even completely removed minion pillar for this node, keeping only info come common for all the hosts without such issue and still getting the error.
How can I debug it?

tim.h...@gmail.com

unread,
Jul 18, 2015, 7:46:37 PM7/18/15
to salt-...@googlegroups.com
Are you running the master in the foreground


salt-master -l debug

? That should produce lots of debug.

Alternatively you can set

pillar_safe_render_error = False

to get that error sent to the minions

Cheers, Tim

Shane Gibson

unread,
Jul 20, 2015, 1:01:14 PM7/20/15
to salt-...@googlegroups.com

Sounds like a syntax error in one of your Pillar files.  If you can - temporarily move aside your pillar then re-try ... 

I've found it excruciatingly frustrating to troubleshoot basic syntax errors in pillar or state files - still haven't found the magic knobs and switches to twiddle to regurgitate useful errors.  :-( 

~~shane

Viet Hung Nguyen

unread,
Jul 20, 2015, 11:02:11 PM7/20/15
to salt-...@googlegroups.com
you can run ``salt minionID pillar.items`` to get a shorter output.
The error often appears at the top of that result and it ONLY there.
There is no log for it in master log AFAIK.
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to salt-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Yaroslav Molochko

unread,
Jul 28, 2015, 10:46:40 AM7/28/15
to salt-...@googlegroups.com
I'm surprised, cleaning cache on all machines helped... don't know what was that
> You received this message because you are subscribed to a topic in the Google Groups "Salt-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/salt-users/yggoDJKfYBc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.

Vitaly Isaev

unread,
Sep 28, 2015, 7:50:57 AM9/28/15
to Salt-users
This one worked for me:

1.
$ sudo salt 'wks-ololo' pillar.items
wks
-ololo:
   
----------
    _errors
:
       
- Rendering SLS 'elliptics' failed. Please see master log for details.


2.
---
[...]
  image
: elliptics
  ports
:
   
- 1025: 1025
   
- 20000: 20000
  groups
: {{ elliptics_groups }}
{% if grains.orchestration == "consul" }    <======================
  service
:
    name
: elliptics-{{ grains.node_type }}
    tag
: {{ prefix }}
{% endif %}
  remotes
: {{ remotes }}
---
2015-09-28 14:39:16,241 [salt.pillar      ][CRITICAL][6877] Pillar render error: Rendering SLS 'elliptics' failed. Please see master log for details.


Reply all
Reply to author
Forward
0 new messages