{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48793","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48793/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48793/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48793/events","html_url":"https://github.com/kubernetes/kubernetes/issues/48793","id":242294007,"number":48793,"title":"HorizontalPodAutoscaler   FailedComputeMetricsReplicas","user":{"login":"chesterlai","id":8401109,"avatar_url":"https://avatars3.githubusercontent.com/u/8401109?v=4","gravatar_id":"","url":"https://api.github.com/users/chesterlai","html_url":"https://github.com/chesterlai","followers_url":"https://api.github.com/users/chesterlai/followers","following_url":"https://api.github.com/users/chesterlai/following{/other_user}","gists_url":"https://api.github.com/users/chesterlai/gists{/gist_id}","starred_url":"https://api.github.com/users/chesterlai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chesterlai/subscriptions","organizations_url":"https://api.github.com/users/chesterlai/orgs","repos_url":"https://api.github.com/users/chesterlai/repos","events_url":"https://api.github.com/users/chesterlai/events{/privacy}","received_events_url":"https://api.github.com/users/chesterlai/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":778118402,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false},{"id":238245616,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/autoscaling","name":"sig/autoscaling","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-12T08:07:51Z","updated_at":"2018-03-01T19:11:50Z","closed_at":null,"author_association":"NONE","body":"**What happened**:\r\nFail to use hpa, the status is unknown\r\nkubectl get hpa\r\nNAME         REFERENCE               TARGETS           MINPODS   MAXPODS   REPLICAS   AGE\r\nphp-apache   Deployment/php-apache   <unknown> / 50%   1         10        1          15m\r\n\r\n**What you expected to happen**:\r\nit should have value on targets\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\nalways\r\n\r\n**Anything else we need to know?**:\r\nbelow is error msg\r\nHorizontalPodAutoscaler                                      Warning   FailedComputeMetricsReplicas   horizontal-pod-autoscaler                                  failed to get cpu utilization: unable to get metrics for resource cpu: failed to get pod resource metrics: an error on the server (\"Error: 'dial tcp 172.18.16.2:8082: getsockopt: connection timed out'\\nTrying to reach: 'http://172.18.16.2:8082/apis/metrics/v1alpha1/namespaces/default/pods?labelSelector=run%3Dphp-apache'\") has prevented the request from succeeding (get services http:heapster:\r\n\r\nI have try to get 'http://172.18.16.2:8082/apis/metrics/v1alpha1/namespaces/default/pods?labelSelector=run%3Dphp-apache' from a POD\r\nthe result is good\r\n\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\nkubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"6\", GitVersion:\"v1.6.4\", GitCommit:\"d6f433224538d4f9ca2f7ae19b252e6fcb66a3ae\", GitTreeState:\"clean\", BuildDate:\"2017-05-19T18:44:27Z\", GoVersion:\"go1.7.5\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"6\", GitVersion:\"v1.6.4\", GitCommit:\"d6f433224538d4f9ca2f7ae19b252e6fcb66a3ae\", GitTreeState:\"clean\", BuildDate:\"2017-05-19T18:33:17Z\", GoVersion:\"go1.7.5\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n- Cloud provider or hardware configuration**:\r\naws\r\n\r\n- OS (e.g. from /etc/os-release):\r\ncat /etc/os-release\r\nNAME=\"Ubuntu\"\r\nVERSION=\"16.04.1 LTS (Xenial Xerus)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 16.04.1 LTS\"\r\nVERSION_ID=\"16.04\"\r\nHOME_URL=\"http://www.ubuntu.com/\"\r\nSUPPORT_URL=\"http://help.ubuntu.com/\"\r\nBUG_REPORT_URL=\"http://bugs.launchpad.net/ubuntu/\"\r\nUBUNTU_CODENAME=xenial\r\n\r\n- Kernel (e.g. `uname -a`):\r\nuname -a\r\nLinux ip-10-102-4-87 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n- Install tools:\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/369697972","html_url":"https://github.com/kubernetes/kubernetes/issues/48793#issuecomment-369697972","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/48793","id":369697972,"user":{"login":"fejta-bot","id":30488982,"avatar_url":"https://avatars1.githubusercontent.com/u/30488982?v=4","gravatar_id":"","url":"https://api.github.com/users/fejta-bot","html_url":"https://github.com/fejta-bot","followers_url":"https://api.github.com/users/fejta-bot/followers","following_url":"https://api.github.com/users/fejta-bot/following{/other_user}","gists_url":"https://api.github.com/users/fejta-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/fejta-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejta-bot/subscriptions","organizations_url":"https://api.github.com/users/fejta-bot/orgs","repos_url":"https://api.github.com/users/fejta-bot/repos","events_url":"https://api.github.com/users/fejta-bot/events{/privacy}","received_events_url":"https://api.github.com/users/fejta-bot/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T19:11:50Z","updated_at":"2018-03-01T19:11:50Z","author_association":"NONE","body":"Rotten issues close after 30d of inactivity.\nReopen the issue with `/reopen`.\nMark the issue as fresh with `/remove-lifecycle rotten`.\n\nSend feedback to sig-testing, kubernetes/test-infra and/or [fejta](https://github.com/fejta).\n/close"}}
{"actor":{"display_login":"fejta-bot"}}