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
Description
Error logged in salt master log related to permissions
[salt.loader.lazy :977 ][DEBUG ][3765414] The functions from module 'core' are being loaded by dir() on the loaded module
[salt.loaded.int.grains.core:1259][INFO ][3765414] Although 'dmidecode' was found in path, the current user cannot execute it. Grains output might not be accurate.
Setup
Mater running on a physical machine (not observed by cloud/on-prem VM)
master config
Expected behavior
No errors reported, or they are in the minion log (not master)
Versions Report
salt --versions-report
Salt Version:
Salt: 3006.7Python Version:
Python: 3.10.13 (main, Feb 19 2024, 03:31:20) [GCC 11.2.0]Dependency Versions:
cffi: 1.14.6cherrypy: unknowndateutil: 2.8.1docker-py: Not Installedgitdb: 4.0.11gitpython: 3.1.41Jinja2: 3.1.3libgit2: Not Installedlooseversion: 1.0.2M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.2msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 22.0pycparser: 2.21pycrypto: Not Installedpycryptodome: 3.19.1pygit2: Not Installedpython-gnupg: 0.4.8PyYAML: 6.0.1PyZMQ: 23.2.0relenv: 0.15.1smmap: 5.0.1timelib: 0.2.4Tornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 11 bullseyelocale: utf-8machine: x86_64release: 5.10.0-18-amd64system: Linuxversion: Debian GNU/Linux 11 bullseye```</details>**Additional context**We are running the salt-master as non-root user (salt), and the user does indeed not have access to the full dmidecode information. The salt-minion is running as root and does have access. This error log is only observed in the /var/log/salt/master log, it is not present in the /var/log/salt/minion on the master or any other minions.
The text was updated successfully, but these errors were encountered:
Ideally it'd be nice if deps for dmidecode, virt-what, and smbios (if it's still used?) could be dropped for master daemons entirely.
I'm not sure what they're needed for on a master, but I'd presume most of that usage could be gathered by parsing sysfs (/sys/) and procfs (/proc/) entries directly, many of which are readable by non-root. That would simplify needing to parse the output of e.g. dmidecode, as each "fact" is generally constrained in a single file under those virtual filesystems.
Description
Error logged in salt master log related to permissions
Setup
Mater running on a physical machine (not observed by cloud/on-prem VM)
master config
Steps to Reproduce the behavior
We run a scheduled highstate every 5 min, but the error seems to be every minute (which is the git refresh period)
Expected behavior
No errors reported, or they are in the minion log (not master)
Versions Report
salt --versions-report
The text was updated successfully, but these errors were encountered: