FAQ
I have upgraded to 2014.7 using pip install.
I've had no problems until I tried to run some states... I don't know why
but none of them compile.
I'm getting this generic error:
     Data failed to compile:
----------
     Rendering SLS resolve failed, render error: 'module' object has no
attribute 'traverse_dict_and_list'
Traceback (most recent call last):
   File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py",
line 2115, in render_state
     return avail
   File
"/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/template.py",
line 84, in compile_template
     ret = render(input_data, saltenv, sls, **render_kwargs)
   File
"/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/renderers/yaml.py",
line 67, in render
     if __salt__['config.get']('yaml_utf8', False):
   File
"/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/modules/config.py",
line 236, in get
     ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-')
AttributeError: 'module' object has no attribute 'traverse_dict_and_list'

Sometimes, when I try to use a grain in one of them I get this one instead:

     Rendering SLS "base:nginx" failed: Jinja variable 'dict object' has no
attribute 'osfullname'; line 5

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • C. R. Oldham at Nov 5, 2014 at 2:23 pm
    Good morning,

    What distro are you using?  That's kind of an unusual path for Python libraries.

    Is there a chance there is another Salt installation somewhere in /usr/lib or /usr/local/lib?

    --
    C. R. Oldham, Platform Engineer, SaltStack
    cr@saltstack.com


    From: Anna Berruezo <annbp91@gmail.com>
    Reply: salt-users@googlegroups.com <salt-users@googlegroups.com>>
    Date: November 5, 2014 at 5:15:47 AM
    To: salt-users@googlegroups.com <salt-users@googlegroups.com>>
    Subject:  [salt-users] Saltstack 2014.7 HUGE errors

    I have upgraded to 2014.7 using pip install.
    I've had no problems until I tried to run some states... I don't know why but none of them compile.
    I'm getting this generic error:
        Data failed to compile:
    ----------
        Rendering SLS resolve failed, render error: 'module' object has no attribute 'traverse_dict_and_list'
    Traceback (most recent call last):
      File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py", line 2115, in render_state
        return avail
      File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/template.py", line 84, in compile_template
        ret = render(input_data, saltenv, sls, **render_kwargs)
      File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/renderers/yaml.py", line 67, in render
        if __salt__['config.get']('yaml_utf8', False):
      File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/modules/config.py", line 236, in get
        ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-')
    AttributeError: 'module' object has no attribute 'traverse_dict_and_list'

    Sometimes, when I try to use a grain in one of them I get this one instead:

        Rendering SLS "base:nginx" failed: Jinja variable 'dict object' has no attribute 'osfullname'; line 5
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Dmitry Golubenko at Nov 5, 2014 at 2:34 pm

    On 11/05/2014 06:15 PM, Anna Berruezo wrote:
    I have upgraded to 2014.7 using pip install.
    I've had no problems until I tried to run some states... I don't know
    why but none of them compile.
    check if you have some stale python files from old or packaged salt
    installation
    I'm getting this generic error:
    Data failed to compile:
    ----------
    Rendering SLS resolve failed, render error: 'module' object has no
    attribute 'traverse_dict_and_list'
    Traceback (most recent call last):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py",
    line 2115, in render_state
    return avail
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/template.py",
    line 84, in compile_template
    ret = render(input_data, saltenv, sls, **render_kwargs)
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/renderers/yaml.py",
    line 67, in render
    if __salt__['config.get']('yaml_utf8', False):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/modules/config.py",
    line 236, in get
    ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-')
    AttributeError: 'module' object has no attribute 'traverse_dict_and_list'

    Sometimes, when I try to use a grain in one of them I get this one instead:

    Rendering SLS "base:nginx" failed: Jinja variable 'dict object' has
    no attribute 'osfullname'; line 5

    --
    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+unsubscribe@googlegroups.com
    For more options, visit https://groups.google.com/d/optout.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Mike Place at Nov 5, 2014 at 2:54 pm
    I have actually seen this error before. If memory serves, it can be caused
    by stale *.pyc files or by not fully restarting a minion after upgrade.

    -mp
    On Wed, Nov 5, 2014 at 7:34 AM, Dmitry Golubenko wrote:
    On 11/05/2014 06:15 PM, Anna Berruezo wrote:
    I have upgraded to 2014.7 using pip install.
    I've had no problems until I tried to run some states... I don't know
    why but none of them compile.
    check if you have some stale python files from old or packaged salt
    installation
    I'm getting this generic error:
    Data failed to compile:
    ----------
    Rendering SLS resolve failed, render error: 'module' object has no
    attribute 'traverse_dict_and_list'
    Traceback (most recent call last):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py",
    line 2115, in render_state
    return avail
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/template.py",
    line 84, in compile_template
    ret = render(input_data, saltenv, sls, **render_kwargs)
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/renderers/yaml.py",
    line 67, in render
    if __salt__['config.get']('yaml_utf8', False):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/modules/config.py",
    line 236, in get
    ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-')
    AttributeError: 'module' object has no attribute 'traverse_dict_and_list'

    Sometimes, when I try to use a grain in one of them I get this one instead:
    Rendering SLS "base:nginx" failed: Jinja variable 'dict object' has
    no attribute 'osfullname'; line 5

    --
    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+unsubscribe@googlegroups.com
    For more options, visit https://groups.google.com/d/optout.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Anna Berruezo at Nov 5, 2014 at 4:15 pm
    Wow, thanks! I will check everything and it's probably going to be one of
    these things. Or all of them.
    These errors are a bit scary, mostly because they are so generic that if
    you haven't seen them before you have no idea what are they referring to.

    El dc., 5 de nov., 2014 15.54 Mike Place <mp@saltstack.com> va escriure:
    I have actually seen this error before. If memory serves, it can be caused
    by stale *.pyc files or by not fully restarting a minion after upgrade.

    -mp

    On Wed, Nov 5, 2014 at 7:34 AM, Dmitry Golubenko <dmitry.golubenko@xiag.ch
    wrote:
    On 11/05/2014 06:15 PM, Anna Berruezo wrote:
    I have upgraded to 2014.7 using pip install.
    I've had no problems until I tried to run some states... I don't know
    why but none of them compile.
    check if you have some stale python files from old or packaged salt
    installation
    I'm getting this generic error:
    Data failed to compile:
    ----------
    Rendering SLS resolve failed, render error: 'module' object has no
    attribute 'traverse_dict_and_list'
    Traceback (most recent call last):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py",
    line 2115, in render_state
    return avail
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/template.py",
    line 84, in compile_template
    ret = render(input_data, saltenv, sls, **render_kwargs)
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/renderers/yaml.py",
    line 67, in render
    if __salt__['config.get']('yaml_utf8', False):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/modules/config.py",
    line 236, in get
    ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-')
    AttributeError: 'module' object has no attribute
    'traverse_dict_and_list'
    Sometimes, when I try to use a grain in one of them I get this one instead:
    Rendering SLS "base:nginx" failed: Jinja variable 'dict object' has
    no attribute 'osfullname'; line 5

    --
    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+unsubscribe@googlegroups.com
    For more options, visit https://groups.google.com/d/optout.

    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    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/hLbJiA2GJ3w/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Anna Berruezo at Nov 6, 2014 at 8:55 am
    Restarting everything solved the problem. Thanks! :)
    (I was pretty sure I had done it but I think some minion process were still
    running).
    On Wednesday, November 5, 2014 5:15:50 PM UTC+1, Anna Berruezo wrote:

    Wow, thanks! I will check everything and it's probably going to be one of
    these things. Or all of them.
    These errors are a bit scary, mostly because they are so generic that if
    you haven't seen them before you have no idea what are they referring to.

    El dc., 5 de nov., 2014 15.54 Mike Place <mp@saltstack.com> va escriure:
    I have actually seen this error before. If memory serves, it can be
    caused by stale *.pyc files or by not fully restarting a minion after
    upgrade.

    -mp

    On Wed, Nov 5, 2014 at 7:34 AM, Dmitry Golubenko <
    dmitry.golubenko@xiag.ch> wrote:
    On 11/05/2014 06:15 PM, Anna Berruezo wrote:
    I have upgraded to 2014.7 using pip install.
    I've had no problems until I tried to run some states... I don't know
    why but none of them compile.
    check if you have some stale python files from old or packaged salt
    installation
    I'm getting this generic error:
    Data failed to compile:
    ----------
    Rendering SLS resolve failed, render error: 'module' object has no
    attribute 'traverse_dict_and_list'
    Traceback (most recent call last):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py",
    line 2115, in render_state
    return avail
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/template.py",
    line 84, in compile_template
    ret = render(input_data, saltenv, sls, **render_kwargs)
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/renderers/yaml.py",
    line 67, in render
    if __salt__['config.get']('yaml_utf8', False):
    File
    "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/modules/config.py",
    line 236, in get
    ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-')
    AttributeError: 'module' object has no attribute
    'traverse_dict_and_list'
    Sometimes, when I try to use a grain in one of them I get this one instead:
    Rendering SLS "base:nginx" failed: Jinja variable 'dict object' has
    no attribute 'osfullname'; line 5

    --
    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+unsubscribe@googlegroups.com
    For more options, visit https://groups.google.com/d/optout.

    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    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/hLbJiA2GJ3w/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    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+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedNov 5, '14 at 12:15p
activeNov 6, '14 at 8:55a
posts6
users4

People

Translate

site design / logo © 2022 Grokbase