{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/6293","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/6293/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/6293/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/6293/events","html_url":"https://github.com/openshift/origin/issues/6293","id":122036368,"number":6293,"title":"HPA fail to get cpu consumption and request","user":{"login":"alejandronb","id":3417287,"avatar_url":"https://avatars.githubusercontent.com/u/3417287?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandronb","html_url":"https://github.com/alejandronb","followers_url":"https://api.github.com/users/alejandronb/followers","following_url":"https://api.github.com/users/alejandronb/following{/other_user}","gists_url":"https://api.github.com/users/alejandronb/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandronb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandronb/subscriptions","organizations_url":"https://api.github.com/users/alejandronb/orgs","repos_url":"https://api.github.com/users/alejandronb/repos","events_url":"https://api.github.com/users/alejandronb/events{/privacy}","received_events_url":"https://api.github.com/users/alejandronb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/metrics","name":"component/metrics","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"DirectXMan12","id":119737,"avatar_url":"https://avatars.githubusercontent.com/u/119737?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectXMan12","html_url":"https://github.com/DirectXMan12","followers_url":"https://api.github.com/users/DirectXMan12/followers","following_url":"https://api.github.com/users/DirectXMan12/following{/other_user}","gists_url":"https://api.github.com/users/DirectXMan12/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectXMan12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectXMan12/subscriptions","organizations_url":"https://api.github.com/users/DirectXMan12/orgs","repos_url":"https://api.github.com/users/DirectXMan12/repos","events_url":"https://api.github.com/users/DirectXMan12/events{/privacy}","received_events_url":"https://api.github.com/users/DirectXMan12/received_events","type":"User","site_admin":false},"milestone":null,"comments":37,"created_at":"2015-12-14T12:50:37Z","updated_at":"2016-02-12T08:13:12Z","closed_at":null,"body":"Hi, I've been following the issue #6239 because I have the same problem with the same configuration but the last configuration doesn't fix the problem.\r\nI don't use persistent storage and I use auto-generated certificates. \r\n\r\nHeapster is running in openshift-infra project while the pods and hpa are running in a different project.\r\n\r\nThis is the the hpa:\r\n<pre>\r\noc describe hpa frontend-scaler\r\nName:                           frontend-scaler\r\nNamespace:                      <namespace>\r\nLabels:                         <none>\r\nCreationTimestamp:              Fri, 11 Dec 2015 08:41:14 +0000\r\nReference:                      DeploymentConfig/jupyter-requests/scale\r\nTarget CPU utilization:         70%\r\nCurrent CPU utilization:        <not available>\r\nMin replicas:                   1\r\nMax replicas:                   3\r\n</pre>\r\n\r\nLogs in web-console:\r\n<pre>\r\n9:40:04 AM\t\r\nHorizontalPodAutoscaler\r\nfrontend-scaler\t\r\nFailedComputeReplicas\r\nfailed to get cpu utilization: failed to get CPU consumption and request: metrics obtained for 0/1 of pods\r\n\r\n9:40:04 AM\t\r\nHorizontalPodAutoscaler\r\nfrontend-scaler\t\r\nFailedGetMetrics\r\nfailed to get CPU consumption and request: metrics obtained for 0/1 of pods\r\n</pre>\r\n\r\nThis is the output of kubectl get dc:\r\n<pre>\r\n...\r\n    spec:\r\n      containers:\r\n      - image: .../openshift/jupyter-python\r\n        imagePullPolicy: IfNotPresent\r\n        name: jupyter-requests\r\n        ports:\r\n        - containerPort: 8000\r\n          protocol: TCP\r\n        resources:\r\n          limits:\r\n            cpu: 200m\r\n            memory: 400Mi\r\n          requests:\r\n            cpu: 100m\r\n            memory: 200Mi\r\n....\r\n</pre>\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/183224061","html_url":"https://github.com/openshift/origin/issues/6293#issuecomment-183224061","issue_url":"https://api.github.com/repos/openshift/origin/issues/6293","id":183224061,"user":{"login":"alejandronb","id":3417287,"avatar_url":"https://avatars.githubusercontent.com/u/3417287?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandronb","html_url":"https://github.com/alejandronb","followers_url":"https://api.github.com/users/alejandronb/followers","following_url":"https://api.github.com/users/alejandronb/following{/other_user}","gists_url":"https://api.github.com/users/alejandronb/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandronb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandronb/subscriptions","organizations_url":"https://api.github.com/users/alejandronb/orgs","repos_url":"https://api.github.com/users/alejandronb/repos","events_url":"https://api.github.com/users/alejandronb/events{/privacy}","received_events_url":"https://api.github.com/users/alejandronb/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T08:13:12Z","updated_at":"2016-02-12T08:13:12Z","body":"Thanks @mwringe.\r\n\r\n@SillyMoo How do you deploy Heapster on a http port? Are you using metrics.yaml?"}}