Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

failed to init ca cert, Get "https://--v=2/api/v1/namespaces/kube-public/configmaps/cluster-info" #26

Open
betterxu opened this issue Apr 1, 2022 · 6 comments

Comments

@betterxu
Copy link

betterxu commented Apr 1, 2022

Which jobs are failing: install yurt-hub

Which test(s) are failing: install yurt-hub

Since when has it been failing: install yurt-hub

Testgrid link:

Reason for failure:

I0401 06:58:25.053898 1 start.go:84] 1. register cert managers
I0401 06:58:25.053927 1 certificate.go:60] Registered certificate manager hubself
I0401 06:58:25.053937 1 start.go:89] 2. create cert manager with hubself mode
I0401 06:58:25.053968 1 cert_mgr.go:155] clean up any stale files
I0401 06:58:25.054028 1 cert_mgr.go:264] /var/lib/yurthub/pki/ca.crt file not exists, so create it
E0401 06:58:25.055571 1 cert_mgr.go:286] failed to get cluster-info configmap, Get "https://--v=2/api/v1/namespaces/kube-public/configmaps/cluster-info": dial tcp: lookup --v=2: no such host
E0401 06:58:25.055612 1 cert_mgr.go:167] failed to init ca cert, Get "https://--v=2/api/v1/namespaces/kube-public/configmaps/cluster-info": dial tcp: lookup --v=2: no such host

Anything else we need to know:

in my /etc/kubernetes dir have kubelet.conf file ,but yurt-hub pod didn't get apiserveraddress

@betterxu
Copy link
Author

betterxu commented Apr 1, 2022

还有这个资源/api/v1/namespaces/kube-public/configmaps/cluster-info我的集群没有,因为是自建集群,通过调查只有kubeadm部署的集群才有这个,难道只支持kubeadm部署的集群吗

@rambohe-ch
Copy link
Member

@betterxu Thanks for raising issue. It's looks no kube-apiserver address has been set for yuthub, and @SataQiu do you have any comments?

@betterxu
Copy link
Author

betterxu commented Apr 1, 2022

@betterxu Thanks for raising issue. It's looks no kube-apiserver address has been set for yuthub, and @SataQiu do you have any comments?

in my /etc/kubernetes dir have kubelet.conf file ,but yurt-hub pod didn't get apiserveraddress

@SataQiu
Copy link
Member

SataQiu commented Apr 2, 2022

@betterxu Can you post the operator agent's log?

And can you copy the cluster kubeconfig to the edge node, and then run the command:

/var/tmp/edgectl convert --kubeconfig=<cluster kubeconfig>  --node-name=<edge node name> --node-type=EdgeNode --v=2

@betterxu
Copy link
Author

betterxu commented Apr 6, 2022

@betterxu Can you post the operator agent's log?

And can you copy the cluster kubeconfig to the edge node, and then run the command:

/var/tmp/edgectl convert --kubeconfig=<cluster kubeconfig>  --node-name=<edge node name> --node-type=EdgeNode --v=2

I use your order in cloud node,have this error
failed to convert/revert node, yurtclusters.operator.openyurt.io "cluster" is forbidden: User "system:node:XXXXXX" cannot get resource "yurtclusters" in API group "operator.openyurt.io" at the cluster scope

@SataQiu
Copy link
Member

SataQiu commented Apr 6, 2022

Did you use the correct kubeconfig? @betterxu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants