Bug 1539876
Summary: | [backport] oc status reporting error with hpa attempting to scale an object that doesn't exist when the object, in fact, exists and the HPA is working as intended | ||
---|---|---|---|
Product: | OKD | Reporter: | Miranda Shutt <Miranda_Shutt> |
Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Xingxing Xia <xxia> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.x | CC: | aos-bugs, david_hocky, mfojtik, mmccomas, xxia |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-20 21:07:41 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
Miranda Shutt
2018-01-29 19:07:20 UTC
Can replicate easily in 'oc cluster up' on a mac as well: apiVersion: v1 items: - apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: caasdemo spec: maxReplicas: 20 minReplicas: 3 scaleTargetRef: apiVersion: extensions/v1beta1 kind: Deployment name: caasdemo targetCPUUtilizationPercentage: 1 kind: List metadata: resourceVersion: "" selfLink: "" and apiVersion: apps/v1beta1 kind: Deployment metadata: labels: app: caasdemo name: caasdemo spec: replicas: 3 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 0 type: RollingUpdate template: metadata: labels: app: caasdemo spec: containers: - name: caasdemo image: ${DOCKER_IMAGE_TAG} imagePullPolicy: Always ports: - name: http containerPort: 8080 protocol: TCP readinessProbe: httpGet: path: /health port: http livenessProbe: initialDelaySeconds: 2 periodSeconds: 5 httpGet: path: / port: http resources: requests: cpu: "0.50" terminationGracePeriodSeconds: 10 This was patched recently against maser: https://github.com/openshift/origin/pull/18150 Backporting to 3.8 here: https://github.com/openshift/origin/pull/18344 Backporting to 3.7 once 3.8 PR merges. Indeed, that's the problem! I can also see why searching github didn't yield any results since the actual content is the underlying code wherein the deployments weren't added to the HPA ScaleRef graph. Regards, --Miranda Latest available 3.7 version v3.7.27 does not include the backport. Waiting for 3.7 new puddle that will include it. BTW, checked with 3.9 oc (the version since https://bugzilla.redhat.com/show_bug.cgi?id=1534956#c2) against 3.7 server, it can work without the reported error. Backporting to 3.7 here: https://github.com/openshift/origin/pull/18371 Michal, yeah, I also don't wait for 3.8 new puddle. In comment 5, I wait for 3.7 new puddle to accept, because comment 3 says backport to 3.7. From this perspective, this bug isn't moved to VERIFIED yet. This bug is not for tracking 3.9, which is already tracked and verified per comment 5 linked bug. New 3.7 version v3.7.28 is built, in which the fix works well: $ v3.7.27/oc status ... * hpa/hello-openshift is attempting to scale Deployment/hello-openshift, which doesn't exist ... $ v3.7.28/oc status # Output has no above error, so moving bug to VERIFIED |