Bug 1499746 - Hpa v1 fail to get metrics
Summary: Hpa v1 fail to get metrics
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.7.0
Assignee: Solly Ross
QA Contact: xiuli
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-09 10:20 UTC by xiuli
Modified: 2017-11-28 22:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-11-28 22:15:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.