{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1745","repository_url":"https://api.github.com/repos/kubernetes-incubator/kubespray","labels_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1745/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1745/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1745/events","html_url":"https://github.com/kubernetes-incubator/kubespray/issues/1745","id":263051667,"number":1745,"title":"There is no file PATH_TO_KUBESPRAY/credentials/kube_user","user":{"login":"zelentsovl","id":24303257,"avatar_url":"https://avatars3.githubusercontent.com/u/24303257?v=4","gravatar_id":"","url":"https://api.github.com/users/zelentsovl","html_url":"https://github.com/zelentsovl","followers_url":"https://api.github.com/users/zelentsovl/followers","following_url":"https://api.github.com/users/zelentsovl/following{/other_user}","gists_url":"https://api.github.com/users/zelentsovl/gists{/gist_id}","starred_url":"https://api.github.com/users/zelentsovl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zelentsovl/subscriptions","organizations_url":"https://api.github.com/users/zelentsovl/orgs","repos_url":"https://api.github.com/users/zelentsovl/repos","events_url":"https://api.github.com/users/zelentsovl/events{/privacy}","received_events_url":"https://api.github.com/users/zelentsovl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-05T09:03:35Z","updated_at":"2017-10-05T09:24:58Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.-->\r\n\r\nBUG REPORT\r\n\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out\r\n    information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration:**\r\nVMs on VSphere 5.5 Update3\r\n\r\n- **OS (`printf \"$(uname -srm)\\n$(cat /etc/os-release)\\n\"`):**\r\nLinux 3.10.0-693.2.2.el7.x86_64 x86_64\r\nNAME=\"CentOS Linux\"\r\nVERSION=\"7 (Core)\"\r\nID=\"centos\"\r\nID_LIKE=\"rhel fedora\"\r\nVERSION_ID=\"7\"\r\nPRETTY_NAME=\"CentOS Linux 7 (Core)\"\r\nANSI_COLOR=\"0;31\"\r\nCPE_NAME=\"cpe:/o:centos:centos:7\"\r\nHOME_URL=\"https://www.centos.org/\"\r\nBUG_REPORT_URL=\"https://bugs.centos.org/\"\r\n\r\nCENTOS_MANTISBT_PROJECT=\"CentOS-7\"\r\nCENTOS_MANTISBT_PROJECT_VERSION=\"7\"\r\nREDHAT_SUPPORT_PRODUCT=\"centos\"\r\nREDHAT_SUPPORT_PRODUCT_VERSION=\"7\"\r\n\r\n- **Version of Ansible** (`ansible --version`):\r\nansible 2.3.2.0\r\n  config file = /home/user/kubespray-mirror/ansible.cfg\r\n  configured module search path = [u'./library']\r\n  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n\r\n**Kubespray version (commit) (`git rev-parse --short HEAD`):**\r\nd45026f\r\n\r\n**Network plugin used**:\r\ncalico\r\n\r\n**Copy of your inventory file:**\r\n# Generated by Vagrant\r\n\r\ndevkubemaster1 ansible_host=172.16.24.2 ansible_port=22 ansible_user='root' ansible_ssh_private_key_file=''\r\ndevkubemaster2 ansible_host=172.16.24.3 ansible_port=22 ansible_user='root' ansible_ssh_private_key_file=''\r\ndevkubeworker1 ansible_host=172.16.24.4 ansible_port=22 ansible_user='root' ansible_ssh_private_key_file=''\r\ndevkubeworker2 ansible_host=172.16.24.5 ansible_port=22 ansible_user='root' ansible_ssh_private_key_file=''\r\ndevkubeworker3 ansible_host=172.16.24.6 ansible_port=22 ansible_user='root' ansible_ssh_private_key_file=''\r\n\r\n[etcd]\r\nkubemaster[1:2]\r\n\r\n[kube-master]\r\nkubemaster[1:2]\r\n\r\n[kube-node]\r\nkubeworker[1:3]\r\n\r\n[k8s-cluster:children]\r\nkube-master\r\nkube-node\r\n\r\n\r\n**Command used to invoke ansible**:\r\nansible-playbook -i ./.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory --extra-vars \"ansible_ssh_private_key_file=./kube_key.pem\" cluster.yml\r\n\r\n\r\n**Output of ansible run**:\r\n<!-- We recommend using snippets services like https://gist.github.com/ etc. -->\r\nPLAY RECAP *************************************************************************\r\ndevkubemaster1             : ok=412  changed=129  unreachable=0    failed=0\r\ndevkubemaster2             : ok=348  changed=119  unreachable=0    failed=0\r\ndevkubeworker1             : ok=272  changed=85   unreachable=0    failed=0\r\ndevkubeworker2             : ok=272  changed=85   unreachable=0    failed=0\r\ndevkubeworker3             : ok=273  changed=85   unreachable=0    failed=0\r\nlocalhost                  : ok=3    changed=0    unreachable=0    failed=0\r\n\r\n\r\n**Anything else do we need to know**:\r\n<!-- By running scripts/collect-info.yaml you can get a lot of useful informations.\r\nScript can be started by:\r\nansible-playbook -i <inventory_file_path> -u <ssh_user> -e ansible_ssh_user=<ssh_user> -b --become-user=root -e dir=`pwd` scripts/collect-info.yaml\r\n(If you using CoreOS remember to add '-e ansible_python_interpreter=/opt/bin/python').\r\nAfter running this command you can find logs in `pwd`/logs.tar.gz. You can even upload somewhere entire file and paste link here.-->\r\n\r\nSection of k8s-cluster.yml\r\n\"\r\nkube_api_pwd: \"{{ lookup('password', 'credentials/kube_user length=15 chars=ascii_letters,digits') }}\"\r\ndeveloper_api_pwd: \"{{ lookup('password', 'credentials/developer_user length=15 chars=ascii_letters,digits') }}\"\r\nkube_users:\r\n  kube:\r\n    pass: \"{{kube_api_pwd}}\"\r\n    role: admin\r\n    groups:\r\n      - system:masters\r\n  developer:\r\n    pass: \"{{developer_api_pwd}}\"\r\n    role: edit\r\n\"\r\n\r\nAnsible finishes to work successfully but **I can't find the files kube_user and developer_user** in the credentials folder. There is folder credentials/vault with \"etcd  kube-master  kube-node  kube-proxy  vault\" files. Has anything changed in permissions defining or I do anything wrong?\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/comments/334410222","html_url":"https://github.com/kubernetes-incubator/kubespray/issues/1745#issuecomment-334410222","issue_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1745","id":334410222,"user":{"login":"chapsuk","id":5525114,"avatar_url":"https://avatars2.githubusercontent.com/u/5525114?v=4","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T09:24:58Z","updated_at":"2017-10-05T09:24:58Z","author_association":"COLLABORATOR","body":"Hi @zelentsovl, if you trying run `kubespray` with vagrant please:\r\n1. update to current master \r\n1. clear `.vagrant/`\r\n1. run `vagrant up`\r\n\r\notherwise you don't needed using vagrant inventory.\r\n\r\n\r\n"}}
{"actor":{"display_login":"chapsuk"}}