{"action":"created","issue":{"url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/issues/11","repository_url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery","labels_url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/issues/11/comments","events_url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/issues/11/events","html_url":"https://github.com/noctarius/hazelcast-kubernetes-discovery/pull/11","id":164526205,"number":11,"title":"Bugfix kubernetes via dns","user":{"login":"ReToCode","id":16611466,"avatar_url":"https://avatars.githubusercontent.com/u/16611466?v=3","gravatar_id":"","url":"https://api.github.com/users/ReToCode","html_url":"https://github.com/ReToCode","followers_url":"https://api.github.com/users/ReToCode/followers","following_url":"https://api.github.com/users/ReToCode/following{/other_user}","gists_url":"https://api.github.com/users/ReToCode/gists{/gist_id}","starred_url":"https://api.github.com/users/ReToCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReToCode/subscriptions","organizations_url":"https://api.github.com/users/ReToCode/orgs","repos_url":"https://api.github.com/users/ReToCode/repos","events_url":"https://api.github.com/users/ReToCode/events{/privacy}","received_events_url":"https://api.github.com/users/ReToCode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T13:03:11Z","updated_at":"2016-07-09T07:10:28Z","closed_at":"2016-07-09T07:10:16Z","pull_request":{"url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/pulls/11","html_url":"https://github.com/noctarius/hazelcast-kubernetes-discovery/pull/11","diff_url":"https://github.com/noctarius/hazelcast-kubernetes-discovery/pull/11.diff","patch_url":"https://github.com/noctarius/hazelcast-kubernetes-discovery/pull/11.patch"},"body":"@noctarius As discussed yesterday (@SchweizerischeBundesbahnen in Muntelier) we had a problem with hazelcast on openshift. We now debugged it and found out, that the problem is in the DnsEndpointResolver. As the response from openshift dns looks like this:\r\n\r\nnslookup u219692-hazelcast.u219692-hazelcast.svc.cluster.local 172.30.0.1\r\nServer:         172.30.0.1\r\nAddress:        172.30.0.1#53\r\n\r\nName:   u219692-hazelcast.u219692-hazelcast.svc.cluster.local\r\nAddress: 10.1.2.8\r\nName:   u219692-hazelcast.u219692-hazelcast.svc.cluster.local\r\nAddress: 10.1.5.28\r\nName:   u219692-hazelcast.u219692-hazelcast.svc.cluster.local\r\nAddress: 10.1.9.33\r\n\r\nThe current code adds three times the same ip address (loops the records and then calls \"getByName\" which always selects the frist answer and adds the ip 10.1.2.8 three times to discoveredNodes. This works fine as long as the newly started node has a higher ip (e.g. 10.1.5.28) because it reaches the other cluster. If the new node gets the lowest ip (10.1.2.8) he thinks he's alone and creates a new cluster, even if the two other nodes already formed a cluster.\r\n\r\nSo here is how we fixed it :-)"},"comment":{"url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/issues/comments/231520159","html_url":"https://github.com/noctarius/hazelcast-kubernetes-discovery/pull/11#issuecomment-231520159","issue_url":"https://api.github.com/repos/noctarius/hazelcast-kubernetes-discovery/issues/11","id":231520159,"user":{"login":"noctarius","id":1142801,"avatar_url":"https://avatars.githubusercontent.com/u/1142801?v=3","gravatar_id":"","url":"https://api.github.com/users/noctarius","html_url":"https://github.com/noctarius","followers_url":"https://api.github.com/users/noctarius/followers","following_url":"https://api.github.com/users/noctarius/following{/other_user}","gists_url":"https://api.github.com/users/noctarius/gists{/gist_id}","starred_url":"https://api.github.com/users/noctarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noctarius/subscriptions","organizations_url":"https://api.github.com/users/noctarius/orgs","repos_url":"https://api.github.com/users/noctarius/repos","events_url":"https://api.github.com/users/noctarius/events{/privacy}","received_events_url":"https://api.github.com/users/noctarius/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T07:10:28Z","updated_at":"2016-07-09T07:10:28Z","body":"Very nice patch, thanks a lot! :)"}}
{"actor":{"display_login":"noctarius"}}