Skip to content

Failed to load ext_pillar stack: no filter named 'list_files' #43

Open

Description

@Kassec

Hello,

Trying to use some jinja filters leads to this kind of error:
Failed to load ext_pillar stack: no filter named 'list_files'

Salt Version:
           Salt: 2017.7.5
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.5.3
      docker-py: Not Installed
          gitdb: 2.0.0
      gitpython: 2.1.1
          ioflo: Not Installed
         Jinja2: 2.9.4
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.13 (default, Nov 24 2017, 17:33:09)
   python-gnupg: Not Installed
         PyYAML: 3.12
          PyZMQ: 16.0.2
           RAET: Not Installed
          smmap: 2.0.1
        timelib: Not Installed
        Tornado: 4.4.3
            ZMQ: 4.2.1
 
System Versions:
           dist: debian 9.4 
         locale: UTF-8
        machine: x86_64
        release: 4.9.0-6-amd64
         system: Linux
        version: debian 9.4 

Activity

  1. Kassec commented on May 4, 2018

    @Kassec
    Author

    Following this I found I couldn't access goodies under "salt.utils" even by other means.

    The following jinja in a file parsed by stack:

    data1:
      {{ __salt__['pillar.get']('foo:bar:baz', 'qux') }}
    data2:
      {{ __salt__['log.error']('works ?') }}
    data3:
      {{ __salt__['dnsutil.AAAA']('google.com') }}
    

    Ends up in pillar the way it should:

    # salt '*' pillar.items
    salt-master:
        ----------
        data1:
            qux
        data2:
            True
        data3:
            - 2a00:1450:4007:810::200e
    

    Trying to access salt.utils namespace with:

    data4:
      {{ __salt__['utils.hashutils.md5_digest']('data') }}
    

    Generates an error:

    # salt '*' pillar.items
    salt-master:
        ----------
        _errors:
            - Failed to load ext_pillar stack: 'salt.loader.LazyLoader object' has no attribute 'utils.hashutils.md5_digest'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions