Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1822127

Summary: Migrating workloads between clusters with independently configured proxies fails to migrate internal images
Product: OpenShift Container Platform Reporter: Sergio <sregidor>
Component: Migration ToolingAssignee: Erik Nelson <ernelson>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: high Docs Contact:
Priority: high    
Version: 4.3.zCC: chezhang, dymurray, jmatthew, pvauter, rpattath, whu, xjiang
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1822170 (view as bug list) Environment:
Last Closed: 2020-04-23 17:32:08 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:
Bug Depends On: 1822170    
Bug Blocks:    

Comment 1 Erik Nelson 2020-04-08 14:55:48 UTC
Master PRs:
https://github.com/konveyor/mig-operator/pull/294
https://github.com/konveyor/mig-controller/pull/482

Will follow with 1.1.2 release branch commit links.

Comment 4 Sergio 2020-04-13 15:52:58 UTC
Errors were found while validating the fix in CAM 1.1.2 stage.

We can find this log in the "ansible" container of the operator pod.

TASK [migrationcontroller : Create proxy configuration secret if proxy is configured] ***
task path: /opt/ansible/roles/migrationcontroller/tasks/main.yml:147
fatal: [localhost]: FAILED! => {"changed": false, "error": 422, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"Secret \\\"migration-proxy-\\\" is invalid: metadata.name: Invalid value: \\\"migration-proxy-\\\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')\",\"reason\":\"Invalid\",\"details\":{\"name\":\"migration-proxy-\",\"kind\":\"Secret\",\"causes\":[{\"reason\":\"FieldValueInvalid\",\"message\":\"Invalid value: \\\"migration-proxy-\\\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')\",\"field\":\"metadata.name\"}]},\"code\":422}
", "reason": "Unprocessable Entity", "status": 422}
TASK [migrationcontroller : k8s_status] ****************************************

The name of the secret doesn't seem to have the right format.

Comment 8 Erik Nelson 2020-04-15 14:56:17 UTC
Fix for upper cased keys: Fix for uppercase keys https://github.com/konveyor/mig-operator/commit/4f7de261223404617db1f0729668683103d34ec8

Comment 9 Sergio 2020-04-16 17:13:49 UTC
Verified using CAM 1.1.2 stage

openshift-migration-rhel7-operator@sha256:a4c461aecdb7428be38c854f4c301db6bc5cbca9d13deacb479c750e45ad8856

Comment 12 errata-xmlrpc 2020-04-23 17:32:08 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, 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-2020:1552