Open OrangeDog opened 3 years ago
Also note that salt is listing units that aren't services. I don't know whether that's intentional or another bug.
They can all be "started", "stopped" or "enabled" and some can be "reloaded", so there is some use to having them.
I apologize I missed this comment @OrangeDog I will get this in front of the Core team and follow up.
My thought is that we should be listing anything systemd does. (I.e. intentional, not a bug. Or at least it should be intentional)
Description Under systemd you can have multiple services based on the same unit file. These will be listed containing an
@
in the service name. Some Salt functions, e.g.systemd_service.get_all
do not handle this correctly.Setup Be logged in to any systemd system.
Steps to Reproduce the behavior
Expected behavior Should include the full names of each service, including multiple for the same template.
Versions Report
salt --versions-report
``` Salt Version: Salt: 3003 Dependency Versions: cffi: 1.14.5 cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.10.1 libgit2: 1.1.0 M2Crypto: 0.31.0 Mako: Not Installed msgpack: 0.6.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.20 pycrypto: Not Installed pycryptodome: 3.6.1 pygit2: 1.5.0 Python: 3.8.5 (default, Jan 27 2021, 15:41:15) python-gnupg: 0.4.5 PyYAML: 5.3.1 PyZMQ: 18.1.1 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.2 System Versions: dist: ubuntu 20.04 focal locale: utf-8 machine: x86_64 release: 5.4.0-71-generic system: Linux version: Ubuntu 20.04 focal ```Additional context
systemctl list-units
can't show services from unloaded units, e.g.salt-proxy
. In an attempt to represent "disabled" services, salt is probably conflating units with unit files.