Bug 1761548 - Persistent Volumes with `Delete` reclaim policy fails to restore when swinging volume
Summary: Persistent Volumes with `Delete` reclaim policy fails to restore when swingin...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.2.z
Assignee: Dylan Murray
QA Contact: Zhang Cheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-14 16:12 UTC by Dylan Murray
Modified: 2019-10-30 04:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-30 04:44:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3151 0 None None None 2019-10-30 04:45:11 UTC

Description Dylan Murray 2019-10-14 16:12:50 UTC
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:

Comment 3 Dylan Murray 2019-10-18 13:40:20 UTC
Previous build failed. New one succeeded and was pushed to the errata:

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=24139170

Comment 4 Xin jiang 2019-10-21 11:44:10 UTC
Verified.

Comment 6 errata-xmlrpc 2019-10-30 04:44:56 UTC
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


Note You need to log in before you can comment on or make changes to this bug.