2015.5.2 service.running option full_restart no longer works
Since updating our salt-minion from 2015.5.0 to 2015.5.2 full_restart option no longer restarts services.
minion version
Salt: 2015.5.2
Python: 2.7.5 (default, Jun 24 2015, 00:41:19)
Jinja2: 2.7.2
M2Crypto: 0.21.1
msgpack-python: 0.4.6
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 14.3.1
RAET: Not Installed
ZMQ: 3.2.5
Mako: Not Installed
state.sls
narwhal:
service.running:
- provider: systemd
- reload: True
- full_restart: True
- enable: True
- watch:
- cmd: narwhal-extract
- file: narwhal-config
minion log
2015-06-29 22:40:37,944 [salt.loaded.int.module.cmdmod][ERROR ][5250] Command 'systemctl reload narwhal.service' failed with return code: 3
2015-06-29 22:40:37,944 [salt.loaded.int.module.cmdmod][ERROR ][5250] output: Failed to issue method call: Job type reload is not applicable for unit narwhal.service.
Here is a state workaround
narwhal:
service.running:
# - reload: True
# - full_restart: True
- enable: True
# - watch:
# - cmd: narwhal-extract
# - file: narwhal-config
#this restart cmd.wait is a workaround until https://github.com/saltstack/salt/issues/25073 is resolved
narwhal-restart:
cmd.wait:
- name: systemctl restart narwhal
- watch:
- cmd: narwhal-extract
- file: narwhal-config
- order: last
@deuscapturus, thanks for the report.
Ran into the same issue. Lots of our states broken because services are not restarted after configuration changes.
Salt: 2015.5.2
Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
Jinja2: unknown
M2Crypto: 0.20.2
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.0.1
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 2.2.0.1
RAET: Not Installed
ZMQ: 3.2.5
Mako: Not Installed
This is still a problem in the latest version:
Salt Version:
Salt: 2015.8.1
Dependency Versions:
Jinja2: 2.7.2
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.10
PyZMQ: 14.3.1
Python: 2.7.5 (default, Jun 24 2015, 00:41:19)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 3.2.5
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.4.2
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: 2.10
pycrypto: 2.6.1
pygit2: 0.21.4
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: centos 7.1.1503 Core
machine: x86_64
release: 3.10.0-229.11.1.el7.x86_64
system: CentOS Linux 7.1.1503 Core
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.