Description of problem: Our plugin is supposed to be setting the PV reclaim policy to `retain` whenever `move` is selected. This part is functioning properly, but the original PV definition is passed into the backup instead of the modified one which leaves Velero to restore a PV with the `delete` reclaim policy. This causes velero to change the PVC to provision a new PV. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Have a PV with `Delete` reclaim policy 2. Include PV in migration setting it to `move` 3. Check App data on destination cluster. Check PV that PVC is using Actual results: OCP provisions a new PV losing all existing data Expected results: Migration should bring original PV definition over to the destination cluster Additional info:
https://github.com/fusor/openshift-migration-plugin/pull/31
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=24126963
Previous build failed. New one succeeded and was pushed to the errata: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=24139170
Verified.
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/RHBA-2019:3151