Bug 1976895

Summary: Namespace mapping cannot be changed using the Migration Plan wizard
Product: Migration Toolkit for Containers Reporter: Sergio <sregidor>
Component: UIAssignee: Ian <ibolton>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 1.5.0CC: ernelson, rjohnson, ssingla
Target Milestone: ---   
Target Release: 1.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-29 14:35:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sergio 2021-06-28 13:40:37 UTC
Description of problem:
When we create a migplan and we map a source namespace to a different destination namespace, we cannot edit the migplan to undo the mapping because the validations forbid it.

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

How reproducible:
Always

Steps to Reproduce:
1. Create 2 namespaces
ocp-41968-nsmap-1
ocp-41968-nsmap-2

2. Create a migplan and map the names like this
ocp-41968-nsmap-1:ocp-41968-nsmap-a
ocp-41968-nsmap-2:ocp-41968-nsmap-b


3. Click next
4. Click back
5. Try to map the namespaces like this now:
(do not map namespace ocp-41968-nsmap-2)

ocp-41968-nsmap-1:ocp-41968-nsmap-a
ocp-41968-nsmap-2


Actual results:
The form validations will not allow to undo the previous mapping.

Expected results:
The user should be able to undo a namespace mapping

Additional info:

Comment 7 errata-xmlrpc 2021-09-29 14:35:03 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 (Moderate: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix 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-2021:3694