Bug 2072311
| Summary: | HPAs of DeploymentConfigs are not being updated when migration from Openshift 3.x to Openshift 4.x | |||
|---|---|---|---|---|
| Product: | Migration Toolkit for Containers | Reporter: | Adriano Machado <admachad> | |
| Component: | Velero | Assignee: | Pranav Gaikwad <pgaikwad> | |
| Status: | CLOSED ERRATA | QA Contact: | Prasad Joshi <prajoshi> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 1.6.2 | CC: | admachad, dwalsh, ernelson, prajoshi, rjohnson | |
| Target Milestone: | --- | Flags: | pgaikwad:
needinfo-
|
|
| Target Release: | 1.6.5 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2074675 (view as bug list) | Environment: | ||
| Last Closed: | 2022-05-31 09:49:05 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2074675 | |||
|
Description
Adriano Machado
2022-04-06 00:28:01 UTC
Unsure exactly where the breakdown here is. It could be something lost in translation during the Velero backup/restore, or a controller is reconciling the value potentially. Does this break workloads? Erik, It does break workloads as the HPAs in the target cluster will attempt to find DeploymentConfig resource under Core group. Removing NEEDINFO Verified with MTC 1.6.5
image: registry.redhat.io/rhmtc/openshift-migration-controller-rhel8@sha256:b8d3e08c0e74bf88348e7d46f32abd24747a3fe9c66e7890c48b1d366fd61693
HPA resource(source cluster)
$ oc get hpa -n ocp-mysql -o yaml
spec:
maxReplicas: 7
minReplicas: 1
scaleTargetRef:
apiVersion: v1
kind: DeploymentConfig
name: mysql
targetCPUUtilizationPercentage: 75
HPA resource after performing migration(target cluster)
$ oc get hpa -n oc-mysql -o yaml
spec:
maxReplicas: 7
metrics:
- resource:
name: cpu
target:
averageUtilization: 80
type: Utilization
type: Resource
minReplicas: 1
scaleTargetRef:
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
name: mysql
hpa.spec.scaleTargetRef.apiVersion is "apps.openshift.io/v1". I see the expected behaviour.
Moving this to verified status.
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 (Moderate: Migration Toolkit for Containers (MTC) 1.6.5 security and bug fix update), 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-2022:4814 |