Bug 1966581 - Failed migration hook status is "Active" in the Migration Resources tree in the web console
Summary: Failed migration hook status is "Active" in the Migration Resources tree in t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: General
Version: 1.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 1.5.0
Assignee: Derek Whatley
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-01 12:53 UTC by Sergio
Modified: 2021-07-28 04:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-28 04:08:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (76.68 KB, image/png)
2021-06-01 12:53 UTC, Sergio
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1224 0 None open Bug 1966581: Show job as failed when failed 2021-06-09 19:23:07 UTC
Github konveyor mig-ui pull 1238 0 None open Bug 1966581: Show job as failed when failed 2021-06-18 14:03:41 UTC
Red Hat Product Errata RHEA-2021:2929 0 None None None 2021-07-28 04:08:15 UTC

Description Sergio 2021-06-01 12:53:53 UTC
Created attachment 1788501 [details]
screenshot

Description of problem:
When a migration fails because a hook has failed, if we look at the migration resources list the hook that failed is still reported as Active.

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

How reproducible:
Always

Steps to Reproduce:
1. Create an empty namespace in the source cluster

oc new-project bz-test


2. Create a migration plan for this namespace and add a PreBackup hook that will always fail. We can use "openshift-migration" namespace and "migration-controller" SA to run the hook and run it in the source cluster.

Hook example:

- hosts: localhost
  tasks:
  - fail:
      msg: "Always fail"

3. Run the migration

4. When the migration fails click on "Migration resources"

Actual results:
The migration resources list will show the hook job as "Active", even if it failed and the migration finished.

Expected results:
Since the job was already executed and failed, and the migration is finished too, the job for the hook should not be displayed as an active resource in the list.

Additional info:
Attached a screenshot showing the Active Job resource in a finalized and failed migration plan.

Comment 5 whu 2021-06-24 11:42:11 UTC
Verified against MTC 1.5.0 stage image: 
registry.stage.redhat.io/rhmtc/openshift-migration-rhel7-operator@sha256:17d819f0c28828bc5095bf917563388e05144e2bbbe9c0c86810b350425ee341

Comment 11 errata-xmlrpc 2021-07-28 04:08:07 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) image release advisory 1.5.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/RHEA-2021:2929


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