Description of problem: Default CPU requests for Velero and Restic Pods are set to 500m. These values are high. The resources can be configured in DPA using `podConfig` field for Velero and Restic. Migration operator should set CPU requests to a lower value such as 100m so that Velero/Restic pods can be scheduled in resource constrained environments MTC often operates in. Version-Release number of selected component (if applicable): 1.7.1 How reproducible: Always Steps to Reproduce: Deploy migration operator in an environment where some of the nodes do not have 500m CPU available. Actual results: Restic Pods failed to schedule on nodes which don't have enough CPU. Expected results: Restic Pods should request lower CPU such that it can be scheduled on all nodes. Additional info:
Verified with MTC 1.7.2 Pre-stage metadata_nvr: openshift-migration-operator-metadata-container-v1.7.2-15 DPA CR: spec: backupImages: false configuration: restic: enable: true podConfig: labels: app.kubernetes.io/part-of: openshift-migration resourceAllocations: requests: cpu: 100m supplementalGroups: [] timeout: 1h velero: defaultPlugins: - openshift - aws - gcp - azure noDefaultBackupLocation: true podConfig: labels: app.kubernetes.io/part-of: openshift-migration resourceAllocations: requests: cpu: 100m $ oc get pod -n openshift-migration velero-57c48b4bb-82mff -o yaml resources: limits: cpu: "1" memory: 512Mi requests: cpu: 100m memory: 128Mi $ oc get pod -n openshift-migration restic-xdsdb -o yaml name: restic resources: limits: cpu: "1" memory: 512Mi requests: cpu: 100m memory: 128Mi I see the correct cpu.request value as per above PR 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.7.2 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:5483