salt icon indicating copy to clipboard operation
salt copied to clipboard

Pillar rendering silently ignores missing include

Open veym4os opened this issue 7 years ago • 10 comments

Pillar rendering silently ignores missing include

When including files from pillar's top.sls, the rendering fails if the included file is not available. But when a file is included by an existing file in the pillar, the rendederer silently ignores the error.

Setup

Only pillar required.

# top.sls
base:
  salt1:
    - does_exist
# does_exist.sls
include:
  - does_not_exist

Steps to Reproduce Issue

With the above setup call

salt-call pillar.items

Expected error:

local:
    ----------
    _errors:
        - Specified SLS 'does_not_exist' in environment 'base' is not available on the salt master

Actual result is no error, just an empty pillar:

local:
    ----------

Versions Report

Salt Version:
           Salt: 2019.2.2
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8.1
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: 0.33.0
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 3.6.8 (default, Aug  7 2019, 08:02:28)
   python-gnupg: 0.4.4
         PyYAML: 3.12
          PyZMQ: 15.3.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.4.2
            ZMQ: 4.1.4
 
System Versions:
           dist: oracle 7.7 
         locale: UTF-8
        machine: x86_64
        release: 4.1.12-124.31.1.el7uek.x86_64
         system: Linux
        version: Oracle Linux Server 7.7 

veym4os avatar Dec 02 '19 09:12 veym4os

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jan 16 '20 20:01 stale[bot]

@garethgreenaway does this ticket still need triage?

sagetherage avatar Jan 17 '20 19:01 sagetherage

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Jan 17 '20 19:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Feb 16 '20 20:02 stale[bot]

stable bot stale not!

sagetherage avatar Feb 21 '20 23:02 sagetherage

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Feb 21 '20 23:02 stale[bot]

run into the same issue...

It works with 2018.3 (salt complains about Specified SLS '...' in environment '...' is not available on the salt master), 2019.2 does not complain.

morph027 avatar Feb 24 '20 14:02 morph027

@morph027 Is there a way to fail-fast in case any pillar is not available on the master ?

hajdukd avatar Mar 06 '20 11:03 hajdukd

Thanks everyone, I was able to reproduce this. Looks it broke somewhere in between the 2018.3 and 2019.2 releases.

garethgreenaway avatar Mar 10 '20 18:03 garethgreenaway

Cannot reproduce on 3006.x / 3007.x / 3008.x / master. With the repro from the issue, pillar.items returns _errors: ["Specified SLS 'does_not_exist' in environment 'base' is not available on the salt master"] as expected. Closing.

dwoz avatar Jun 29 '26 21:06 dwoz