{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/33191","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/33191/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/33191/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/33191/events","html_url":"https://github.com/saltstack/salt/issues/33191","id":154354513,"number":33191,"title":"file_client: local doesn't stop the minion from trying to connect to master","user":{"login":"jtand","id":12056331,"avatar_url":"https://avatars.githubusercontent.com/u/12056331?v=3","gravatar_id":"","url":"https://api.github.com/users/jtand","html_url":"https://github.com/jtand","followers_url":"https://api.github.com/users/jtand/followers","following_url":"https://api.github.com/users/jtand/following{/other_user}","gists_url":"https://api.github.com/users/jtand/gists{/gist_id}","starred_url":"https://api.github.com/users/jtand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtand/subscriptions","organizations_url":"https://api.github.com/users/jtand/orgs","repos_url":"https://api.github.com/users/jtand/repos","events_url":"https://api.github.com/users/jtand/events{/privacy}","received_events_url":"https://api.github.com/users/jtand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-11T22:10:23Z","updated_at":"2016-05-11T23:27:12Z","closed_at":null,"body":"## Description of Issue/Question\r\nIt appears that `file_client: local` doesn't run the minion in masterless, as per [the docs](https://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html). This doesn't appear to hinder salt-call functionality. \r\n\r\n### Setup\r\nInstall salt.\r\nset `file_client: local` in minion config\r\nStart minion in debug mode: `salt-minion -l debug` \r\n\r\nThe debug log will output something like the following\r\n```bash\r\n[DEBUG   ] Reading configuration from /etc/salt/minion\r\n[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: li258-167.members.linode.com\r\n[DEBUG   ] Configuration file path: /etc/salt/minion\r\n[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.\r\n[INFO    ] Setting up the Salt Minion \"li258-167.members.linode.com\"\r\n[DEBUG   ] Created pidfile: /var/run/salt-minion.pid\r\n[DEBUG   ] Reading configuration from /etc/salt/minion\r\n[DEBUG   ] Please install 'virt-what' to improve results of the 'virtual' grain.\r\n[WARNING ] IMPORTANT: Do not use md5 hashing algorithm! Please set \"hash_type\" to sha256 in Salt Minion config!\r\n[INFO    ] The Salt Minion is starting up\r\n[INFO    ] Minion is starting as user 'root'\r\n[DEBUG   ] AsyncEventPublisher PUB socket URI: ipc:///var/run/salt/minion/minion_event_e813be3a56_pub.ipc\r\n[DEBUG   ] AsyncEventPublisher PULL socket URI: ipc:///var/run/salt/minion/minion_event_e813be3a56_pull.ipc\r\n[INFO    ] Starting pub socket on ipc:///var/run/salt/minion/minion_event_e813be3a56_pub.ipc\r\n[INFO    ] Starting pull socket on ipc:///var/run/salt/minion/minion_event_e813be3a56_pull.ipc\r\n[DEBUG   ] Minion 'li258-167.members.linode.com' trying to tune in\r\n[DEBUG   ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'li258-167.members.linode.com', 'tcp://127.0.0.1:4506')\r\n[DEBUG   ] Generated random reconnect delay between '1000ms' and '11000ms' (8780)\r\n[DEBUG   ] Setting zmq_reconnect_ivl to '8780ms'\r\n[DEBUG   ] Setting zmq_reconnect_ivl_max to '11000ms'\r\n[DEBUG   ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'li258-167.members.linode.com', 'tcp://127.0.0.1:4506', 'clear')\r\n```\r\nAfter a few seconds it will time out with `[DEBUG   ] SaltReqTimeoutError, retrying. (1/7)`\r\n\r\nWhen running the minion in debug mode without a master specified it still attempts to reach out to a master and will time out with a SaltReqTimeoutError. Then stacktrace: \r\n```bash\r\n[WARNING ] Fatal functionality error caught by minion handler:\r\nTraceback (most recent call last):\r\n  File \"/root/salt/salt/scripts.py\", line 81, in minion_process\r\n    minion.start()\r\n  File \"/root/salt/salt/cli/daemons.py\", line 320, in start\r\n    self.minion.tune_in()\r\n  File \"/root/salt/salt/minion.py\", line 1702, in tune_in\r\n    self.sync_connect_master()\r\n  File \"/root/salt/salt/minion.py\", line 763, in sync_connect_master\r\n    raise six.reraise(*future_exception)\r\n  File \"/usr/lib/python2.7/site-packages/tornado/gen.py\", line 1014, in run\r\n    yielded = self.gen.throw(*exc_info)\r\n  File \"/root/salt/salt/minion.py\", line 770, in connect_master\r\n    master, self.pub_channel = yield self.eval_master(self.opts, self.timeout, self.safe)\r\n  File \"/usr/lib/python2.7/site-packages/tornado/gen.py\", line 1008, in run\r\n    value = future.result()\r\n  File \"/usr/lib/python2.7/site-packages/tornado/concurrent.py\", line 232, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/lib/python2.7/site-packages/tornado/gen.py\", line 1014, in run\r\n    yielded = self.gen.throw(*exc_info)\r\n  File \"/root/salt/salt/minion.py\", line 505, in eval_master\r\n    yield pub_channel.connect()\r\n  File \"/usr/lib/python2.7/site-packages/tornado/gen.py\", line 1008, in run\r\n    value = future.result()\r\n  File \"/usr/lib/python2.7/site-packages/tornado/concurrent.py\", line 232, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"/usr/lib/python2.7/site-packages/tornado/gen.py\", line 1014, in run\r\n    yielded = self.gen.throw(*exc_info)\r\n  File \"/root/salt/salt/transport/zeromq.py\", line 338, in connect\r\n    yield self.auth.authenticate()\r\n  File \"/usr/lib/python2.7/site-packages/tornado/gen.py\", line 1008, in run\r\n    value = future.result()\r\n  File \"/usr/lib/python2.7/site-packages/tornado/concurrent.py\", line 232, in result\r\n    raise_exc_info(self._exc_info)\r\n  File \"<string>\", line 3, in raise_exc_info\r\nSaltClientError: Attempt to authenticate with the salt master failed with timeout error\r\n```\r\n\r\n### Versions Report\r\nThis was on the head of 2015.8\r\n\r\n```yaml\r\nsalt-minion --versions-report\r\nSalt Version:\r\n           Salt: 2015.8.8-190-ge9108e0\r\n\r\nDependency Versions:\r\n         Jinja2: 2.8\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 15.2.0\r\n         Python: 2.7.11 (default, Mar 31 2016, 06:18:34)\r\n           RAET: Not Installed\r\n        Tornado: 4.3\r\n            ZMQ: 4.1.2\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:\r\n        machine: x86_64\r\n        release: 4.5.0-x86_64-linode65\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/218619590","html_url":"https://github.com/saltstack/salt/issues/33191#issuecomment-218619590","issue_url":"https://api.github.com/repos/saltstack/salt/issues/33191","id":218619590,"user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T23:27:12Z","updated_at":"2016-05-11T23:27:12Z","body":"Let's mark this as a feature request to be able to run the salt-minion daemon in masterless mode to make use of things like minion-side beacons and engines."}}