Bug 1776120

Summary: Reconcile failed: [no matches for kind "ImageStream" in version "image.openshift.io/v1"]. See controller logs for details
Product: OpenShift Container Platform Reporter: Daein Park <dapark>
Component: Migration ToolingAssignee: Scott Seago <sseago>
Status: CLOSED WONTFIX QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: jmatthew
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1782318 (view as bug list) Environment:
Last Closed: 2019-12-12 14:15:15 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: 1782318    
Bug Blocks:    

Description Daein Park 2019-11-25 07:41:52 UTC
Description of problem:

When you add Plan to migrate resources from OCP3.11 to OCP4.2, the following messages are shown.

~~~
Reconcile failed: [no matches for kind "ImageStream" in version "image.openshift.io/v1"]. See controller logs for details.
~~~

* migration-controller pod logs on OCP4.2
~~~
{"level":"error","ts":1574331839.0289147,"logger":"plan|2p6bk","msg":"","error":"no matches for kind \"ImageStream\" in version \"image.openshift.io/v1\"","stacktrace":"github.com/fusor/mig-controller/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/fusor/mig-controller/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/fusor/mig-controller/pkg/logging.Logger.Error\n\t/go/src/github.com/fusor/mig-controller/pkg/logging/logger.go:64\ngithub.com/fusor/mig-controller/pkg/logging.Logger.Trace\n\t/go/src/github.com/fusor/mig-controller/pkg/logging/logger.go:70\ngithub.com/fusor/mig-controller/pkg/controller/migplan.ReconcileMigPlan.ensureRegistryImageStream\n\t/go/src/github.com/fusor/mig-controller/pkg/controller/migplan/registry.go:127\ngithub.com/fusor/mig-controller/pkg/controller/migplan.ReconcileMigPlan.ensureMigRegistries\n\t/go/src/github.com/fusor/mig-controller/pkg/controller/migplan/registry.go:52\ngithub.com/fusor/mig-controller/pkg/controller/migplan.(*ReconcileMigPlan).Reconcile\n\t/go/src/github.com/fusor/mig-controller/pkg/controller/migplan/migplan_controller.go:239\ngithub.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"level":"error","ts":1574331839.0424595,"logger":"plan|l7nsb","msg":"","error":"no matches for kind \"DeploymentConfig\" in version \"apps.openshift.io/v1\"","stacktrace":"github.com/fusor/mig-controller/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/fusor/mig-controller/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/fusor/mig-controller/pkg/logging.Logger.Error\n\t/go/src/github.com/fusor/mig-controller/pkg/logging/logger.go:64\ngithub.com/fusor/mig-controller/pkg/logging.Logger.Trace\n\t/go/src/github.com/fusor/mig-controller/pkg/logging/logger.go:70\ngithub.com/fusor/mig-controller/pkg/controller/migplan.(*ReconcileMigPlan).ensureClosed\n\t/go/src/github.com/fusor/mig-controller/pkg/controller/migplan/migplan_controller.go:295\ngithub.com/fusor/mig-controller/pkg/controller/migplan.(*ReconcileMigPlan).handleClosed\n\t/go/src/github.com/fusor/mig-controller/pkg/controller/migplan/migplan_controller.go:281\ngithub.com/fusor/mig-controller/pkg/controller/migplan.(*ReconcileMigPlan).Reconcile\n\t/go/src/github.com/fusor/mig-controller/pkg/controller/migplan/migplan_controller.go:191\ngithub.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/fusor/mig-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/fusor/mig-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
~~~


Version-Release number of selected component (if applicable):

* OCP versions:
  - Source cluster: OCP3.11
  - Target cluster: OCP4.2.0

* CAM
  - rhcam-1-0

How reproducible:

CU said this issue has been started to happen after stopping both cluster for 1 day and start both ones again.

1. Stopped source and target clusters for 1 day.

2. The connection failure with following messages and you should add again a source cluster with service account token.

~~~
Connection failed. Message: "Test connect failed: Get https://console.ocp.example.com:8443/api?timeout=5s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)", Reason: "ConnectFailed"
~~~

3. After adding a source cluster successfully again, when you add "Plan" to migrate, the error message is shown in WEB UI.

~~~
Reconcile failed: [no matches for kind "ImageStream" in version "image.openshift.io/v1"]. See controller logs for details.
~~~

Steps to Reproduce:
1.
2.
3.

Actual results:

Failed to add "Plan" to migrate a namespace.

Expected results:

Succeed to add "Plan" and to migrate a namespace from OCP3.11 to OCP4.2.


Additional info:

Comment 2 John Matthews 2019-12-12 14:15:15 UTC
This issue will not be fixed in time for our 1.0.1 release, it's an intermittent issue devs have seen but we lack info on reproducing.
Plan is to leave this open and aligned to 1.2.0 release.

I am closing this specific BZ as it was a clone to track for the z-stream release of 1.0.1.
Will leave 1782318 open and align to 4.4.0 (our 1.2.0) release.