Description of problem: Only default storage is taken instead of selected when creating plan in UI Version-Release number of selected component (if applicable): 2.0.0-12 How reproducible: 100% Steps to Reproduce: 1. Create new plan and configure it to use not-default storage (ceph-rbd in my case) 2. Edit plan and go to storage mappings section 3. See which storage will be selected Actual results: Default storage type will be selected instead of one selected by user Expected results: Additional info:
What happens if you cancel the plan edit and run it? Will it use the selected storage class or the default one? If it uses the selected one, I don't think it's urgent. I'm asking, because I'm suspecting that the UI reuses the same logic as during the plan creation and pre-selects the default storage class. If that's the case, it's a confusing behavior and should be fixed, but it can wait until 2.1.0.
@fdupont you are right, if I just create plan and run it - proper storage type is used for it, problem is relevant only when I'm editing plan.
Thanks. Then, I really think that this BZ and https://bugzilla.redhat.com/show_bug.cgi?id=1958649 should be fixed together.
Investigating further, I think the two BZs are caused by separate issues, but the fixes would conflict so I will fix them together.
Ha! Fabien, you were right, these were the same issue. I misunderstood what was happening with prefilling mappings (the code I thought was broken is fine), and after going back to square one I found that both BZs come down to one dumb typo. PR incoming.
Should be fixed by https://github.com/konveyor/forklift-ui/pull/591 (backport: https://github.com/konveyor/forklift-ui/pull/592).
The fix is in build 2.0.0-13 / iib:74067.
Verified this on MTV 2.0.0-13, storage type selected by user during creation is there when editing plan.
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 (MTV 2.0.0 images), 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:2381