Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Get error message "Internal error occurred: failed calling webhook " while restarting cluster but cluster is up after waiting sometime #448

Open
yshashix opened this issue Jul 13, 2021 · 0 comments

Comments

@yshashix
Copy link
Contributor

After rebooting Ubuntu machine , I don't see auto-restart of OISP cluster so when I tried to re-start cluster using command /platform-launcher/util$ sudo bash ./restart-cluster.sh, I receive error like below but while checking pods of webhook, it seems running.

HW: Intel corei7

OS: Ubuntu 18.04
Used with docker username

The error message is as below

mutatingwebhookconfiguration.admissionregistration.k8s.io/cert-manager-webhook created
validatingwebhookconfiguration.admissionregistration.k8s.io/cert-manager-webhook created
Waiting for cert-manager web-hook to come up

Cert-manager Webhook ready! Now applying clusterissuer for self-cert.
Error from server (InternalError): error when creating "../kubernetes/cert-manager/clusterissuer-self-cert.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=30s: context deadline exceeded
Operators installed successfully.
Ready to deploy OISP
ieitank@ieitank:~/platform-launcher/util$

but webhook is applied:
ieitank@ieitank:/platform-launcher/util$ kubectl get po -n cert-manager
NAME READY STATUS RESTARTS AGE
cert-manager-cainjector-789955d9b7-vqx8c 1/1 Running 0 2m47s
cert-manager-579d48dff8-ln7zh 1/1 Running 0 2m47s
cert-manager-webhook-64869c4997-h9l62 1/1 Running 0 2m47s
ieitank@ieitank:
/platform-launcher/util$

Even sometime ./delpoy_operator.sh is not found still message for OISP ready is displayed, which is just misinformation.

after running sudo ./restart-cluster.sh

Set routing between docker and host for K3S
Waiting for traefik to come up
.....................................................
Traefik ready!
./restart-cluster.sh: 49: ./restart-cluster.sh: popd: not found
./restart-cluster.sh: 50: ./restart-cluster.sh: ./deploy_operators.sh: not found
Ready to deploy OISP

Soln:

It might be that script has some message o/p error so need to look in scripts

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

1 participant