Created attachment 1778910 [details]
Description of problem:
If setting any cut-over date-time to the migration CR, the UI indicates
Plan Status: Running Cut-over.
The Cut-over time may still be a few phases a head,. it has not really started yet.
Version-Release number of selected component (if applicable):
Migrate using CLI setting a future cutover date in the migration CR.
Steps to Reproduce:
The UI indicates Plan Status: Running Cut-over (see attached)
The status in the UI should indicate to correct plan phase.
A user setting the cutover time through the UI wouldn't have this problem.
Targeting MTV 2.1.0.
Opened a fix: https://github.com/konveyor/forklift-ui/pull/573
This PR should fix the issue, but @email@example.com I'm confused about one detail of your report.
In reproducing the bug, I set a cutover time on a plan that was running precopies (the pipeline steps had not yet started). It didn't result in showing "Running cutover", instead it showed "Preparing for cutover" because it shows that until it sees a start time on the first pipeline step.
Can you reproduce it again and post the `status` part of the plan object, both before and after you set the cutover on the migration? I don't think the pipeline steps should have start times until the cutover time is reached, and that may indicate a bug in the controller. It's my understanding that the pipeline status is only used during cutover.
Retargeting for 2.0.0 at Fabien's request. Backport PR here: https://github.com/konveyor/forklift-ui/pull/576
The fix is in build 2.0.0-8 / iib:72981.
The original Scenario was setting the cut-over date to the far future with the migration CR Creation.
I verified the following scenarios:
1.Add a future time with CR Creation
2.Add a future time with CR Creation and then change to pass date
3.Set Cut-over date to the future after the CR is created
4.Set Cut-over date to the past after the CR is created
5.Change the cut-over date before/after the 1st pre-copy
In all cases the UI indicated the expected phase.
build 2.0.0-8 / iib:72981.
build 2.0.0-8 / iib:72981