@Vince > The discovery service must must no about available storage classes at this point because it's when storage class selection is done, correct? Yes, correct. We know the storageclasses present on the selected cluster once PV discovery has concluded with a result (3rd step of the wizard). > So then I believe we have two choices: (1) ignore the fact there's only one storage class to choose from in the drop down, allow the user to select it (or hopefully they'll realize their problem), and let them go on their merry way until they reach the end of the wizard and validation fails, or (2) as soon as the discovery service returns only one storage class throw a warning (Warn, don't Block) saying "Hey dummy - you chose a cluster with only one storage class. Go back and select another cluster or choose another migration type." I vote for (2). (1) happens already today as of Pranav's 1.7.1 fix. I agree with you Vince, I think 2 is a better experience and that's something we can add without any technical limitation. It's a UI-only change. @mturley Make sense to you?
Yep, sounds good to me. I'll self-assign this and work on it next.
Attached PRs. IMPORTANT VERIFICATION NOTE: because this PR reverts some of the logic that was part of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=2071000, we should re-verify that bug fix as part of verifying this one to ensure we don't have a regression.
Fixed an issue introduced by the prior PR, moving back to POST.
One last change to fully resolve this.
*** Bug 2079549 has been marked as a duplicate of this bug. ***
Verified with MTC 1.7.2 metadata_nvr: openshift-migration-operator-metadata-container-v1.7.2-11 I see the expected behavior mentioned above. Also verified https://bugzilla.redhat.com/show_bug.cgi?id=2071000, No issues found Moving this to verified status.
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 (Moderate: Migration Toolkit for Containers (MTC) 1.7.2 security and bug fix update), 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/RHSA-2022:5483