Bug 1859489

Summary: Add serviceinstances to the default ignore list
Product: OpenShift Container Platform Reporter: Sergio <sregidor>
Component: Migration ToolingAssignee: Erik Nelson <ernelson>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5CC: chezhang, ernelson, jmatthew, mberube, rjohnson, rpattath, whu, xjiang
Target Milestone: ---   
Target Release: 4.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1859486 Environment:
Last Closed: 2020-08-05 10:51:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1859486    
Bug Blocks:    

Description Sergio 2020-07-22 09:29:57 UTC
+++ This bug was initially created as a clone of Bug #1859486 +++

Description of problem:
The list with the resources ignored by CAM by default should include Serviceinstances resource.



Version-Release number of selected component (if applicable):
CAM 1.2.4
SOURCE CLUSTER: 3.11
TARGET CLUSTER: 4.4


How reproducible:
Always

Steps to Reproduce:
1. Create a new project in 3.11
oc new-project bztest

2. Enter in the OCP 3.11 web console and enter in the new 'bztest' project
3. Click on "Catalog"
4. Deploy any application from the catalog, from instance django+postgresSQL persistent
5. Migrate the application

Actual results:
Apart from the templateinstance resource, a serviceinstance resource is created and we have this warning in the migration

We have this warning

    incompatibleNamespaces:
    - gvks:
      - group: servicecatalog.k8s.io
        kind: serviceinstances
        version: v1beta1


Expected results:
The service instance resource should be ignored too.

Additional info:

Comment 1 Erik Nelson 2020-07-22 13:22:18 UTC
https://github.com/konveyor/mig-operator/pull/387

Comment 5 Sergio 2020-07-29 13:54:12 UTC
Verified in CAM 1.2.4 stage.
SOURCE: OCP 3.11 aws
TARGET: OCP 4.5 aws
Replication Repository: AWS

image: openshift-migration-rhel7-operator@sha256:a8d31fdb96e9d5e3fe42e928d0862141b7e39780e52121a995aeeb34270dd894

The servicecatalog is included in the list and the resource is ignored

    excludedResources:
    - imagetags
    - templateinstances
    - clusterserviceversions
    - packagemanifests
    - subscriptions
    - servicebrokers
    - servicebindings
    - serviceclasses
    - serviceinstances
    - serviceplans


A warning is displayed though, saying that this resource is not compatible with the destication cluster.

Comment 7 errata-xmlrpc 2020-08-05 10:51:25 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 (Cluster Application Migration (CAM) Tool Image Release Advisory 1.2.4), 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:3320