Description of problem:
If you try to cancel a running migration(it's added hooks) , when the migration is canceled, it doesn't stop the Job pod that is used to execute hook script
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a migplan which is attached hook script
2. Migrate the migplan
3. Once it start executing hook script, try to cancel the migration process
When the migration is canceled, the Job pod keep running. If the hook script fail, it will continue retrying 6 times(each time takes 30 mins) and then the job pod will be terminated. that doesn't make sense.
The job should be terminated immediately
Fix available in https://github.com/konveyor/mig-controller/pull/768
To verify the fix:
1. Add a hook to the plan
2. Start migrate
3. Kill the migration when it is running the hook
4. After the migration gets cancelled, the job associated with the hook and corresponding pod should also have been terminated.
verified. When triggering cancel migration, hook pods will be terminated accordingly.
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.