Skip to content

Add sleep before creating Kueue resources #610

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

Conversation

jiripetrlik
Copy link
Contributor

Fixes following errors. Service for webhook is not available immediately: error appears Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "mresourceflavor.kb.io": failed to call webhook: Post "https://kueue-webhook-service.kueue-system.svc:443/mutate-kueue-x-k8s-io-v1beta1-resourceflavor?timeout=10s": dial tcp 10.96.115.38:443: connect: connection refused

Fixes following errors. Service for webhook is not available immediately:
error appears Error from server (InternalError): error when creating "STDIN":
Internal error occurred: failed calling webhook "mresourceflavor.kb.io": failed to call webhook:
Post "https://kueue-webhook-service.kueue-system.svc:443/mutate-kueue-x-k8s-io-v1beta1-resourceflavor?timeout=10s":
dial tcp 10.96.115.38:443: connect: connection refused
@openshift-ci openshift-ci bot requested review from dimakis and tedhtchang August 27, 2024 08:37
@jiripetrlik jiripetrlik requested review from sutaakar and removed request for tedhtchang and dimakis August 27, 2024 08:37
Copy link

openshift-ci bot commented Aug 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sutaakar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 6808761 into project-codeflare:main Aug 27, 2024
6 checks passed
@dgrove-oss
Copy link
Collaborator

This is how we handle this in the appwrapper CI. Kueue pod won't report ready until the webhooks are up.

https://github.com/project-codeflare/appwrapper/blob/main/hack/deploy-kueue.sh#L22-L28

@sutaakar
Copy link
Contributor

We use the same code :)
Though for some reason occasionally we get webhook error.

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

Successfully merging this pull request may close these issues.

3 participants