{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/40721","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/40721/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/40721/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/40721/events","html_url":"https://github.com/kubernetes/kubernetes/issues/40721","id":204208224,"number":40721,"title":"openstack-heat: salt-minion errors because it is started as daemon","user":{"login":"micmro","id":1680390,"avatar_url":"https://avatars.githubusercontent.com/u/1680390?v=3","gravatar_id":"","url":"https://api.github.com/users/micmro","html_url":"https://github.com/micmro","followers_url":"https://api.github.com/users/micmro/followers","following_url":"https://api.github.com/users/micmro/following{/other_user}","gists_url":"https://api.github.com/users/micmro/gists{/gist_id}","starred_url":"https://api.github.com/users/micmro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micmro/subscriptions","organizations_url":"https://api.github.com/users/micmro/orgs","repos_url":"https://api.github.com/users/micmro/repos","events_url":"https://api.github.com/users/micmro/events{/privacy}","received_events_url":"https://api.github.com/users/micmro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-31T05:27:06Z","updated_at":"2017-01-31T05:44:10Z","closed_at":null,"body":"**Is this a request for help?** (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):\r\nNo\r\n\r\n**What keywords did you search in Kubernetes issues before filing this one?** (If you have found any duplicates, you should instead reply there.):\r\n`openstack`, `Error while bringing up minion` and a few others\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one):\r\nBUG REPORT\r\n\r\n**Kubernetes version** (use `kubectl version`):\r\n`v1.5.2`\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: `OpenStack`\r\n- **OS** (e.g. from /etc/os-release): CentOS\r\n- **Kernel** (e.g. `uname -a`): `Linux kube-stack-master 3.10.0-327.28.3.el7.x86_64 #1 SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux`\r\n- **Install tools**: `openstack-heat` provider\r\n\r\n\r\n**What happened**:\r\nThe _openstack-heat_ provider only installs _salt-minions_, no _salt-master_. The configuration does not take this into account which causes the following issues:\r\n\r\n- the _salt minion_ is not able to DNS resolve `salt` (see fist part of error log below)\r\n- the _salt-minion_ is daemonized and fails finding the master (second part of error log below). From my understanding is not required when there is no salt-master, as the setup uses `salt-call` \r\nanyway (see [gce provider](https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/configure-vm.sh#L328-L339) as reference).\r\n\r\n```\r\nJan 31 03:00:04 kube-stack-master salt-minion[9795]: [ERROR   ] DNS lookup of 'salt' failed.\r\nJan 31 03:00:04 kube-stack-master salt-minion[9795]: [ERROR   ] Master hostname: 'salt' not found. Retrying in 30 seconds\r\n...\r\nJan 31 02:35:30 kube-stack-master salt-minion[9690]: [ERROR   ] Error while bringing up minion for multi-master. Is master at salt responding?\r\n```\r\n\r\n**What you expected to happen**:\r\nEither `salt-minion` should not be daemonized or it should be able to find a master (internally or externally).\r\n\r\nBoth issues can be solved by adding the non-deamon install flag `-X` in `run-salt.sh`.\r\n\r\nThe DNS lookup error alone can be fixed by providing a `/etc/salt/minion.d/local.conf` as describer in the [salt-docs](https://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html). \r\n\r\nWill create PR\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\nJust use the provider in the standard way:\r\n`KUBERNETES_PROVIDER=openstack-heat ./cluster/kube-up.sh`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/276280370","html_url":"https://github.com/kubernetes/kubernetes/issues/40721#issuecomment-276280370","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/40721","id":276280370,"user":{"login":"micmro","id":1680390,"avatar_url":"https://avatars.githubusercontent.com/u/1680390?v=3","gravatar_id":"","url":"https://api.github.com/users/micmro","html_url":"https://github.com/micmro","followers_url":"https://api.github.com/users/micmro/followers","following_url":"https://api.github.com/users/micmro/following{/other_user}","gists_url":"https://api.github.com/users/micmro/gists{/gist_id}","starred_url":"https://api.github.com/users/micmro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micmro/subscriptions","organizations_url":"https://api.github.com/users/micmro/orgs","repos_url":"https://api.github.com/users/micmro/repos","events_url":"https://api.github.com/users/micmro/events{/privacy}","received_events_url":"https://api.github.com/users/micmro/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T05:44:10Z","updated_at":"2017-01-31T05:44:10Z","body":"I'll create a separate PR for the docs if this is correct and #40721 is merged, to reflect that _openstack-heat_ is stand-alone as well."}}
{"actor":{"display_login":"micmro"}}