Bug 1762938
| Summary: | [openshift-migration] CORS configuration for OCP4.1 and OCP4.2 should never be able to simultaneously configured | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Tarun Patel <tapatel> | |
| Component: | Migration Tooling | Assignee: | Danil Grigorev <dgrigore> | |
| Status: | CLOSED ERRATA | QA Contact: | Xin jiang <xjiang> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.3.0 | CC: | dgrigore, dymurray, ernelson, jmatthew, sregidor, xjiang | |
| Target Milestone: | --- | |||
| Target Release: | 4.3.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1779289 (view as bug list) | Environment: | ||
| Last Closed: | 2020-02-06 20:20: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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1759663, 1779289 | |||
|
Description
Tarun Patel
2019-10-17 20:17:30 UTC
Investigated this further and confirmed the operator correctly configures the correct version of corsAllowedOrigins under normal circumstances. The suspicion here is that the unsupportedConfig was manually configured, while the operator configured 4.2 as you would expect. It would be good to have the operator enforce that only ONE of these configuration methods is ever employed at any given time. Verified in CAM 1.1 osbs
Controller:
image: image-registry.openshift-image-registry.svc:5000/rhcam-1-1/openshift-migration-controller-rhel8@sha256:b55c0c36333656a46e1d0500cf11cc8aa06e093d312e7c54f8e1075d4ab4c6c1
The Critical condition is displayed in MigrationController resource specifying that there is a problem with the cors. This was the result:
apiVersion: migration.openshift.io/v1alpha1
kind: MigrationController
metadata:
creationTimestamp: "2020-01-15T14:08:39Z"
generation: 2
name: migration-controller
namespace: openshift-migration
resourceVersion: "37367"
selfLink: /apis/migration.openshift.io/v1alpha1/namespaces/openshift-migration/migrationcontrollers/migration-controller
uid: 8732eb8d-37a0-11ea-869a-02a4623a5b34
spec:
azure_resource_group: ""
cluster_name: host
mig_namespace_limit: "10"
mig_pod_limit: "100"
mig_pv_limit: "100"
migration_controller: true
migration_ui: true
migration_velero: true
olm_managed: true
restic_timeout: 1h
version: 1.0 (OLM)
status:
conditions:
- message: Unexpected CORS configuration for kubeapiserver
reason: CorsMisConfigured
status: "True"
type: Critical
phase: Failed
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:0440 |