Bug 2072684 - Storage Conversion: PersistentVolumeClaimTemplates in StatefulSets are not updated automatically after migration
Summary: Storage Conversion: PersistentVolumeClaimTemplates in StatefulSets are not up...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: Controller
Version: 1.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 1.7.1
Assignee: Pranav Gaikwad
QA Contact: Prasad Joshi
Richard Hoch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-06 18:41 UTC by Pranav Gaikwad
Modified: 2022-05-05 13:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-05 13:50:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-controller pull 1273 0 None open Bug 2072684: update pvcClaimTemplates post migration 2022-04-07 13:44:59 UTC
Github konveyor mig-controller pull 1286 0 None open Bug 2072684: update pvcClaimTemplates post migration (#1273) 2022-04-18 13:59:41 UTC
Red Hat Product Errata RHSA-2022:1734 0 None None None 2022-05-05 13:50:16 UTC

Description Pranav Gaikwad 2022-04-06 18:41:31 UTC
Description of problem:
volumeClaimTemplates in StatefulSet resources are not updated to point to new PVC resources after a storage conversion migration.

Version-Release number of selected component (if applicable):
1.7.0

How reproducible:
Always

Steps to Reproduce:
1. Create a storage conversion plan for a namespace that has statefulset resources in it
2. Run a stage + cutover migration

Actual results:
The volumeClaimTemplates in StatefulSets are not updated automatically after migration

Expected results:
The volumeClaimTemplates in StatefulSets should be updated automatically after migration


Additional info:

Comment 6 Prasad Joshi 2022-04-26 12:28:06 UTC
Verified with MTC 1.7.0(prestage)

metadata_nvr: openshift-migration-operator-metadata-container-v1.7.1-10

Source cluster: AWS 4.5 
Target cluster: AWS 4.10

The volumeClaimTemplates in Statefulsets are getting updated after performing migrations.

$ oc get pods -o yaml

    volumes:
    - name: data-new
      persistentVolumeClaim:
        claimName: data-new-redis-ss-1

$ oc get pvc
NAME                  STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS            AGE
data-new-redis-ss-0   Bound    pvc-1fc16b69-cfc9-428f-94cd-92f9dd0dfb95   100Mi      RWO            odf-operator-ceph-rbd   10m
data-new-redis-ss-1   Bound    pvc-03cf8cfd-612e-4e3f-8a77-5ec00678dcbb   100Mi      RWO            odf-operator-ceph-rbd   10m
data-redis-ss-0       Bound    pvc-b09a7752-849c-4278-985c-dcebf70ac060   1Gi        RWO            standard                30m
data-redis-ss-1       Bound    pvc-2a383625-7360-4bd2-97a1-422b570ef8f9   1Gi        RWO            standard                29m


Moving this to verified status.

Comment 8 errata-xmlrpc 2022-05-05 13:50:07 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 (Moderate: Migration Toolkit for Containers (MTC) 1.7.1 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:1734


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