Bug 2152149

Summary: Adding a MigCluster from UI fails when the domain name has characters more than 6
Product: Migration Toolkit for Containers Reporter: Abhijeet Sadawarte <asadawar>
Component: UIAssignee: Ian <ibolton>
Status: CLOSED ERRATA QA Contact: mohamed <midays>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3.zCC: dymurray, midays, rjohnson
Target Milestone: ---   
Target Release: 1.7.8   
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: 2023-03-23 02:16:44 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 Abhijeet Sadawarte 2022-12-09 13:39:47 UTC
Description of problem:
Adding a MigCluster from UI fails when the domain name has characters of more than 6.

The code expects a 2 to 6 character length so it should be more:

~~~
https://github.com/migtools/mig-ui/blob/master/src/app/common/duck/utils.ts#L6
~~~

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

How reproducible:
Simply try adding a remote MigCluster host with a domain name of more than 6 characters.

Comment 8 mohamed 2023-03-01 19:37:04 UTC
Verified using MTC prestage

Comment 12 errata-xmlrpc 2023-03-23 02:16:44 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 (Important: Migration Toolkit for Containers (MTC) 1.7.8 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-2023:1428