{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1905","repository_url":"https://api.github.com/repos/kubernetes-incubator/kubespray","labels_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1905/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1905/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1905/events","html_url":"https://github.com/kubernetes-incubator/kubespray/issues/1905","id":269634584,"number":1905,"title":"Deployment failed on Rotate Tokens with default vagrant settings","user":{"login":"guenhter","id":16029571,"avatar_url":"https://avatars2.githubusercontent.com/u/16029571?v=4","gravatar_id":"","url":"https://api.github.com/users/guenhter","html_url":"https://github.com/guenhter","followers_url":"https://api.github.com/users/guenhter/followers","following_url":"https://api.github.com/users/guenhter/following{/other_user}","gists_url":"https://api.github.com/users/guenhter/gists{/gist_id}","starred_url":"https://api.github.com/users/guenhter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guenhter/subscriptions","organizations_url":"https://api.github.com/users/guenhter/orgs","repos_url":"https://api.github.com/users/guenhter/repos","events_url":"https://api.github.com/users/guenhter/events{/privacy}","received_events_url":"https://api.github.com/users/guenhter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-10-30T15:07:20Z","updated_at":"2018-02-08T13:52:13Z","closed_at":"2018-02-08T13:46:32Z","author_association":"CONTRIBUTOR","body":"<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one):\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\nVagrant\r\n\r\n- **OS (`printf \"$(uname -srm)\\n$(cat /etc/os-release)\\n\"`):**\r\n(of the host)\r\n`Linux 4.9.0-3-amd64 x86_64`\r\n\r\n```\r\nPRETTY_NAME=\"Debian GNU/Linux 9 (stretch)\"\r\nNAME=\"Debian GNU/Linux\"\r\nVERSION_ID=\"9\"\r\nVERSION=\"9 (stretch)\"\r\nID=debian\r\nHOME_URL=\"https://www.debian.org/\"\r\nSUPPORT_URL=\"https://www.debian.org/support\"\r\nBUG_REPORT_URL=\"https://bugs.debian.org/\"\r\n```\r\n\r\n- **Version of Ansible** (`ansible --version`):\r\n`ansible 2.4.1.0`\r\n\r\n**Kubespray version (commit) (`git rev-parse --short HEAD`):**\r\n`97c68810`\r\n\r\n**Network plugin used**:\r\n\r\n\r\n**Copy of your inventory file:**\r\n\r\n\r\n**Command used to invoke ansible**:\r\n`vagrant up`\r\n\r\n**Output of ansible run**:\r\n<!-- We recommend using snippets services like https://gist.github.com/ etc. -->\r\nWhole output:\r\nhttps://gist.github.com/guenhter/289ba384f2f35c050bf1c9f928f6514b\r\n\r\nLines with error:\r\n\r\n```\r\nTASK [kubernetes-apps/rotate_tokens : Rotate Tokens | Get default token name] ***\r\nMonday 30 October 2017  15:44:52 +0100 (0:00:00.090)       0:11:33.423 ******** \r\nfatal: [k8s-01]: FAILED! => {\"changed\": true, \"cmd\": \"/usr/local/bin/kubectl get secrets -o custom-columns=name:{.metadata.name} --no-headers | grep -m1 default-token\", \"delta\": \"0:00:00.332860\", \"end\": \"2017-10-30 14:44:51.717376\", \"failed\": true, \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2017-10-30 14:44:51.384516\", \"stderr\": \"\", \"stderr_lines\": [], \"stdout\": \"\", \"stdout_lines\": []}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\tto retry, use: --limit @/home/guenthgr/workspaces/kubespray/cluster.retry\r\n\r\nPLAY RECAP *********************************************************************\r\nk8s-01                     : ok=327  changed=103  unreachable=0    failed=1   \r\nk8s-02                     : ok=296  changed=97   unreachable=0    failed=0   \r\nk8s-03 : ok=267 changed=83 unreachable=0 failed=0 \r\n```\r\n\r\n\r\n**Anything else do we need to know**:\r\nI can reproduce this everytime when the vagrant-cluster is newly created.\r\nWhen I ssh into the affected node and execute the failing command, it works, so it seems to be some sort of timing issue (maybe the k8s secret isn't available yet).\r\n\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"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/comments/364117294","html_url":"https://github.com/kubernetes-incubator/kubespray/issues/1905#issuecomment-364117294","issue_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/1905","id":364117294,"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":"2018-02-08T13:52:13Z","updated_at":"2018-02-08T13:52:13Z","author_association":"COLLABORATOR","body":"Feel free for reopen If #2271 fix did not solve this problem"}}
{"actor":{"display_login":"chapsuk"}}