open-cluster-management-io / registration-operator

Minimum cluster registration and work
Apache License 2.0
58 stars 58 forks source link

failed to deploy on kind #87

Open RainbowMango opened 4 years ago

RainbowMango commented 4 years ago

What happened: When trying to deploy as per all-in-one. An error raised:

INFO[0005] Waiting for ClusterServiceVersion "open-cluster-management/klusterlet.v0.2.0" to reach 'Succeeded' phase 
INFO[0005]   Waiting for ClusterServiceVersion "open-cluster-management/klusterlet.v0.2.0" to appear 
INFO[0010]   Found ClusterServiceVersion "open-cluster-management/klusterlet.v0.2.0" phase: Pending
FATA[0600] Failed to run operator using OLM: error waiting for CSV to install: timed out waiting for the condition

How to reproduce it (as minimally and precisely as possible):

# kind create cluster --name hub --image=kindest/node:v1.18.0
# git clone https://github.com/RainbowMango/registration-operator.git
# cd registration-operator/
# export KIND_CLUSTER=hub
# make deploy

cc @qiujian16

qiujian16 commented 4 years ago

It is an olm issue that happens intermittently. We could consider upgrading to using operator-sdk and olm, FYI @zhiweiyin318

zhiweiyin318 commented 4 years ago

you can upgrade OLM version manually as workaround before this PR https://github.com/open-cluster-management/registration-operator/pull/88 is merged. https://github.com/open-cluster-management/registration-operator/blob/104b222cbdf9872fcac7372be12bebf5c3af9bd7/Makefile#L93