payload: {"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/issues/158","repository_url":"https://api.github.com/repos/kubernetes-incubator/metrics-server","labels_url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/issues/158/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/issues/158/events","html_url":"https://github.com/kubernetes-incubator/metrics-server/issues/158","id":371051706,"node_id":"MDU6SXNzdWUzNzEwNTE3MDY=","number":158,"title":"Cannot get Node information","user":{"login":"dardelean","id":5859023,"node_id":"MDQ6VXNlcjU4NTkwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5859023?v=4","gravatar_id":"","url":"https://api.github.com/users/dardelean","html_url":"https://github.com/dardelean","followers_url":"https://api.github.com/users/dardelean/followers","following_url":"https://api.github.com/users/dardelean/following{/other_user}","gists_url":"https://api.github.com/users/dardelean/gists{/gist_id}","starred_url":"https://api.github.com/users/dardelean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dardelean/subscriptions","organizations_url":"https://api.github.com/users/dardelean/orgs","repos_url":"https://api.github.com/users/dardelean/repos","events_url":"https://api.github.com/users/dardelean/events{/privacy}","received_events_url":"https://api.github.com/users/dardelean/received_events","type":"User","site_admin":false},"labels":[{"id":1032182888,"node_id":"MDU6TGFiZWwxMDMyMTgyODg4","url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-17T12:38:28Z","updated_at":"2019-06-25T21:10:07Z","closed_at":"2019-06-25T21:10:06Z","author_association":"NONE","body":"Hi,\r\n\r\nI have a ```1.11``` Kubernetes cluster deployed with Juju on top of GCE VMs.\r\n\r\nNo metrics can be collected. I have metrics-server v0.3.1 but older version behave the same.\r\n\r\n```bash\r\nubuntu@server:~/metrics-server$ kubectl logs metrics-server-85cc795fbf-h7jrw -n kube-system\r\nI1017 12:26:26.286421       1 serving.go:273] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)\r\n[restful] 2018/10/17 12:26:27 log.go:33: [restful/swagger] listing is available at https://:443/swaggerapi\r\n[restful] 2018/10/17 12:26:27 log.go:33: [restful/swagger] https://:443/swaggerui/ is mapped to folder /swagger-ui/\r\nI1017 12:26:27.063337       1 serve.go:96] Serving securely on [::]:443\r\nE1017 12:27:27.029902       1 manager.go:102] unable to fully collect metrics: [unable to extract connection information for node \"juju-8e5104-5\": node juju-8e5104-5 had no addresses that matched types [Hostname InternalDNS InternalIP ExternalDNS ExternalIP], unable to extract connection information for node \"juju-8e5104-6\": node juju-8e5104-6 had no addresses that matched types [Hostname InternalDNS InternalIP ExternalDNS ExternalIP]]\r\nE1017 12:28:27.029828       1 manager.go:102] unable to fully collect metrics: [unable to extract connection information for node \"juju-8e5104-5\": node juju-8e5104-5 had no addresses that matched types [Hostname InternalDNS InternalIP ExternalDNS ExternalIP], unable to extract connection information for node \"juju-8e5104-6\": node juju-8e5104-6 had no addresses that matched types [Hostname InternalDNS InternalIP ExternalDNS ExternalIP]]\r\n```\r\nDigging in the problem, I can see that the Nodes do not have an ```address``` field in the description. Older metrics-server versions, like 0.2.1, were failing with ```Node juju-8e5104-5 has no valid hostname and/or IP address: juju-8e5104-5``` , even tho ping worked to that node.\r\n\r\n```bash\r\nubuntu@server:~/metrics-server$ kubectl get node juju-8e5104-5 -o yaml\r\napiVersion: v1\r\nkind: Node\r\nmetadata:\r\n  annotations:\r\n    node.alpha.kubernetes.io/ttl: \"0\"\r\n    volumes.kubernetes.io/controller-managed-attach-detach: \"true\"\r\n  creationTimestamp: 2018-10-16T14:45:14Z\r\n  labels:\r\n    beta.kubernetes.io/arch: amd64\r\n    beta.kubernetes.io/instance-type: n1-highcpu-8\r\n    beta.kubernetes.io/os: linux\r\n    failure-domain.beta.kubernetes.io/region: europe-west1\r\n    failure-domain.beta.kubernetes.io/zone: europe-west1-b\r\n    juju-application: kubernetes-worker\r\n    kubernetes.io/hostname: juju-8e5104-5\r\n  name: juju-8e5104-5\r\n  resourceVersion: \"58041\"\r\n  selfLink: /api/v1/nodes/juju-8e5104-5\r\n  uid: 17271742-d152-11e8-a5bc-42010a840008\r\nspec:\r\n  externalID: \"3199543177952905486\"\r\n  providerID: gce://canonical-k8s-trainings-209920/europe-west1-b/juju-8e5104-5\r\nstatus:\r\n  allocatable:\r\n    cpu: \"8\"\r\n    ephemeral-storage: \"14927638094\"\r\n    hugepages-1Gi: \"0\"\r\n    hugepages-2Mi: \"0\"\r\n    memory: 7238572Ki\r\n    pods: \"110\"\r\n  capacity:\r\n    cpu: \"8\"\r\n    ephemeral-storage: 16197524Ki\r\n    hugepages-1Gi: \"0\"\r\n    hugepages-2Mi: \"0\"\r\n    memory: 7340972Ki\r\n    pods: \"110\"\r\n  conditions:\r\n  - lastHeartbeatTime: null\r\n    lastTransitionTime: null\r\n    message: Manually set through k8s api\r\n    reason: RouteCreated\r\n    status: \"False\"\r\n    type: NetworkUnavailable\r\n  - lastHeartbeatTime: 2018-10-17T12:32:59Z\r\n    lastTransitionTime: 2018-10-16T14:45:14Z\r\n    message: kubelet has sufficient disk space available\r\n    reason: KubeletHasSufficientDisk\r\n    status: \"False\"\r\n    type: OutOfDisk\r\n  - lastHeartbeatTime: 2018-10-17T12:32:59Z\r\n    lastTransitionTime: 2018-10-16T14:45:14Z\r\n    message: kubelet has sufficient memory available\r\n    reason: KubeletHasSufficientMemory\r\n    status: \"False\"\r\n    type: MemoryPressure\r\n  - lastHeartbeatTime: 2018-10-17T12:32:59Z\r\n    lastTransitionTime: 2018-10-16T14:45:14Z\r\n    message: kubelet has no disk pressure\r\n    reason: KubeletHasNoDiskPressure\r\n    status: \"False\"\r\n    type: DiskPressure\r\n  - lastHeartbeatTime: 2018-10-17T12:32:59Z\r\n    lastTransitionTime: 2018-10-16T14:45:14Z\r\n    message: kubelet has sufficient PID available\r\n    reason: KubeletHasSufficientPID\r\n    status: \"False\"\r\n    type: PIDPressure\r\n  - lastHeartbeatTime: 2018-10-17T12:32:59Z\r\n    lastTransitionTime: 2018-10-17T12:12:57Z\r\n    message: kubelet is posting ready status. AppArmor enabled\r\n    reason: KubeletReady\r\n    status: \"True\"\r\n    type: Ready\r\n  config: {}\r\n  daemonEndpoints:\r\n    kubeletEndpoint:\r\n      Port: 10250\r\n  images:\r\n  - names:\r\n    - quay.io/kubernetes-ingress-controller/nginx-ingress-controller@sha256:2fa84bfa338fbc84672521c443074f0b2ab30ad0b6bea50c4c29ee2d012fbcba\r\n    - quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.16.1\r\n    sizeBytes: 361633387\r\n  - names:\r\n    - quay.io/kubernetes-ingress-controller/nginx-ingress-controller@sha256:7b79e1bc6437e6376dadf558e012adde6395bb28dee4a38ce08c7e5c9f220178\r\n    - quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.15.0\r\n    sizeBytes: 265058273\r\n  - names:\r\n    - k8s.gcr.io/heapster-amd64@sha256:9fae0af136ce0cf4f88393b3670f7139ffc464692060c374d2ae748e13144521\r\n    - k8s.gcr.io/heapster-amd64:v1.6.0-beta.1\r\n    sizeBytes: 76016169\r\n  - names:\r\n    - k8s.gcr.io/k8s-dns-kube-dns-amd64@sha256:b99fc3eee2a9f052f7eb4cc00f15eb12fc405fa41019baa2d6b79847ae7284a8\r\n    - k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.10\r\n    sizeBytes: 49549457\r\n  - names:\r\n    - k8s.gcr.io/metrics-server-amd64@sha256:49a9f12f7067d11f42c803dbe61ed2c1299959ad85cb315b25ff7eef8e6b8892\r\n    - k8s.gcr.io/metrics-server-amd64:v0.2.1\r\n    sizeBytes: 42541759\r\n  - names:\r\n    - k8s.gcr.io/k8s-dns-sidecar-amd64@sha256:4f1ab957f87b94a5ec1edc26fae50da2175461f00afecf68940c4aa079bd08a4\r\n    - k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.10\r\n    sizeBytes: 41635309\r\n  - names:\r\n    - k8s.gcr.io/metrics-server-amd64@sha256:78938f933822856f443e6827fe5b37d6cc2f74ae888ac8b33d06fdbe5f8c658b\r\n    - k8s.gcr.io/metrics-server-amd64:v0.3.1\r\n    sizeBytes: 40767713\r\n  - names:\r\n    - k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64@sha256:bbb2a290a568125b3b996028958eb773f33b5b87a6b37bf38a28f8b62dddb3c8\r\n    - k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.10\r\n    sizeBytes: 40372149\r\n  - names:\r\n    - cdkbot/addon-resizer-amd64@sha256:a5ff31fb60d32e02780441fc81bc91dd549097d6afeef3c6decb6005289795af\r\n    - cdkbot/addon-resizer-amd64:1.8.1\r\n    sizeBytes: 33069432\r\n  - names:\r\n    - k8s.gcr.io/pause-amd64@sha256:59eec8837a4d942cc19a52b8c09ea75121acc38114a2c68b98983ce9356b8610\r\n    - k8s.gcr.io/pause@sha256:f78411e19d84a252e53bff71a4407a5686c46983a2c2eeed83929b888179acea\r\n    - k8s.gcr.io/pause-amd64:3.1\r\n    - k8s.gcr.io/pause:3.1\r\n    sizeBytes: 742472\r\n  nodeInfo:\r\n    architecture: amd64\r\n    bootID: e3579cf1-ec54-4d80-8706-cd4e48c6de43\r\n    containerRuntimeVersion: docker://17.3.2\r\n    kernelVersion: 4.15.0-1021-gcp\r\n    kubeProxyVersion: v1.11.3\r\n    kubeletVersion: v1.11.3\r\n    machineID: 53c1bd3613179b7417786f0d6216e0d1\r\n    operatingSystem: linux\r\n    osImage: Ubuntu 16.04.5 LTS\r\n    systemUUID: 53C1BD36-1317-9B74-1778-6F0D6216E0D1\r\n```\r\nI tried this both on ```1.10``` and ```1.11``` and the description is without address.\r\n\r\n```bash\r\nkubectl get --raw \"/apis/metrics.k8s.io/v1beta1/nodes\"\r\n{\"kind\":\"NodeMetricsList\",\"apiVersion\":\"metrics.k8s.io/v1beta1\",\"metadata\":{\"selfLink\":\"/apis/metrics.k8s.io/v1beta1/nodes\"},\"items\":[]}\r\n```\r\n\r\nI did not have this issue on AWS VMs deployed cluster."},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/issues/comments/505623993","html_url":"https://github.com/kubernetes-incubator/metrics-server/issues/158#issuecomment-505623993","issue_url":"https://api.github.com/repos/kubernetes-incubator/metrics-server/issues/158","id":505623993,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNTYyMzk5Mw==","user":{"login":"k8s-ci-robot","id":20407524,"node_id":"MDQ6VXNlcjIwNDA3NTI0","avatar_url":"https://avatars0.githubusercontent.com/u/20407524?v=4","gravatar_id":"","url":"https://api.github.com/users/k8s-ci-robot","html_url":"https://github.com/k8s-ci-robot","followers_url":"https://api.github.com/users/k8s-ci-robot/followers","following_url":"https://api.github.com/users/k8s-ci-robot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-ci-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-ci-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-ci-robot/subscriptions","organizations_url":"https://api.github.com/users/k8s-ci-robot/orgs","repos_url":"https://api.github.com/users/k8s-ci-robot/repos","events_url":"https://api.github.com/users/k8s-ci-robot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-ci-robot/received_events","type":"User","site_admin":false},"created_at":"2019-06-25T21:10:07Z","updated_at":"2019-06-25T21:10:07Z","author_association":"CONTRIBUTOR","body":"@fejta-bot: Closing this issue.\n\n<details>\n\nIn response to [this](https://github.com/kubernetes-incubator/metrics-server/issues/158#issuecomment-505623945):\n\n>Rotten issues close after 30d of inactivity.\n>Reopen the issue with `/reopen`.\n>Mark the issue as fresh with `/remove-lifecycle rotten`.\n>\n>Send feedback to sig-testing, kubernetes/test-infra and/or [fejta](https://github.com/fejta).\n>/close\n\n\nInstructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.\n</details>"}}
other: {"actor":{"display_login":"k8s-ci-robot"}}