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: Wait for hubble-relay to be ready before port-forward #25839

Merged

Conversation

learnitall
Copy link
Contributor

@learnitall learnitall commented Jun 1, 2023

This commit adds calls to cilium status --wait between places where hubble is enabled and hubble-relay is port forwarded. Flakes in CI were occurring due to a race conditition, where an attempt to forward the hubble-relay port was occurring before the hubble-relay pod was ready.

Related: cilium/cilium-cli#986

Fixes: #25560

CI: wait for cilium to become ready in conformance-{aks,gke} before port forward relay 

@learnitall learnitall requested review from a team as code owners June 1, 2023 20:18
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 1, 2023
@michi-covalent michi-covalent added the release-note/ci This PR makes changes to the CI. label Jun 2, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 2, 2023
Copy link
Contributor

@viktor-kurchenko viktor-kurchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@learnitall learnitall force-pushed the pr/learnitall/flake-issue-25560 branch from 1632ac4 to 767e8ad Compare June 2, 2023 15:37
This commit adds calls to `cilium status --wait` between places where
hubble is enabled and hubble-relay is port forwarded. Flakes in CI were
occurring due to a race conditition, where an attempt to forward the
hubble-relay port was occurring before the hubble-relay pod was ready.

Related: cilium/cilium-cli#986

Fixes: cilium#25560

Signed-off-by: Ryan Drew <ryan.drew@isovalent.com>
@learnitall learnitall force-pushed the pr/learnitall/flake-issue-25560 branch from 767e8ad to 5ffba4b Compare June 2, 2023 19:26
@aspsk aspsk mentioned this pull request Jun 8, 2023
@aspsk aspsk self-requested a review June 8, 2023 13:02
@aspsk
Copy link
Contributor

aspsk commented Jun 8, 2023

I've tested that this works in a different PR, as I couldn't push to this one (see #26030). So this one is ready to merge.

@aspsk aspsk added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 8, 2023
@dylandreimerink dylandreimerink merged commit 60d063b into cilium:main Jun 8, 2023
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: v1.12: ConformanceKind1.19 unable to forward port because pod is not running. Current status=Pending
5 participants