-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Labels
Bugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behavior
Milestone
Description
Description
The virtual
and virtual_subtype
grains in a systemd based Podman container shows as "physical" instead of "container", as is the case with Docker containers already.
Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
- on-prem machine
- VM (Virtualbox, KVM, etc. please specify)
- VM running on a cloud service, please be explicit and add details
- container (Kubernetes, Docker, containerd, etc. please specify)
- or a combination, please be explicit
- jails if it is FreeBSD
- classic packaging
- onedir packaging
- used bootstrap to install
Steps to Reproduce the behavior
# salt-call --local grains.get virtual
local:
physical
Expected behavior
# salt-call --local grains.get virtual
local:
container
Screenshots
n/a
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)27ff0fac8805:~ # salt --versions-report
Salt Version:
Salt: 3006.0
Python Version:
Python: 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC]
Dependency Versions:
cffi: 1.13.2
cherrypy: Not Installed
contextvars: 2.4
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10.1
libgit2: 1.7.1
looseversion: 1.0.2
M2Crypto: 0.38.0
Mako: 1.0.7
msgpack: 0.5.6
msgpack-pure: Not Installed
mysql-python: 1.4.6
packaging: 21.3
pycparser: 2.17
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: 1.14.0
python-gnupg: Not Installed
PyYAML: 5.4.1
PyZMQ: 17.1.2
relenv: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.3
System Versions:
dist: opensuse-leap 15.6
locale: UTF-8
machine: x86_64
release: 6.13.1-1-default
system: Linux
version: openSUSE Leap 15.6
Additional context
I will submit a patch solving this using systemd-detect-virt
.
Metadata
Metadata
Labels
Bugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behavior