Bug 1831705
| Summary: | GVK incompatibility reported in compatible resources | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Sergio <sregidor> | |
| Component: | Migration Tooling | Assignee: | John Matthews <jmatthew> | |
| Status: | CLOSED DUPLICATE | QA Contact: | Xin jiang <xjiang> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 4.5 | CC: | chezhang, rpattath, whu, xjiang | |
| Target Milestone: | --- | |||
| Target Release: | 4.5.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1831711 (view as bug list) | Environment: | ||
| Last Closed: | 2020-05-06 18:11:34 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: | 1831711 | |||
*** This bug has been marked as a duplicate of bug 1831711 *** |
Description of problem: When we create resources using apps/v1 endpoint in ocp4.2 and we want to migrate them to ocp4.4, the migration shows a warning saying that those resources cannot be migrated because they are incompatible with ocp4.4 because they use extensions/v1beta1 and apps/v1beta2 endpoints. Version-Release number of selected component (if applicable): SOURCE CLUSTER: 4.2 TARGET CLUSTER: 4.4 KONVEYOR 1.2 How reproducible: Always Steps to Reproduce: 1. In source cluster create a deployment using apps/v1 endpoint. For instance: oc new-project hello-openshift cat <<EOF | oc create -f - apiVersion: apps/v1 kind: Deployment metadata: name: hello-openshift spec: replicas: 1 selector: matchLabels: app: hello-openshift template: metadata: labels: app: hello-openshift spec: containers: - name: hello-openshift image: openshift/hello-openshift:latest ports: - containerPort: 80 EOF 2. Create a migration plan to migrate this namespace Actual results: The migration plan says that there are resources in this namespaces that cannot be migrated because they use extensions/v1beta1 and apps/v1beta2 endpoints. Nevertheless, the resource that we have created actually uses apps/v1 endpoint. status: conditions: - category: Warn lastTransitionTime: "2020-05-05T08:39:15Z" message: 'Some namespaces contain GVKs incompatible with destination cluster. See: `incompatibleNamespaces` for details' status: "True" type: GVKsIncompatible - category: Required lastTransitionTime: "2020-05-05T08:39:16Z" message: The `persistentVolumes` list has been updated with discovered PVs. reason: Done status: "True" type: PvsDiscovered - category: Required lastTransitionTime: "2020-05-05T08:39:18Z" message: The storage resources have been created. status: "True" type: StorageEnsured - category: Required lastTransitionTime: "2020-05-05T08:39:20Z" message: The migration registry resources have been created. status: "True" type: RegistriesEnsured - category: Required lastTransitionTime: "2020-05-05T08:39:20Z" message: The migration plan is ready. status: "True" type: Ready incompatibleNamespaces: - gvks: - group: extensions kind: deployments version: v1beta1 - group: extensions kind: replicasets version: v1beta1 - group: apps kind: deployments version: v1beta2 - group: apps kind: replicasets version: v1beta2 - group: apps kind: deployments version: v1beta1 name: hello-openshift Expected results: The namespace and its resources should be migrated without problems. Additional info: when I get the resource, it's true that by default it's shown as v1beta1. But it actually is a v1 deployment $ oc get deployments -o yaml | grep "\- apiVer" - apiVersion: extensions/v1beta1 $ oc get deployments.apps -o yaml | grep "\- apiVer" - apiVersion: apps/v1 This issue may explain what happens in the cluster https://github.com/kubernetes/kubernetes/issues/58131