Open rjc opened 2 years ago
Any grain with a list of dicts will have the same behaviour. So does pillar.get
and config.get
.
I think this has been reported before, but I can't find the issue.
I've run into this same issue. The "Expected Behavior" by @rjc is what I would expect
Description
All GPU vendors and GPU model names are visible when running:
However, only a single one is shown when running:
On different machines, also with Matrox and Nvidia GPUs, the result will differ and the latter vendor is shown:
The results are deterministic insofar as not to flip between vendors on the same machine but I can't seem to find the pattern why on some machines it is one and on other machines the other vendor is shown.
This makes it impossible to target machines using that particular grain, e.g.:
will only run/apply
foo
to machines which returnnvidia
as the first, and only, vendor.Setup This can be observed without any specific Salt configuration in place.
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Run
salt-call grains.item gpus:vendor
on any machine with GPUs from several vendors.Expected behavior
Have all vendors returned like so:
The same could be extended to
gpus:model
name:Versions Report
salt --versions-report
```yaml # salt --versions-report Salt Version: Salt: 3005.1 Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.6.1 docker-py: Not Installed gitdb: 2.0.3 gitpython: 2.1.8 Jinja2: 2.10 libgit2: 0.26.0 M2Crypto: Not Installed Mako: 1.0.7 msgpack: 0.5.6 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: 2.6.1 pycryptodome: 3.4.7 pygit2: 0.26.2 Python: 3.6.9 (default, Jun 29 2022, 11:45:57) python-gnupg: 0.4.1 PyYAML: 3.12 PyZMQ: 17.1.2 smmap: 2.0.3 timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.2.5 System Versions: dist: ubuntu 18.04 Bionic Beaver locale: UTF-8 machine: x86_64 release: 5.4.0-132-generic system: Linux version: Ubuntu 18.04 Bionic Beaver ```