Bug 1852877

Summary: MigMigration fails when migrating templateinstance resource
Product: OpenShift Container Platform Reporter: Tarun Patel <tapatel>
Component: Migration ToolingAssignee: Scott Seago <sseago>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: mberube, rjohnson, sregidor
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 18:42:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tarun Patel 2020-07-01 13:58:13 UTC
Description of problem:
MigMigration fails when migrating templateinstance resource


Version-Release number of selected component (if applicable):
OCP4.4.6 (but exist on latest version as well)


How reproducible:
Follow openshift migration doc


Steps to Reproduce:
Follow openshift migration doc here : https://docs.openshift.com/container-platform/4.4/migration/migrating_3_4/about-migration.html

Note: During my test, I have used Azure blob storage for replication.

Actual results:
All apps/projects has been migrated but Migration fails with following error:

  - >-
      TemplateInstance.template.openshift.io
      "e8a3b6a4-ba40-11ea-bbb8-0a580a800006" is invalid:
      spec.requester.username: Forbidden: you do not have permission to set
      username
  itenerary: Failed

Expected results:
Migration should be successful with no error.

Additional info:
Here is the github issue reported by Dyaln Murray after disccusing with him on slack chat.

Github : https://github.com/konveyor/mig-controller/issues/581

Comment 5 Sergio 2020-09-18 15:22:13 UTC
Verified using MTC 1.3

openshift-migration-rhel7-operator@sha256:233af9517407e792bbb34c58558346f2424b8b0ab54be6f12f9f97513e391a6a


After deploying in 3.11 an application using the catalog, it was possible to migrate it to 4.5 without any problem.

Double checked that the catalog created a templateinstance in the migrated namespace.

$ oc get templateinstance
NAME                                   TEMPLATE
5321675a-f9a1-11ea-9542-0a580a800007   cakephp-mysql-persistent


Moved to VERIFIED status.

Comment 9 errata-xmlrpc 2020-09-30 18:42:32 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 (Migration Toolkit for Containers (MTC) Tool image release advisory 1.3.0), 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:4148