Bug 1822366
| Summary: | cronjob does not work after migration because pvc is not copied | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | jooho lee <jlee> | |
| Component: | Migration Tooling | Assignee: | Scott Seago <sseago> | |
| Status: | CLOSED ERRATA | QA Contact: | Xin jiang <xjiang> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.3.z | CC: | mberube, rjohnson, sregidor | |
| Target Milestone: | --- | |||
| Target Release: | 4.4.z | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1831252 (view as bug list) | Environment: | ||
| Last Closed: | 2020-06-17 00:04:13 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: | 1831252 | |||
| Bug Blocks: | ||||
Related to: https://issues.redhat.com/browse/MIG-179 Verified using CAM 1.2.2 stage
- name: MIG_CONTROLLER_REPO
value: openshift-migration-controller-rhel8@sha256
- name: MIG_CONTROLLER_TAG
value: 3923f6000eaff8c5f02d778e1d7b93515a8bc23990d54f917c30a108f7a37b3a
- name: MIG_UI_REPO
value: openshift-migration-ui-rhel8@sha256
- name: MIG_UI_TAG
value: 6abfaea8ac04e3b5bbf9648a3479b420b4baec35201033471020c9cae1fe1e11
- name: MIGRATION_REGISTRY_REPO
value: openshift-migration-registry-rhel8@sha256
- name: MIGRATION_REGISTRY_TAG
value: ea6301a15277d448c8756881c7e2e712893ca8041c913476640f52da9e76cad9
- name: VELERO_REPO
value: openshift-migration-velero-rhel8@sha256
- name: VELERO_TAG
value: 1a33e327dd610f0eebaaeae5b3c9b4170ab5db572b01a170be35b9ce946c0281
- name: VELERO_PLUGIN_REPO
value: openshift-migration-plugin-rhel8@sha256
- name: VELERO_PLUGIN_TAG
value: 37d5167cbbeedcedaf6750d64ba992a75d3ae21f3d3df6c0c6eef6eb400dd076
The "portal-download" pvc and the sample cronjob were migrated properly, and cronjob worked fine in target cluster.
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/RHEA-2020:2571 |
Description of problem: Migration tool does not copy PVC that the cronjob uses so target cronjob does not work with the messages: ~~~ 79s Normal SuccessfulCreate job/refresh-pq-1586368080 Created pod: refresh-pq-1586368080-p2w8m <unknown> Warning FailedScheduling pod/refresh-pq-1586368140-m45g6 persistentvolumeclaim "portal-downloads" not found ~~~ Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. create a sample cronjob on source cluster 2. migrate 3. execute the cronjob sample cronjob. ~~~ apiVersion: batch/v1beta1 kind: CronJob metadata: name: hello spec: schedule: "30 3 * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from a CronJob restartPolicy: OnFailure volumeMounts: - mountPath: /downlods name: downloads dnsPolicy: ClusterFirst restartPolicy: OnFailure schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 volumes: - name: downloads persistentVolumeClaim: claimName: portal-downloads ~~~ Actual results: Cronjob always becomes suspended status. Expected results: it should work. Additional info: