{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/32169","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/32169/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/32169/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/32169/events","html_url":"https://github.com/saltstack/salt/issues/32169","id":143845110,"number":32169,"title":"CommandNotFoundError: update-rc.d during service.enabled on Centos 7","user":{"login":"sknutsonsf","id":6289662,"avatar_url":"https://avatars.githubusercontent.com/u/6289662?v=3","gravatar_id":"","url":"https://api.github.com/users/sknutsonsf","html_url":"https://github.com/sknutsonsf","followers_url":"https://api.github.com/users/sknutsonsf/followers","following_url":"https://api.github.com/users/sknutsonsf/following{/other_user}","gists_url":"https://api.github.com/users/sknutsonsf/gists{/gist_id}","starred_url":"https://api.github.com/users/sknutsonsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sknutsonsf/subscriptions","organizations_url":"https://api.github.com/users/sknutsonsf/orgs","repos_url":"https://api.github.com/users/sknutsonsf/repos","events_url":"https://api.github.com/users/sknutsonsf/events{/privacy}","received_events_url":"https://api.github.com/users/sknutsonsf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-27T20:18:03Z","updated_at":"2016-03-27T21:01:28Z","closed_at":null,"body":"### Description of Issue/Question\r\nI'm installing services on Centos 7.2 and get the exception below. It happens with several different services.  I tried the \"develop\" branch yesterday and the issue is still occurring.\r\n\r\n==> default:      Comment: An exception occurred in this state: Traceback (most recent call last):\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/state.py\", line 1703, in call\r\n==> default:                   **cdata['kwargs'])\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/loader.py\", line 1612, in wrapper\r\n==> default:                   return f(*args, **kwargs)\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/states/service.py\", line 469, in enabled\r\n==> default:                   ret.update(_enable(name, None, **kwargs))\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/states/service.py\", line 127, in _enable\r\n==> default:                   if __salt__['service.enable'](name, **kwargs):\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/modules/systemd.py\", line 704, in enable\r\n==> default:                   cmd = [_get_service_exec(), '-f', name, 'defaults', '99']\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/modules/systemd.py\", line 144, in _get_service_exec\r\n==> default:                   salt.utils.check_or_die(executable)\r\n==> default:                 File \"/usr/lib/python2.7/site-packages/salt/utils/__init__.py\", line 804, in check_or_die\r\n==> default:                   raise CommandNotFoundError(command)\r\n==> default:               CommandNotFoundError: update-rc.d\r\n\r\n### Setup\r\n(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)\r\n\r\nI've attached the config file for rabbitmq.  It has some other items related to rabbitmq and selinux \r\n\r\n### Steps to Reproduce Issue\r\n(Include debug logs if possible and relevant.)\r\n[salt-debug-log.txt](https://github.com/saltstack/salt/files/191088/salt-debug-log.txt)\r\n\r\nsudo sh install_salt.sh -P -X \r\nunzip the files in  /vagrant or similar directory\r\nln -s /vagrant/salt-enable-bug /srv/salt\r\nsudo salt-call state.highstate --local -l debug\r\n\r\nDebug log output attached\r\n[salt-enable-bug.zip](https://github.com/saltstack/salt/files/191087/salt-enable-bug.zip)\r\n[salt-debug-log.txt](https://github.com/saltstack/salt/files/191089/salt-debug-log.txt)\r\n\r\n\r\n### Versions Report\r\n(Provided by running `salt --versions-report`. Please also mention any differences in master/minion versions.)\r\n\r\nSalt Version:\r\n           Salt: 2015.8.8\r\n \r\nDependency Versions:\r\n         Jinja2: 2.7.2\r\n       M2Crypto: 0.21.1\r\n           Mako: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.7.0\r\n         Python: 2.7.5 (default, Nov 20 2015, 02:00:19)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.5\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.7\r\n   mysql-python: Not Installed\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n   python-gnupg: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n \r\nSystem Versions:\r\n           dist: centos 7.2.1511 Core\r\n        machine: x86_64\r\n        release: 3.10.0-327.el7.x86_64\r\n         system: CentOS Linux 7.2.1511 Core\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/202144815","html_url":"https://github.com/saltstack/salt/issues/32169#issuecomment-202144815","issue_url":"https://api.github.com/repos/saltstack/salt/issues/32169","id":202144815,"user":{"login":"tsaridas","id":6619221,"avatar_url":"https://avatars.githubusercontent.com/u/6619221?v=3","gravatar_id":"","url":"https://api.github.com/users/tsaridas","html_url":"https://github.com/tsaridas","followers_url":"https://api.github.com/users/tsaridas/followers","following_url":"https://api.github.com/users/tsaridas/following{/other_user}","gists_url":"https://api.github.com/users/tsaridas/gists{/gist_id}","starred_url":"https://api.github.com/users/tsaridas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsaridas/subscriptions","organizations_url":"https://api.github.com/users/tsaridas/orgs","repos_url":"https://api.github.com/users/tsaridas/repos","events_url":"https://api.github.com/users/tsaridas/events{/privacy}","received_events_url":"https://api.github.com/users/tsaridas/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T21:01:28Z","updated_at":"2016-03-27T21:01:28Z","body":"same error here.\r\n```\r\nsalt-call --versions-report\r\nSalt Version:\r\n           Salt: 2015.8.8\r\n\r\nDependency Versions:\r\n         Jinja2: 2.7.2\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.7.0\r\n         Python: 2.7.5 (default, Nov 20 2015, 02:00:19)\r\n           RAET: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.5\r\n           cffi: Not Installed\r\n       cherrypy: Not Installed\r\n       dateutil: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n   mysql-python: 1.2.3\r\n      pycparser: Not Installed\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n   python-gnupg: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n\r\nSystem Versions:\r\n           dist: centos 7.2.1511 Core\r\n        machine: x86_64\r\n        release: 3.10.0-327.10.1.el7.x86_64\r\n         system: CentOS Linux 7.2.1511 Core\r\n```"}}