{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/16348","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/16348/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/16348/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/16348/events","html_url":"https://github.com/rancher/rancher/issues/16348","id":375218978,"node_id":"MDU6SXNzdWUzNzUyMTg5Nzg=","number":16348,"title":"Failed to connect to proxy WSS Error on cattle-cluster-agent - AWS EKS Import","user":{"login":"brianelliott-wt","id":39966156,"node_id":"MDQ6VXNlcjM5OTY2MTU2","avatar_url":"https://avatars1.githubusercontent.com/u/39966156?v=4","gravatar_id":"","url":"https://api.github.com/users/brianelliott-wt","html_url":"https://github.com/brianelliott-wt","followers_url":"https://api.github.com/users/brianelliott-wt/followers","following_url":"https://api.github.com/users/brianelliott-wt/following{/other_user}","gists_url":"https://api.github.com/users/brianelliott-wt/gists{/gist_id}","starred_url":"https://api.github.com/users/brianelliott-wt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianelliott-wt/subscriptions","organizations_url":"https://api.github.com/users/brianelliott-wt/orgs","repos_url":"https://api.github.com/users/brianelliott-wt/repos","events_url":"https://api.github.com/users/brianelliott-wt/events{/privacy}","received_events_url":"https://api.github.com/users/brianelliott-wt/received_events","type":"User","site_admin":false},"labels":[{"id":601597122,"node_id":"MDU6TGFiZWw2MDE1OTcxMjI=","url":"https://api.github.com/repos/rancher/rancher/labels/status/more-info","name":"status/more-info","color":"bfdadc","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T21:12:58Z","updated_at":"2018-10-30T13:52:26Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPlease search for existing issues first, then read https://rancher.com/docs/rancher/v2.x/en/contributing/#bugs-issues-or-questions to see what we expect in an issue\r\nFor security issues, please email security@rancher.com instead of posting a public issue in GitHub. You may (but are not required to) use the GPG key located on Keybase.\r\n-->\r\n\r\n**What kind of request is this (question/bug/enhancement/feature request):**\r\nBug\r\n\r\n**Steps to reproduce (least amount of steps as possible):**\r\n1. Import EKS cluster into Rancher container outside of AWS\r\n2. Check logs on `cattle-cluster-agent` pod for `wss` errors\r\n\r\n\r\n**Result:**\r\nCattle-System pods report `wss` error:\r\n```\r\nlevel=info msg=\"Connecting to wss://rancher.example.com/v3/connect/register with token zhjvh97mmhwmnd4wsqlq9hj4qz8jbtw9jmrs75rw57bsnn4tl42k24\"\r\nlevel=info msg=\"Connecting to proxy\" url=\"wss://rancher.example.com/v3/connect/register\"\r\nlevel=error msg=\"Failed to connect to proxy\" error=\"websocket: bad handshake\"\r\nlevel=error msg=\"Failed to connect to proxy\" error=\"websocket: bad handshake\"\r\n```\r\n\r\nImport cluster on Rancher reports:\r\n\r\n```\r\nThis cluster is currently Pending; areas that interact directly with it will not be available until the API is ready.\r\n\r\nWaiting for full cluster configuration\r\n```\r\n\r\n\r\n**Other details that may be helpful:**\r\n- Private network connected to AWS using a mesh network via Meraki network device\r\n- Private DNS server was given to the cattle pods:\r\n\r\n``` \r\n      dnsPolicy: \"None\"\r\n      dnsConfig: \r\n        nameservers:\r\n          - 192.168.143.90\r\n```\r\n\r\n- All ports are open between AWS and local private network\r\n\r\n**Environment information**\r\n- Rancher version: *rancher/rancher:master*\r\n- Installation option: *single install*\r\n- VPN Mesh\r\n- Local DNS\r\n- CA signed chained certs\r\n\r\n<!--\r\nIf the reported issue is regarding a created cluster, please provide requested info below\r\n-->\r\n\r\n**Cluster information**\r\n- Cluster type: *Imported*\r\n- Machine type: *Cloud - AWS EKS* \r\n- specifications (CPU/memory): *AWS t2.medium*\r\n- Kubernetes version (use `kubectl version`):\r\n\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-06-06T00:44:24Z\", GoVersion:\"go1.9.6\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10+\", GitVersion:\"v1.10.3-eks\", GitCommit:\"58c199a59046dbf0a13a387d3491a39213be53df\", GitTreeState:\"clean\", BuildDate:\"2018-09-21T21:00:04Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n- Docker (use `docker info`) from Rancher machine:\r\n\r\n```\r\nContainers: 26\r\n Running: 1\r\n Paused: 0\r\n Stopped: 25\r\nImages: 9\r\nServer Version: 18.06.1-ce\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host macvlan null overlay\r\n Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 468a545b9edcd5932818eb9de8e72413e616e86e\r\nrunc version: 69663f0bd4b60df09991c08812a60108003fa340\r\ninit version: fec3683\r\nSecurity Options:\r\n apparmor\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.4.0-138-generic\r\nOperating System: Ubuntu 16.04.5 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 3.859GiB\r\nName: cypress\r\nID: WTYE:3YBD:7NXV:K7GT:VJ77:X35C:LRRU:QSR6:HNBW:Z4KF:OD3X:6EKN\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\n```\r\n\r\n---\r\n\r\nI am not sure why I get the `wss` error, everything seems to be configured correctly, but its possible I am missing something on my end.  No other `wss` issues seemed to fix my issue or have the same issue as me with AWS EKS Imports.\r\n"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/434308989","html_url":"https://github.com/rancher/rancher/issues/16348#issuecomment-434308989","issue_url":"https://api.github.com/repos/rancher/rancher/issues/16348","id":434308989,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDMwODk4OQ==","user":{"login":"brianelliott-wt","id":39966156,"node_id":"MDQ6VXNlcjM5OTY2MTU2","avatar_url":"https://avatars1.githubusercontent.com/u/39966156?v=4","gravatar_id":"","url":"https://api.github.com/users/brianelliott-wt","html_url":"https://github.com/brianelliott-wt","followers_url":"https://api.github.com/users/brianelliott-wt/followers","following_url":"https://api.github.com/users/brianelliott-wt/following{/other_user}","gists_url":"https://api.github.com/users/brianelliott-wt/gists{/gist_id}","starred_url":"https://api.github.com/users/brianelliott-wt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianelliott-wt/subscriptions","organizations_url":"https://api.github.com/users/brianelliott-wt/orgs","repos_url":"https://api.github.com/users/brianelliott-wt/repos","events_url":"https://api.github.com/users/brianelliott-wt/events{/privacy}","received_events_url":"https://api.github.com/users/brianelliott-wt/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T13:52:26Z","updated_at":"2018-10-30T13:52:26Z","author_association":"NONE","body":"@superseb good catch, I was using master to try and see if it solved a few other errors I was getting but it wasn't related and I had not reverted back to a \"stable\" version yet.  I reverted back to v2.1.1 this morning and will test with that release.\r\n\r\nRemoving the network components isn't a super simple process in my current environment, so I will attempt to set up another example in a different environment and test there.\r\n\r\nI imagine, and originally thought, that the VPN mesh devices could be causing this, but I am not seeing anything in their logs that would indicate they are messing up the secure socket connection."}}
{"actor":{"display_login":"brianelliott-wt"}}