Bug 2039864

Summary: [MTC] Migrationcontroller pod going in "CrashLoopBackOff" when migplan is pointing to an invalid destMigClusterRef/srcMigClusterRef
Product: Migration Toolkit for Containers Reporter: Erik Nelson <ernelson>
Component: ControllerAssignee: Pranav Gaikwad <pgaikwad>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: urgent Docs Contact: Steve Goodman <sgoodman>
Priority: urgent    
Version: 1.6.3CC: ernelson, pgaikwad, prajoshi, rjohnson, sgoodman, ssingla, xjiang
Target Milestone: ---   
Target Release: 1.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2039852 Environment:
Last Closed: 2022-03-24 06:32:27 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: 2039852    
Bug Blocks:    

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