Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI pipeline only: Error: INSTALLATION FAILED: Internal error occurred: failed calling webhook "mcluster.cnpg.io" #15

Closed
jessebot opened this issue Nov 5, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jessebot
Copy link
Contributor

jessebot commented Nov 5, 2023

New error in GitHub Actions ci step needs investigating, @cloudymax :

Installing chart "cnpg-tenant => (version: \"0.0.9\", path: \"charts/cloudnative-pg-tenant\")"...
Creating namespace "cloudnative-pg-tenant-00mgpjftcp"...
namespace/cloudnative-pg-tenant-00mgpjftcp created
Error: INSTALLATION FAILED: Internal error occurred: failed calling webhook "mcluster.cnpg.io": failed to call webhook: Post "[https://cnpg-webhook-service.cnpg-system.svc:443/mutate-postgresql-cnpg-io-v1-cluster?timeout=10s](https://cnpg-webhook-service.cnpg-system.svc/mutate-postgresql-cnpg-io-v1-cluster?timeout=10s)": dial tcp 10.96.134.203:443: connect: connection refused
========================================================================================================================

Originally posted by @jessebot in #14 (comment)

Not reproducable locally, only in GHA.

@cloudymax
Copy link
Collaborator

cloudymax commented Nov 6, 2023

I tried to do some tests and remediation inside the workflow but I didn't have any luck, I added a comment to an open issue here: cloudnative-pg/cloudnative-pg#3088

As per the original poster, it seems to be some kind of issue with the webhooks not getting set up fast enough

I was unable to recreate this error when testing locally or on a VPS - seems like it may be github related?

@jessebot
Copy link
Contributor Author

jessebot commented Nov 7, 2023

yeah, maybe it's GitHub srevers being slow and old? 🤷

@jessebot jessebot added the bug Something isn't working label Nov 7, 2023
@jessebot jessebot changed the title CI Error: INSTALLATION FAILED: Internal error occurred: failed calling webhook "mcluster.cnpg.io" CI pipeline only: Error: INSTALLATION FAILED: Internal error occurred: failed calling webhook "mcluster.cnpg.io" Nov 7, 2023
@cloudymax
Copy link
Collaborator

Solved by add a "--wait" flag to the operator helm install 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants