You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
salt-call pillar.items does the same, but the result is discarded. Then ext_pillar.stack is called a second time with __opts__['pillarenv']=master
The results from the second call are used as the result:
Expected behavior
I would expect pillar.items and pillar.get to give consistent results. And I do not understand why pillar.items makes two calls.
The supplied test.conf is a workaround for this bug; when removing either the opts.pillarenv or opts.saltenv sections (and restarting the salt-master) pillar.items or pillar.get gives an empty result.
Versions Report
salt --versions-report
Salt Version:
Salt: 3005+197.g1a546537b1Dependency Versions:
cffi: 1.15.1cherrypy: Not Installeddateutil: 2.8.2docker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: 2.21pycrypto: Not Installedpycryptodome: 3.15.0pygit2: Not InstalledPython: 3.10.6 (main, Aug 2 2022, 15:11:03) [GCC 7.5.0]python-gnupg: 0.4.1PyYAML: 3.12PyZMQ: 20.0.0smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.3System Versions:
dist: ubuntu 18.04 Bionic Beaverlocale: utf-8machine: x86_64release: 4.15.0-191-genericsystem: Linuxversion: Ubuntu 18.04 Bionic Beaver```</details>
The text was updated successfully, but these errors were encountered:
Description
When using
opts.pillarenv
andopts.saltenv
inpillar.stack
,pillar.items
andpillar.get
give inconsistent answers.I suspect that's because they're called with inconsistent
saltenv
andpillarenv
values in__opts__
:Setup
master.conf:
/tmp/foo.cfg:
/tmp/foo.yml:
Steps to Reproduce the behavior
An extra debug line (diff below) in
stack.py
sheds some light:salt-call pillar.get foo
callsext_pillar.stack
with__opts__['pillarenv']=None
.salt-call pillar.items
does the same, but the result is discarded. Thenext_pillar.stack
is called a second time with__opts__['pillarenv']=master
The results from the second call are used as the result:
Expected behavior
I would expect
pillar.items
andpillar.get
to give consistent results. And I do not understand whypillar.items
makes two calls.The supplied
test.conf
is a workaround for this bug; when removing either theopts.pillarenv
oropts.saltenv
sections (and restarting the salt-master)pillar.items
orpillar.get
gives an empty result.Versions Report
salt --versions-report
The text was updated successfully, but these errors were encountered: