Closed roskens closed 6 years ago
I am unable to replicate this issue.
[root@salt ~]# salt-call state.apply test --local
local:
----------
ID: non-existing-service
Function: service.dead
Result: True
Comment: The named service non-existing-service is not available
Started: 18:29:08.216462
Duration: 21.847 ms
Changes:
Summary for local
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
Total run time: 21.847 ms
[root@salt ~]# rpm -qa systemd\*
systemd-python-219-30.el7_3.6.x86_64
systemd-219-30.el7_3.6.x86_64
systemd-sysv-219-30.el7_3.6.x86_64
systemd-libs-219-30.el7_3.6.x86_64
[root@salt ~]# cat /srv/salt/test.sls
non-existing-service:
service.dead:
- name: non-existing-service
- enable: False
[root@salt ~]# salt-call --versions-report
Salt Version:
Salt: 2016.11.1
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.5
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.5 (default, Aug 2 2016, 04:20:16)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: redhat 7.3 Maipo
machine: x86_64
release: 3.10.0-514.2.2.el7.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 7.3 Maipo
Also working from the master.
[root@salt ~]# salt \* state.apply test
salt.c.gtmanfred-1263.internal:
----------
ID: non-existing-service
Function: service.dead
Result: True
Comment: The named service non-existing-service is not available
Started: 18:30:38.167912
Duration: 22.323 ms
Changes:
Summary for salt.c.gtmanfred-1263.internal
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
Total run time: 22.323 ms
Can you make sure you don't have an extra systemd.py or service.py in your extmods for the minion?
Otherwise, I will need some more information to be able to replicate this issue.
Thanks, Daniel
The only extmods in place are one for some custom grains and another module.
# locate extmod /usr/lib/python2.7/site-packages/salt/utils/extmods.py /usr/lib/python2.7/site-packages/salt/utils/extmods.pyc /usr/lib/python2.7/site-packages/salt/utils/extmods.pyo /var/cache/salt/minion/extmods /var/cache/salt/minion/extmods/grains /var/cache/salt/minion/extmods/modules /var/cache/salt/minion/extmods/grains/biw_host.py /var/cache/salt/minion/extmods/grains/biw_host.pyc /var/cache/salt/minion/extmods/modules/biw.py /var/cache/salt/minion/extmods/modules/biw.pyc
What's weird is I get the error on my RHEL6 salt-master running 2016.11.1, but not when I apply the state locally on the RHEL7 salt-minion.
# rpm -qa |grep salt salt-2016.11.1-1.el6.noarch salt-master-2016.11.1-1.el6.noarch salt-repo-latest-1.el6.noarch salt-minion-2016.11.1-1.el6.noarch
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
Description of Issue/Question
systemctl status returns different output/error codes after 219-23 update. This causes service.dead to produce a failure when it should pass.
Setup
test-case.sls:
Steps to Reproduce Issue
From the minions log file (in debug mode:)
Versions Report
The minion has these systemd packages installed:
The state succeeds on a minion with prior versions of systemd: