{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25396","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25396/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25396/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25396/events","html_url":"https://github.com/saltstack/salt/issues/25396","id":94829359,"number":25396,"title":"Creating a custom module causes Minion to stop responding","user":{"login":"jtylers","id":9097963,"avatar_url":"https://avatars.githubusercontent.com/u/9097963?v=3","gravatar_id":"","url":"https://api.github.com/users/jtylers","html_url":"https://github.com/jtylers","followers_url":"https://api.github.com/users/jtylers/followers","following_url":"https://api.github.com/users/jtylers/following{/other_user}","gists_url":"https://api.github.com/users/jtylers/gists{/gist_id}","starred_url":"https://api.github.com/users/jtylers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtylers/subscriptions","organizations_url":"https://api.github.com/users/jtylers/orgs","repos_url":"https://api.github.com/users/jtylers/repos","events_url":"https://api.github.com/users/jtylers/events{/privacy}","received_events_url":"https://api.github.com/users/jtylers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Info%20Needed","name":"Info Needed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":268,"closed_issues":593,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-07-21T19:53:08Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-07-13T22:50:08Z","updated_at":"2015-07-21T20:40:06Z","closed_at":null,"body":"I was super excited to have the kerberos module implemented as seen here:\r\nhttps://github.com/saltstack/salt/blob/561d7b72bb8bb0d5fa5c4395db12425f27c26c1a/salt/modules/kerberos.py\r\n\r\nSo I created a custom execution module following the instructions here:\r\nhttps://docs.saltstack.com/en/develop/ref/modules/index.html\r\n\r\nI copied the code directly into a new file that I called \"kerberos.py\" inside of /srv/salt/_modules.  After that, I ran \"salt 'host' state.highstate\" and got back an error message:\r\n```\r\nHost:\r\nData failed to compile:\r\n\\-------------------\r\nThe function \"state.highstate\" is running as PID ##### and was started at ##### with jid ######\r\n```\r\nWhen I do \"salt-call state.highstate\" from the minion it runs correctly.  Using salt's debugging tools I found out that when I call highstate from the salt-master, it also runs all the necessary operations correctly on the minion, but gives that error message anyway. \r\n\r\nSalt master and minions are running version 2015.5.2  I have tried purging salt-minion and reinstalling it but the problem persists. "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/123471098","html_url":"https://github.com/saltstack/salt/issues/25396#issuecomment-123471098","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25396","id":123471098,"user":{"login":"jtylers","id":9097963,"avatar_url":"https://avatars.githubusercontent.com/u/9097963?v=3","gravatar_id":"","url":"https://api.github.com/users/jtylers","html_url":"https://github.com/jtylers","followers_url":"https://api.github.com/users/jtylers/followers","following_url":"https://api.github.com/users/jtylers/following{/other_user}","gists_url":"https://api.github.com/users/jtylers/gists{/gist_id}","starred_url":"https://api.github.com/users/jtylers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtylers/subscriptions","organizations_url":"https://api.github.com/users/jtylers/orgs","repos_url":"https://api.github.com/users/jtylers/repos","events_url":"https://api.github.com/users/jtylers/events{/privacy}","received_events_url":"https://api.github.com/users/jtylers/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T20:40:06Z","updated_at":"2015-07-21T20:40:06Z","body":"After running the following commands on offending minions and the master:\r\n\"apt-get purge salt*;\r\nrm -rf  /usr/lib/python2.7/dist-packages/salt;\r\nrm -rf  /var/cache/salt;\r\nrm -rf  /run/salt\"\r\nThen reinstalling salt-minion and salt-master, the minions responded as they normally would."}}