Skip to content
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

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

Open
Kassec opened this issue Apr 27, 2018 · 1 comment
Open

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

Kassec opened this issue Apr 27, 2018 · 1 comment

Comments

@Kassec
Copy link

Kassec commented Apr 27, 2018

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 

@Kassec
Copy link
Author

Kassec commented May 4, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant