Bug 2062682 - [MTC] Destination storage class non-availability warning visible in Intra-cluster source to source state-migration migplan.
Summary: [MTC] Destination storage class non-availability warning visible in Intra-clu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: General
Version: 1.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 1.7.1
Assignee: Pranav Gaikwad
QA Contact: mohamed
Richard Hoch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-10 11:02 UTC by ssingla
Modified: 2022-05-05 13:50 UTC (History)
3 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 1281 0 None open Bug 2062682: remove ceph warning for intra cluster migrations 2022-04-11 17:59:33 UTC
Github konveyor mig-controller pull 1282 0 None open Bug 2062682: remove ceph warning for intra cluster migrations (#1281) 2022-04-12 19:45:07 UTC
Red Hat Product Errata RHSA-2022:1734 0 None None None 2022-05-05 13:50:16 UTC

Description ssingla 2022-03-10 11:02:34 UTC
Description of the problem: On creating an intra cluster source to source state-migration migplan, it shows a warning in the migplan for the unavailability of storage class on the destination cluster.

Severity: Medium

Version-Release number of selected component (if applicable):
MTC 1.7.0 
Specific to Glusterfs
Source cluster - OCP 3.11 (Glusterfs installed and set to default)
Target cluster - OCP 4.6+ (Glusterfs not available)

Steps to reproduce:
1. Create a namespace named state-ns in the source cluster
2. Deploy any application in the namespace having PVCs
3. Login to the MTC console, and create a state migration type migplan for the state-ns namespace created in the first step.
4. Click on Next, and Choose the target storage class to gp2 available in the target cluster and Finish the migplan.
5.  Check the created migplan yaml from the backend.

Actual Result: 

  - category: Warn
    lastTransitionTime: "2022-03-10T08:01:42Z"
    message: 'Ceph is not available on destination. If this is desired, please install
      the rook operator. The following PVs will use the default storage class instead:
      [pvc-dc6e5385-a047-11ec-b6a2-0ecd89df8903]'
    status: "True"
    type: PvWarnNoCephAvailable

“PvWarnNoCephAvailable” warning is visible in the migplan


Expected Result: This warning should not be visible as this is an intra cluster state migplan.

Additional info:
Migplan yaml


apiVersion: migration.openshift.io/v1alpha1
kind: MigPlan
metadata:
  annotations:
    migration.openshift.io/selected-migplan-type: state
    openshift.io/touch: 7882421d-a048-11ec-8427-0a580a820214
  creationTimestamp: "2022-03-10T08:01:41Z"
  generation: 6
  name: test-bug
  namespace: openshift-migration
  resourceVersion: "1024084"
  uid: d2ee599d-82f8-48ea-814d-ab611881f5c1
spec:
  destMigClusterRef:
    name: source-cluster
    namespace: openshift-migration
  migStorageRef:
    name: automatic
    namespace: openshift-migration
  namespaces:
  - test-bug:test-bug-new
  persistentVolumes:
  - capacity: 1Gi
    name: pvc-dc6e5385-a047-11ec-b6a2-0ecd89df8903
    proposedCapacity: 1Gi
    pvc:
      accessModes:
      - ReadWriteOnce
      hasReference: true
      name: postgresql
      namespace: test-bug
    selection:
      action: copy
      copyMethod: filesystem
      storageClass: gp2
    storageClass: glusterfs-storage
    supported:
      actions:
      - skip
      - copy
      copyMethods:
      - filesystem
      - snapshot
  srcMigClusterRef:
    name: source-cluster
    namespace: openshift-migration
status:
  conditions:
  - category: Advisory
    lastTransitionTime: "2022-03-10T08:01:47Z"
    message: This is an intra-cluster migration plan and all of the source namespaces
      are mapped to different destination namespaces. This plan can only be used for
      State Migration.
    reason: StateMigrationPlan
    status: "True"
    type: MigrationTypeIdentified
  - category: Warn
    lastTransitionTime: "2022-03-10T08:01:42Z"
    message: 'Ceph is not available on destination. If this is desired, please install
      the rook operator. The following PVs will use the default storage class instead:
      [pvc-dc6e5385-a047-11ec-b6a2-0ecd89df8903]'
    status: "True"
    type: PvWarnNoCephAvailable
  - category: Required
    lastTransitionTime: "2022-03-10T08:01:42Z"
    message: The `persistentVolumes` list has been updated with discovered PVs.
    reason: Done
    status: "True"
    type: PvsDiscovered
  - category: Required
    lastTransitionTime: "2022-03-10T08:01:42Z"
    message: The storage resources have been created.
    reason: Done
    status: "True"
    type: StorageEnsured
  - category: Required
    lastTransitionTime: "2022-03-10T08:01:42Z"
    message: The migration plan is ready.
    status: "True"
    type: Ready
  destStorageClasses:
  - accessModes:
    - ReadWriteOnce
    - ReadOnlyMany
    - ReadWriteMany
    default: true
    name: glusterfs-storage
    provisioner: kubernetes.io/glusterfs
  - accessModes:
    - ReadWriteOnce
    - ReadOnlyMany
    name: glusterfs-storage-block
    provisioner: gluster.org/glusterblock-openshift-storage
  - accessModes:
    - ReadWriteOnce
    name: gp2
    provisioner: kubernetes.io/aws-ebs
  excludedResources:
  - imagetags
  - templateinstances
  - clusterserviceversions
  - packagemanifests
  - subscriptions
  - servicebrokers
  - servicebindings
  - serviceclasses
  - serviceinstances
  - serviceplans
  - operatorgroups
  - events
  - events.events.k8s.io
  - rolebindings.authorization.openshift.io
  observedDigest: ebb35375c887815d3fd2ad92e687c7c939cda1701c6c198751edc7d09c78b7b4
  srcStorageClasses:
  - accessModes:
    - ReadWriteOnce
    - ReadOnlyMany
    - ReadWriteMany
    default: true
    name: glusterfs-storage
    provisioner: kubernetes.io/glusterfs
  - accessModes:
    - ReadWriteOnce
    - ReadOnlyMany
    name: glusterfs-storage-block
    provisioner: gluster.org/glusterblock-openshift-storage
  - accessModes:
    - ReadWriteOnce
    name: gp2
    provisioner: kubernetes.io/aws-ebs

Comment 7 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.