Bug 2021666 - Route name longer than 63 characters causes direct volume migration to fail
Summary: Route name longer than 63 characters causes direct volume migration to fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: Controller
Version: 1.6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 1.6.3
Assignee: David Zager
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-09 21:27 UTC by Erik Nelson
Modified: 2022-01-20 06:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-20 06:31:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor crane-lib pull 90 0 None Merged Bug 2021666: handle routes longer than 63 chars 2021-11-19 19:53:12 UTC
Github konveyor mig-controller pull 1248 0 None open Bug 2021666: update crane-lib 2022-01-10 14:11:18 UTC
Github konveyor mig-controller pull 1249 0 None open Bug 2021666: update crane-lib (#1248) 2022-01-10 14:51:25 UTC
Red Hat Product Errata RHSA-2022:0202 0 None None None 2022-01-20 06:31:47 UTC

Description Erik Nelson 2021-11-09 21:27:47 UTC
It appears that the route name breach of 63 chars has been reintroduced as a regression. This is something that has been addressed with several bugfixes in the past: https://bugzilla.redhat.com/buglist.cgi?list_id=12252611&product=Migration%20Toolkit%20for%20Containers&query_format=advanced&short_desc=63%20char&short_desc_type=allwordssubstr

====

The dvm route created by MTC tool for PVC rsync during stage step has different naming in MTC 1.6 compared to 1.5.  For project with long name the dvm route is failing to admit in MTC 1.6 because of the length is greater than 63 characters:

 

Example:

Project Name: longnameprojecttest-longnameprojecttest-longnameprojecttest-123

 

DVM route host in MTC 1.5: dvm-ccc13e60be2e90aec3f16fb07a0d928b.mycorp.com

 

DVM route host in MTC 1.6: dvm-longnameprojecttest-longnameprojecttest-longnameprojecttest-123.apps.mycorp.com

 

Error: host name validation errors: spec.host: Invalid value: "dvm-longnameprojecttest-longnameprojecttest-longnameprojecttest-123.apps.mycorp.com": must be no more than 63 characters

Comment 2 Erik Nelson 2021-12-01 04:45:20 UTC
For some reason the bot didn't kick this to MODIFIED after the PRs were merged to the release branches. Manually moving to MODIFIED based on: https://coreos.slack.com/archives/C018T5LD33M/p1638309163068100

Comment 8 ssingla 2022-01-10 07:02:37 UTC
On Verifying with the latest 1.6.3 build, openshift-migration-operator-metadata-container-v1.6.3-9

DVM route not taking the hash and the migration fails again.

Moving to Assigned state.

Comment 14 errata-xmlrpc 2022-01-20 06:31:35 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.3 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:0202


Note You need to log in before you can comment on or make changes to this bug.