Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: When we execute a migration from nfs storage to gp2 storage, and the nfs server cannot be seen from the target cluster, we get a warning saying that the target cluster cannot see the nfs server. But when we copy from nfs to gp2, the target cluster does not need to see the nfs server, it is only an issue when we move nfs, not when we copy it. Version-Release number of selected component (if applicable): CAM 1.2.0 SOURCE CLUSTER: AWS 3.11 TARGET CLUSTER: AWS 4.3 How reproducible: Always Steps to Reproduce: 1. Create any application using an nfs PVC in the source cluster. Use a nfs server that cannot be seen from target cluster 2. Migrate the application to the target cluster, select the PVC to migrated using "copy" action and "gp2" as the destination storageclass Actual results: The migration plan will show a warning - category: Warn lastTransitionTime: "2020-06-04T17:14:13Z" message: NFS servers [XXX.XX.XX.XXX] not accessible on the destination cluster. status: "True" type: NfsNotAccessible Expected results: There should be no warning, since it is only an issue if we move the nfs. We don't need to see the nfs server from target cluster when the action is "copy". Additional info: This is the full MigPlan kind: MigPlan metadata: annotations: openshift.io/touch: 9b65071a-a688-11ea-a1b5-0a580a81020c creationTimestamp: "2020-06-04T17:14:04Z" generation: 3 labels: controller-tools.k8s.io: "1.0" name: nginx-pv-migplan-1591290259 namespace: openshift-migration resourceVersion: "71654" selfLink: /apis/migration.openshift.io/v1alpha1/namespaces/openshift-migration/migplans/nginx-pv-migplan-1591290259 uid: f72c2199-6d25-4f29-8512-136e58199ad4 spec: destMigClusterRef: name: host namespace: openshift-migration migStorageRef: name: automatic namespace: openshift-migration namespaces: - nginx-pv persistentVolumes: - capacity: 1Mi name: pvc-bd52bd24-a686-11ea-a19e-0e9d0082032d pvc: accessModes: - ReadWriteOnce name: nginx-logs namespace: nginx-pv selection: action: copy copyMethod: filesystem storageClass: gp2 storageClass: nfs supported: actions: - copy copyMethods: - filesystem - snapshot - capacity: 50Mi name: pvc-bd5c1f75-a686-11ea-a19e-0e9d0082032d pvc: accessModes: - ReadWriteOnce name: nginx-html namespace: nginx-pv selection: action: copy copyMethod: filesystem storageClass: gp2 storageClass: nfs supported: actions: - copy copyMethods: - filesystem - snapshot srcMigClusterRef: name: source-cluster namespace: openshift-migration status: conditions: - category: Required lastTransitionTime: "2020-06-04T17:14:10Z" message: The `persistentVolumes` list has been updated with discovered PVs. reason: Done status: "True" type: PvsDiscovered - category: Warn lastTransitionTime: "2020-06-04T17:14:13Z" message: NFS servers [XXX.XX.XX.XXX] not accessible on the destination cluster. status: "True" type: NfsNotAccessible - category: Required lastTransitionTime: "2020-06-04T17:14:14Z" message: The storage resources have been created. status: "True" type: StorageEnsured - category: Required lastTransitionTime: "2020-06-04T17:14:15Z" message: The migration registry resources have been created. status: "True" type: RegistriesEnsured - category: Required lastTransitionTime: "2020-06-04T17:14:15Z" message: The migration plan is ready. status: "True" type: Ready - category: Advisory lastTransitionTime: "2020-06-04T17:14:27Z" message: Limited validation; PV discovery and resource reconciliation suspended. status: "True" type: Suspended observedDigest: f948e91253f8276c5e2a2e27f7ed0401eb543dea8425f931b574f9bb8e84ed22
Hi, I tried but failed to reproduce this bug. Here are the steps I followed: 1. Create a project on ocp-3.11 cluster which uses an nfs PV. 2. Tested the nfs service (hosted on ocp-3.11 node) is not accessible from the ocp-4.5 node by running `showmount -e <IP_ADDR_OF_NFS_HOST>`. 3. Ran the migrate on ocp-4.5. -------------------------------------------------- Following is the MigPlan status: -------------------------------------------------- apiVersion: migration.openshift.io/v1alpha1 kind: MigPlan metadata: annotations: openshift.io/touch: 56c7f4d4-2e79-11eb-bda4-0a580a83006d selfLink: >- /apis/migration.openshift.io/v1alpha1/namespaces/openshift-migration/migplans/nfspvmig resourceVersion: '15437564' name: nfspvmig uid: afd54578-1f39-4dc7-8204-de58cd0cb842 creationTimestamp: '2020-11-24T17:05:41Z' generation: 7 managedFields: - apiVersion: migration.openshift.io/v1alpha1 fieldsType: FieldsV1 fieldsV1: 'f:spec': .: {} 'f:destMigClusterRef': .: {} 'f:name': {} 'f:namespace': {} 'f:migStorageRef': .: {} 'f:name': {} 'f:namespace': {} 'f:namespaces': {} 'f:srcMigClusterRef': .: {} 'f:name': {} 'f:namespace': {} manager: Mozilla operation: Update time: '2020-11-24T17:05:57Z' - apiVersion: migration.openshift.io/v1alpha1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:openshift.io/touch': {} 'f:spec': 'f:persistentVolumes': {} 'f:status': .: {} 'f:conditions': {} 'f:excludedResources': {} 'f:observedDigest': {} manager: manager operation: Update time: '2020-11-24T17:20:24Z' namespace: openshift-migration spec: destMigClusterRef: name: host namespace: openshift-migration migStorageRef: name: irlvelero namespace: openshift-migration namespaces: - nfspvtest persistentVolumes: - capacity: 10Gi name: vol51 pvc: accessModes: - ReadWriteOnce hasReference: true name: nfs-pvc namespace: nfspvtest selection: action: copy copyMethod: filesystem storageClass: gp2 supported: actions: - copy - move copyMethods: - filesystem - snapshot srcMigClusterRef: name: ocp3 namespace: openshift-migration status: conditions: - category: Required lastTransitionTime: '2020-11-24T17:05:42Z' message: The `persistentVolumes` list has been updated with discovered PVs. reason: Done status: 'True' type: PvsDiscovered - category: Required lastTransitionTime: '2020-11-24T17:05:42Z' message: The storage resources have been created. status: 'True' type: StorageEnsured - category: Required lastTransitionTime: '2020-11-24T17:05:43Z' message: The migration registry resources have been created. status: 'True' type: RegistriesEnsured - category: Required lastTransitionTime: '2020-11-24T17:05:43Z' message: The migration plan is ready. status: 'True' type: Ready - category: Advisory lastTransitionTime: '2020-11-24T17:08:11Z' message: Limited validation; PV discovery and resource reconciliation suspended. status: 'True' type: Suspended excludedResources: - imagetags - templateinstances - clusterserviceversions - packagemanifests - subscriptions - servicebrokers - servicebindings - serviceclasses - serviceinstances - serviceplans - operatorgroups - events observedDigest: 772c3d0b32a1b6401ab7263b7c368d8eb7a7ae55faec66278730447e5945c1f6 -------------------------------------------------------------------------------------------- Please let me know if there is any step I might have missed in manifesting this bug.
Hello, You followed the right steps to reproduce the issue. I have tried to reproduce the bug too using MTC 1.3.2 and it seems that problem is not there any more. Thank you.
Verified in MTC 1.4.0 The warning is not displayed any more. Moved 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 (Migration Toolkit for Containers (MTC) 1.4.0 Operator metadata image 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-2020:5330