open-cluster-management-io / community

open-cluster-management governance material.
https://open-cluster-management.io
Apache License 2.0
61 stars 23 forks source link

Import managed cluster failed cause by version conflict on OKD #42

Open xuezhaojun opened 3 years ago

xuezhaojun commented 3 years ago

After processed these steps:

Step1 : Install community operator from OperatorHub.io Step2 : Create a Cluster Manager on console Step3 : Install the managedcluster-import-controller from source files Step4 : Manually register a cluster

We got error:

E0526 05:51:18.661381       1 lease_controller.go:127] unable to get cluster lease "managed-cluster-lease" on hub cluster: leases.coordination.k8s.io "managed-cluster-lease" is forbidden: User "system:open-cluster-management:cluster1:cv6xm" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "cluster1"

We fixed it by change all images version in the import.yaml from "latest" to "0.0.3" at Step4

skeeey commented 3 years ago

This because hub is 0.0.3 (2.2), but add-on is latest (2.3), we cannot support to use a low version hub to work with high version add-on (the low version add-on can be worked with high version hub)

qiujian16 commented 3 years ago

/kind bug