{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33/events","html_url":"https://github.com/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33","id":349987424,"node_id":"MDU6SXNzdWUzNDk5ODc0MjQ=","number":33,"title":"Add OpenShift support","user":{"login":"ramato-procon","id":33030222,"node_id":"MDQ6VXNlcjMzMDMwMjIy","avatar_url":"https://avatars2.githubusercontent.com/u/33030222?v=4","gravatar_id":"","url":"https://api.github.com/users/ramato-procon","html_url":"https://github.com/ramato-procon","followers_url":"https://api.github.com/users/ramato-procon/followers","following_url":"https://api.github.com/users/ramato-procon/following{/other_user}","gists_url":"https://api.github.com/users/ramato-procon/gists{/gist_id}","starred_url":"https://api.github.com/users/ramato-procon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramato-procon/subscriptions","organizations_url":"https://api.github.com/users/ramato-procon/orgs","repos_url":"https://api.github.com/users/ramato-procon/repos","events_url":"https://api.github.com/users/ramato-procon/events{/privacy}","received_events_url":"https://api.github.com/users/ramato-procon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-13T11:16:58Z","updated_at":"2018-08-13T22:08:21Z","closed_at":null,"author_association":"NONE","body":"Currently hostname lookup fails with OpenShift, because the OpenShift API doesn't support hostname in Endpoint.Adresses:\r\nhttps://docs.openshift.com/container-platform/3.10/rest_api/api/v1.Endpoints.html\r\n\r\napi call result:\r\n\r\n`2018-08-13 11:00:40.513 [debug] <0.226.0> Response: {ok,{{\"HTTP/1.1\",200,\"OK\"},[{\"cache-control\",\"no-store\"},{\"date\",\"Mon, 13 Aug 2018 11:00:40 GMT\"},{\"content-length\",\"1194\"},{\"content-type\",\"application/json\"}],\"{\\\"kind\\\":\\\"Endpoints\\\",\\\"apiVersion\\\":\\\"v1\\\",\\\"metadata\\\":{\\\"name\\\":\\\"rabbitmq\\\",\\\"namespace\\\":\\\"dcrpi-omsf-dev0\\\",\\\"selfLink\\\":\\\"/api/v1/namespaces/dcrpi-omsf-dev0/endpoints/rabbitmq\\\",\\\"uid\\\":\\\"c8b25808-9a34-11e8-add2-02bdc501845b\\\",\\\"resourceVersion\\\":\\\"239344116\\\",\\\"creationTimestamp\\\":\\\"2018-08-07T11:26:53Z\\\",\\\"labels\\\":{\\\"app\\\":\\\"rabbitmq\\\"}},\\\"subsets\\\":[{\\\"addresses\\\":[{\\\"ip\\\":\\\"1.240.1.247\\\",\\\"nodeName\\\":\\\"ip-10-26-202-167.eu-central-1.compute.internal\\\",\\\"targetRef\\\":{\\\"kind\\\":\\\"Pod\\\",\\\"namespace\\\":\\\"dcrpi-omsf-dev0\\\",\\\"name\\\":\\\"rabbitmq-53-b6mr2\\\",\\\"uid\\\":\\\"18df67e0-9ed2-11e8-add2-02bdc501845b\\\",\\\"resourceVersion\\\":\\\"239250788\\\"}},{\\\"ip\\\":\\\"1.240.28.238\\\",\\\"nodeName\\\":\\\"ip-10-26-200-94.eu-central-1.compute.internal\\\",\\\"targetRef\\\":{\\\"kind\\\":\\\"Pod\\\",\\\"namespace\\\":\\\"dcrpi-omsf-dev0\\\",\\\"name\\\":\\\"rabbitmq-53-sgpzt\\\",\\\"uid\\\":\\\"23ef292f-9ed2-11e8-add2-02bdc501845b\\\",\\\"resourceVersion\\\":\\\"239251119\\\"}}],\\\"notReadyAddresses\\\":[{\\\"ip\\\":\\\"1.240.65.187\\\",\\\"nodeName\\\":\\\"ip-10-26-204-161.eu-central-1.compute.internal\\\",\\\"targetRef\\\":{\\\"kind\\\":\\\"Pod\\\",\\\"namespace\\\":\\\"dcrpi-omsf-dev0\\\",\\\"name\\\":\\\"rabbitmq-59-hcjm4\\\",\\\"uid\\\":\\\"12cb12fe-9ee8-11e8-add2-02bdc501845b\\\",\\\"resourceVersion\\\":\\\"239344115\\\"}}],\\\"ports\\\":[{\\\"name\\\":\\\"15671-tcp\\\",\\\"port\\\":15671,\\\"protocol\\\":\\\"TCP\\\"},{\\\"name\\\":\\\"5671-tcp\\\",\\\"port\\\":5671,\\\"protocol\\\":\\\"TCP\\\"}]}]}\\n\"}}`\r\n\r\nerror message:\r\n\r\n`2018-08-13 11:00:40.514 [error] <0.225.0> CRASH REPORT Process <0.225.0> with 0 neighbours exited with reason: {{badkey,<<\"hostname\">>},[{maps,get,[<<\"hostname\">>,#{<<\"ip\">> => <<\"1.240.65.187\">>,<<\"nodeName\">> => <<\"ip-10-26-204-161.eu-central-1.compute.internal\">>,<<\"targetRef\">> => #{<<\"kind\">> => <<\"Pod\">>,<<\"name\">> => <<\"rabbitmq-59-hcjm4\">>,<<\"namespace\">> => <<\"dcrpi-omsf-dev0\">>,<<\"resourceVersion\">> => <<\"239344115\">>,<<\"uid\">> => <<\"12cb12fe-9ee8-11e8-add2-02bdc501845b\">>}}],[]},{rabbit_peer_discovery_k8s,get_address,1,[{file,\"src/rabbit_peer_discovery_k8s.erl\"},{line,172}]},{rabbit_peer_discovery_k8s,...},...]} in application_master:init/4 line 138\r\n`\r\n\r\nPlease add a new cluster_formation.k8s.address_type option \"pod\" to use the podname instead of hostname. cluster_formation.k8s.hostname_suffix should also be considered.\r\nAddress-Type \"ip\" is no option if you are using cluster TLS encryption.\r\n"},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s/issues/comments/412681764","html_url":"https://github.com/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33#issuecomment-412681764","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-peer-discovery-k8s/issues/33","id":412681764,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjY4MTc2NA==","user":{"login":"michaelklishin","id":1090,"node_id":"MDQ6VXNlcjEwOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1090?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T22:08:21Z","updated_at":"2018-08-13T22:08:21Z","author_association":"MEMBER","body":"So what is expected here? OpenShift seems to return an IP and a nodeName (which is a hostname despite the name). What is the \"pod name\" in the payload?"}}
{"actor":{"display_login":"michaelklishin"}}