Bug 1906810 - Migration stuck when a wrong registry pod image is configured
Summary: Migration stuck when a wrong registry pod image is configured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: General
Version: 1.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 1.4.0
Assignee: Jaydip Gabani
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-11 13:26 UTC by Sergio
Modified: 2021-02-11 12:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-11 12:54:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:5329 0 None None None 2021-02-11 12:55:09 UTC

Description Sergio 2020-12-11 13:26:31 UTC
Description of problem:
When we configure a wrong registry pod image in the migrationcontroller resource, the migration is stuck forever.

Version-Release number of selected component (if applicable):
MTC 1.4.0

How reproducible:
Always

Steps to Reproduce:
1. In source cluster. Create namespace

$ oc new-project ocp-37313-registrybadimagetgt

2. In source cluster. Configure the migrationcontroller in order to use a wrong registry pod image

$ oc patch migrationcontroller migration-controller -n openshift-migration --type merge -p '{"spec":{"migration_registry_image":"docker.io/registry-fake","migration_registry_repo":"registry","migration_registry_version":"2"}}'


3. Create a migration plan to migrate the namespace created in step 1 and run the migration


Actual results:
The migration is stuck forever saying "waiting for pods to be ready" on the UI.


Expected results:
The migration should fail if we cannot create the registry pods, or at least show an error/warning telling the user that the registry pods cannot be created because of an ImagePullBackOff error and the cluster where the pods cannot be created.


Additional info:

Comment 1 Jaydip Gabani 2020-12-16 16:56:18 UTC
The PR https://github.com/konveyor/mig-controller/pull/860 resolves this bug

Comment 6 Xin jiang 2021-01-08 09:44:02 UTC
verified. it will report error message like below

Danger alert:This migration has following error conditions:
Migration Registry Pod openshift-migration/registry-2a0bfbe0-06df-4f60-845a-aacc12c044b0-69dwv-7976f8ncr47 is in unhealthy state on cluster source-cluster, the Pod is in ImagePullBackOff state

Comment 8 errata-xmlrpc 2021-02-11 12:54:50 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.4.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:5329


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