{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/13613","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/13613/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/13613/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/13613/events","html_url":"https://github.com/rancher/rancher/issues/13613","id":324602832,"node_id":"MDU6SXNzdWUzMjQ2MDI4MzI=","number":13613,"title":"Error: 'waiting for cluster agent to connect'\\nTrying to reach: 'https://45.77.246.5:6443/api","user":{"login":"ystyle","id":4478635,"node_id":"MDQ6VXNlcjQ0Nzg2MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/4478635?v=4","gravatar_id":"","url":"https://api.github.com/users/ystyle","html_url":"https://github.com/ystyle","followers_url":"https://api.github.com/users/ystyle/followers","following_url":"https://api.github.com/users/ystyle/following{/other_user}","gists_url":"https://api.github.com/users/ystyle/gists{/gist_id}","starred_url":"https://api.github.com/users/ystyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ystyle/subscriptions","organizations_url":"https://api.github.com/users/ystyle/orgs","repos_url":"https://api.github.com/users/ystyle/repos","events_url":"https://api.github.com/users/ystyle/events{/privacy}","received_events_url":"https://api.github.com/users/ystyle/received_events","type":"User","site_admin":false},"labels":[{"id":145695744,"node_id":"MDU6TGFiZWwxNDU2OTU3NDQ=","url":"https://api.github.com/repos/rancher/rancher/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false},{"id":659821934,"node_id":"MDU6TGFiZWw2NTk4MjE5MzQ=","url":"https://api.github.com/repos/rancher/rancher/labels/version/2.0","name":"version/2.0","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-19T05:22:11Z","updated_at":"2018-10-21T09:38:41Z","closed_at":"2018-10-21T09:38:42Z","author_association":"NONE","body":"**Rancher versions:**\r\nrancher/server or rancher/rancher:r ancher/rancher\r\nrancher/agent or rancher/rancher-agent: rancher/rancher-agent\r\n\r\n**Infrastructure Stack versions:**\r\nhealthcheck:\r\nipsec:\r\nnetwork-services:\r\nscheduler:\r\nkubernetes (if applicable): 1.10.1\r\n\r\n**Docker version: (`docker version`,`docker info` preferred)**\r\n17.03.2\r\n\r\n**Operating system and kernel: (`cat /etc/os-release`, `uname -r` preferred)**\r\nrancher : ubuntu 16.04\r\nk8s master: centos 7\r\n\r\n**Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)**\r\nBare-metal\r\n\r\n**Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)**\r\nsingle node rancher \r\ndisabled firewalld on rancher and k8s master node\r\n\r\n**Environment Template: (Cattle/Kubernetes/Swarm/Mesos)**\r\n\r\n**Steps to Reproduce:**\r\ninstall rancher by quick-start-guide , add an Cluster named `developer`, add a k8s master node \r\n**Results:**\r\n```\r\nThis cluster is currently Provisioning; areas that interact directly with it will not be available until the API is ready.\r\n\r\nWaiting for API to be available; exit status 1, W0519 05:14:23.758741 11362 factory_object_mapping.go:423] Failed to download OpenAPI (an error on the server (\"Error: 'waiting for cluster agent to connect'\\nTrying to reach: 'https://45.77.246.5:6443/swagger-2.0.0.pb-v1'\") has prevented the request from succeeding), falling back to swagger Error from server (InternalError): an error on the server (\"Error: 'waiting for cluster agent to connect'\\nTrying to reach: 'https://45.77.246.5:6443/api'\") has prevented the request from succeeding\r\n```\r\n\r\nI see a similar issues #12512 , I test a many  version of rancher on rancher node ( ubuntu 16.04) , \r\ncleanup env by [cleanup.sh](https://gist.github.com/superseb/2cf186726807a012af59a027cb41270d) script,  Previously only used single node （ubuntu 16.04）, Now a single node can still work，\r\nbug i add  a new node as k8s master ， The above error has occurred\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/431653518","html_url":"https://github.com/rancher/rancher/issues/13613#issuecomment-431653518","issue_url":"https://api.github.com/repos/rancher/rancher/issues/13613","id":431653518,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTY1MzUxOA==","user":{"login":"loganhz","id":21168270,"node_id":"MDQ6VXNlcjIxMTY4Mjcw","avatar_url":"https://avatars3.githubusercontent.com/u/21168270?v=4","gravatar_id":"","url":"https://api.github.com/users/loganhz","html_url":"https://github.com/loganhz","followers_url":"https://api.github.com/users/loganhz/followers","following_url":"https://api.github.com/users/loganhz/following{/other_user}","gists_url":"https://api.github.com/users/loganhz/gists{/gist_id}","starred_url":"https://api.github.com/users/loganhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganhz/subscriptions","organizations_url":"https://api.github.com/users/loganhz/orgs","repos_url":"https://api.github.com/users/loganhz/repos","events_url":"https://api.github.com/users/loganhz/events{/privacy}","received_events_url":"https://api.github.com/users/loganhz/received_events","type":"User","site_admin":false},"created_at":"2018-10-21T09:38:41Z","updated_at":"2018-10-21T09:38:41Z","author_association":"MEMBER","body":"Thanks for the report.\r\nCentOS is not officially supported by Rancher. But it should work well.\r\n\r\nYou can find the supported OS via https://rancher.com/docs/rancher/v2.x/en/installation/requirements/\r\n\r\nCan you try it in v2.1.1, please? Please make sure it is a clean node with required port open and proper kernel version such as `Linux version 3.10.0-862.3.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Mon May 21 23:36:36 UTC 2018`\r\n\r\nI can add a k8s cluster with CentOS 7.5 nodes successfully in v2.1.1\r\n\r\n```\r\n[root@ip-172-31-1-128 centos]# cat /etc/redhat-release\r\nCentOS Linux release 7.5.1804 (Core)\r\n[root@ip-172-31-1-128 centos]# uname -r\r\n3.10.0-862.3.2.el7.x86_64\r\n[root@ip-172-31-1-128 centos]#\r\n```\r\n\r\nWhat I did is following:\r\n\r\n1. Start Rancher Server on ubuntu\r\n2. Create a CentOS 7 instance in AWS console. You can find it in AWS marketplace. The ami is `CentOS Linux 7 x86_64 HVM EBS ENA 1805_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-77ec9308.4 (ami-8e0205f2)`\r\n3. Open all ports\r\n4. ssh to the node, install docker and disable selinux and disable swap\r\n5. Add a custom cluster in Rancher UI and select all roles.\r\n6. Run the command on the CentOS node to add it into the cluster.\r\n7. Everything works well.\r\n\r\n![image](https://user-images.githubusercontent.com/21168270/47265251-ad3b0f00-d557-11e8-913b-3e963dcae2f8.png)"}}
{"actor":{"display_login":"loganhz"}}