8000 [flaky test] `Local install` job fails with `timeout waiting for kubectl port-forward` · Issue #737 · google/ax · GitHub
[go: up one dir, main page]

Skip to content

[flaky test] Local install job fails with timeout waiting for kubectl port-forward #737

Backlog

Description

@yongruilin

The Local install (ax local start) job failed with:

Error: timeout waiting for kubectl port-forward on context "kind-ax-smoke":

It failed in the first ax apply after ax local start reported ready, with every pod Ready. The PR does not touch this path.
https://github.com/google/ax/actions/runs/45292033666/job/138102941639

==> Running a task from localhost:5001/ax-runner@sha256:e88c9de1fca4d993960e110d139eb13fa88398cb42901c82f6a8d8bdd6772fa0...
Error: timeout waiting for kubectl port-forward on context "kind-ax-smoke": 

==> Failed. State of the cluster:
NAMESPACE                          NAME                                             READY   STATUS      RESTARTS      AGE    IP            NODE                     NOMINATED NODE   READINESS GATES
ate-system                         ate-api-server-799d88f774-pfqbh                  2/2     Running     0             53s    10.244.0.15   ax-smoke-control-plane   <none>           <none>
ate-system                         ate-controller-67b666b6d7-9x86n                  1/1     Running     0             53s    10.244.0.8    ax-smoke-control-plane   <none>           <none>
ate-system                         ate-idp-server-c4749559b-v2lqm                   1/1     Running     0             53s    10.244.0.16   ax-smoke-control-plane   <none>           <none>
ate-system                         atelet-kwglb                                     2/2     Running     0             53s    10.244.0.12   ax-smoke-control-plane   <none>           <none>
ate-system                         atenet-egress-7f8995849-7878r                    3/3     Running     0             52s    10.244.0.20   ax-smoke-control-plane   <none>           <none>
ate-system                         atenet-router-5956977448-mwbsd                   2/2     Running     0             53s    10.244.0.17   ax-smoke-control-plane   <none>           <none>
ate-system                         k8s-credential-provider-ff4f985df-wnl6b          1/1     Running     0             52s    10.244.0.19   ax-smoke-control-plane   <none>           <none>
ate-system                         postgres-0                                       2/2     Running     1 (59s ago)   70s    10.244.0.7    ax-smoke-control-plane   <none>           <none>
ate-system                         rustfs-5fb848d4c9-2vjd7                          1/1     Running     0             53s    10.244.0.18   ax-smoke-control-plane   <none>           <none>
ate-system                         rustfs-bucket-init-c2rp6                         0/1     Completed   0             53s    10.244.0.13   ax-smoke-control-plane   <none>           <none>
ate-workers                        ax-workers-557c886bff-l4jph                      1/1     Running     0             30s    10.244.0.21   ax-smoke-control-plane   <none>           <none>
ax-system                          ax-postgres-0                                    1/1     Running     0             27s    10.244.0.23   ax-smoke-control-plane   <none>           <none>
ax-system                          ax-server-c5b55566c-96fr8                        1/1     Running     0             12s    10.244.0.24   ax-smoke-control-plane   <none>           <none>
kube-system                        coredns-589f44dc88-hczdq                         1/1     Running     0             96s    10.244.0.3    ax-smoke-control-plane   <none>           <none>
kube-system                        coredns-589f44dc88-z58ns                         1/1     Running     0             96s    10.244.0.2    ax-smoke-control-plane   <none>           <none>
kube-system                        etcd-ax-smoke-control-plane                      1/1     Running     0             106s   172.18.0.2    ax-smoke-control-plane   <none>           <none>
kube-system                        kindnet-w8g97                                    1/1     Running     0             97s    172.18.0.2    ax-smoke-control-plane   <none>           <none>
kube-system                        kube-apiserver-ax-smoke-control-plane            1/1     Running     0             106s   172.18.0.2    ax-smoke-control-plane   <none>           <none>
kube-system                        kube-controller-manager-ax-smoke-control-plane   1/1     Running     0             106s   172.18.0.2    ax-smoke-control-plane   <none>           <none>
kube-system                        kube-proxy-9pwln                                 1/1     Running     0             97s    172.18.0.2    ax-smoke-control-plane   <none>           <none>
kube-system                        kube-scheduler-ax-smoke-control-plane            1/1     Running     0             106s   172.18.0.2    ax-smoke-control-plane   <none>           <none>
local-path-storage                 local-path-provisioner-855c7b7774-dnlwk          1/1     Running     0             96s    10.244.0.4    ax-smoke-control-plane   <none>           <none>
otel-system                        jaeger-f76d9bc75-rfzgp                           1/1     Running     0             53s    10.244.0.9    ax-smoke-control-plane   <none>           <none>
otel-system                        opentelemetry-collector-8447d4dcb6-tvsln         1/1     Running     0             53s    10.244.0.10   ax-smoke-control-plane   <none>           <none>
otel-system                        prometheus-7c49b8d5b7-sfvwv                      1/1     Running     0             53s    10.244.0.14   ax-smoke-control-plane   <none>           <none>
podcertificate-controller-system   podcertificate-controller-7f674bb75f-r2927       1/1     Running     0             82s    10.244.0.5    ax-smoke-control-plane   <none>           <none>

The CLI gives kubectl port-forward 5 seconds to come up. The tunnel retries errors such as connection refused, but not this timeout (isTransientPortForwardErr in internal/tunnel/tunnel.go), so one slow start fails the command.

Proposal: retry this timeout like the other transient errors.

Activity

  1. yongruilin commented on Nov 24, 2026

    @yongruilin
    CollaboratorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0