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 Tooling | Assignee: | Erik Nelson <ernelson> | |
| Status: | CLOSED ERRATA | QA Contact: | Xin jiang <xjiang> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 4.3.z | CC: | 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
Release branch commits: https://github.com/konveyor/mig-operator/commit/c8dbd42cd0af80eabad8581665919c6102ac96b2 https://github.com/konveyor/mig-operator/commit/ca3928c3fdc53d6656a9bafe3fa8319efdc31e4b https://github.com/konveyor/mig-controller/commit/84f938718002b8babd215cb96060c2f1ef662a0e https://github.com/konveyor/mig-controller/commit/6d8d22288b1450db42e8adc73bc5ca18e0e51694 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.
https://github.com/konveyor/mig-operator/commit/7be6bdeadc813415cd0af0fe8185b99c0710d900 Fix for bad secret name. https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1165888 https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1165895 Fix for upper cased keys: Fix for uppercase keys https://github.com/konveyor/mig-operator/commit/4f7de261223404617db1f0729668683103d34ec8 Verified using CAM 1.1.2 stage openshift-migration-rhel7-operator@sha256:a4c461aecdb7428be38c854f4c301db6bc5cbca9d13deacb479c750e45ad8856 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 |