From f6bdd76004df67a12f0b3f19ed8808aef1109eff Mon Sep 17 00:00:00 2001 From: Mike Ng Date: Thu, 7 Jul 2022 03:43:57 -0400 Subject: [PATCH] Add a common OCM setup troubleshooting guide (#51) Signed-off-by: Mike Ng --- troubleshooting/setup-ocm.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 troubleshooting/setup-ocm.md diff --git a/troubleshooting/setup-ocm.md b/troubleshooting/setup-ocm.md new file mode 100644 index 000000000..3799b272e --- /dev/null +++ b/troubleshooting/setup-ocm.md @@ -0,0 +1,16 @@ +# Troubleshooting for setting up OCM + +### I am getting an error about "Error: no CSR to approve for cluster " when running the "clusteradm accept" command. + +On the managed cluster, check the `klusterlet-registration-agent` pod log by using: + +``` +kubectl -n open-cluster-management-agent get pod +kubectl -n open-cluster-management-agent logs pod/klusterlet-registration-agent- # Replace with output from the "get pod" command. +``` + +If you are using `KinD` clusters to setup OCM, ensure you use the `--force-internal-endpoint-lookup` flag when you join the cluster using the `clusteradm join` command. For example: + +``` + clusteradm join --force-internal-endpoint-lookup --wait --hub-token --hub-apiserver --cluster-name +```