Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1499746

Summary: Hpa v1 fail to get metrics
Product: OpenShift Container Platform Reporter: xiuli
Component: NodeAssignee: Solly Ross <sross>
Status: CLOSED ERRATA QA Contact: xiuli
Severity: high Docs Contact:
Priority: high    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, xtian
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 22:15:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description xiuli 2017-10-09 10:20:51 UTC
Description of problem:
Fail to get Metrics, and can not auto scale

Version-Release number of selected component (if applicable):
3.7.0


Steps to Reproduce:
1: oc new-project sszr1 
2: oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/hpa/rc-hello-openshift.yaml
3: oc autoscale rc/hello-openshift --min=2 --max=10
4: oc get hpa

The actual result:
NAME              REFERENCE                               TARGETS           MINPODS   MAXPODS   REPLICAS   AGE
hello-openshift   ReplicationController/hello-openshift   <unknown> / 80%   2         10        0          1m

The expected result: the target value should be some digital value, not "unknown" 

5: if check the number of pod "oc describe replicationcontrollers hello-openshift", will show only 1 pod, the expected value should be at least 2.

Addition info: found the following log in master:
 Oct  9 06:15:25 ip-172-18-10-208 atomic-openshift-master-controllers: E1009 10:15:25.022268   13121 horizontal.go:206] failed to query scale subresource for ReplicationController/dma/hello-openshift: User "system:serviceaccount:openshift-infra:horizontal-pod-autoscaler" cannot get replicationcontrollers.extensions/scale in the namespace "dma": User "system:serviceaccount:openshift-infra:horizontal-pod-a
<deshuai> <deshuai> utoscaler" cannot get replicationcontrollers/scale.extensions in project "dma" (get replicationcontrollers.extensions hello-openshift)

Comment 1 DeShuai Ma 2017-10-10 01:44:08 UTC
openshift v3.7.0-0.143.1
kubernetes v1.7.0+80709908fd
etcd 3.2.1

Comment 2 Solly Ross 2017-10-18 13:21:12 UTC
Already fixed in Origin https://github.com/openshift/origin/pull/16711.

Comment 3 xiuli 2017-10-23 07:49:23 UTC
Verified the bug and it can not be reproduced on the environment: openshift v3.7.0-0.143.7 + kubernetes v1.7.0+80709908fd + etcd 3.2.1, @sross, could you please set the bug as on_qe status.

Comment 7 errata-xmlrpc 2017-11-28 22:15:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3188