Bug 2039864 - [MTC] Migrationcontroller pod going in "CrashLoopBackOff" when migplan is pointing to an invalid destMigClusterRef/srcMigClusterRef
Summary: [MTC] Migrationcontroller pod going in "CrashLoopBackOff" when migplan is poi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: Controller
Version: 1.6.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 1.7.0
Assignee: Pranav Gaikwad
QA Contact: Xin jiang
Steve Goodman
URL:
Whiteboard:
Depends On: 2039852
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-12 15:20 UTC by Erik Nelson
Modified: 2022-03-24 06:32 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2039852
Environment:
Last Closed: 2022-03-24 06:32:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-controller pull 1251 0 None Merged Bug 2039852: Fix nil pointer when wrong MigCluster is provided in the plan 2022-01-13 16:14:22 UTC
Red Hat Product Errata RHBA-2022:1043 0 None None None 2022-03-24 06:32:36 UTC

Description Erik Nelson 2022-01-12 15:20:51 UTC
+++ This bug was initially created as a clone of Bug #2039852 +++

Description of problem: Migrationcontroller pod going in  "CrashLoopBackOff" state when migplan is pointing to an invalid destMigClusterRef/srcMigClusterRef. 


Version-Release number of selected component (if applicable):
MTC 1.6.3
SOURCE CLUSTER: AWS 4.6 MTC 1.6.3
TARGET CLUSTER: AWS 4.9 MTC 1.6.3



How reproducible:
Always


Steps to Reproduce:
1. Create a migplan which pointing to a invalid destMigClusterRef/srcMigClusterRef
For eg.
oc get migplan test3 -n openshift-migration -o yaml
  srcMigClusterRef:
    name: foo
    namespace: openshift-migration


Actual results: Migrationcontroller pod going in "CrashLoopBackOff"


Expected results: Migplan should display critical warning in conditions and status should be not Ready


Additional info:

$ oc get pods -n openshift-migration
NAME                                    READY   STATUS             RESTARTS   AGE
migration-controller-c444f7d67-2zxdj    1/2     CrashLoopBackOff   10         80m

Comment 1 Erik Nelson 2022-01-12 15:21:20 UTC
Fixed in master here: https://github.com/konveyor/mig-controller/pull/1251

Cloned bug to verify in 1.7.

Comment 8 errata-xmlrpc 2022-03-24 06:32:27 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) 1.7.0 release 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-2022:1043


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