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

TestK8sGateway/HttpListenerOptions/TestConfigureNotAttachedHttpListenerOptions flake #10594

Closed
shashankram opened this issue Jan 31, 2025 · 1 comment · Fixed by #10596
Closed
Labels
bug Something isn't working Prioritized Indicating issue prioritized to be worked on in RFE stream

Comments

@shashankram
Copy link

Which tests failed?

Flaky tests fails in CI on an empty PR:

https://github.com/solo-io/gloo/actions/runs/13062361184/job/36451063337?pr=10591

=== RUN   TestK8sGateway/HttpListenerOptions/TestConfigureNotAttachedHttpListenerOptions
gateway.gateway.networking.k8s.io/gw created
httplisteneroption.gateway.solo.io/server-name-missing-gw created
2025-01-30T23:55:13.462474Z	info	expected pod gloo-proxy-gw-7499ff98f5-wthgn to have status Running, but it was Pending
want:
HttpResponse{StatusCode: 200, Body: &matchers.ContainSubstringMatcher{Substr:"Welcome to nginx!", Args:[]interface {}(nil)}, Headers: map[server:envoy], Custom: <nil>}
stdout:

stderr:  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 10.96.186.200:8080...

  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0* Connection timed out after 3001 milliseconds

  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
* Closing connection 0
curl: (28) Connection timed out after 3001 milliseconds
command terminated with exit code 28


want:
HttpResponse{StatusCode: 200, Body: &matchers.ContainSubstringMatcher{Substr:"Welcome to nginx!", Args:[]interface {}(nil)}, Headers: map[server:envoy], Custom: <nil>}
stdout:

stderr:  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 10.96.186.200:8080...

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0* Connection timed out after 3000 milliseconds

  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
* Closing connection 0
curl: (28) Connection timed out after 3000 milliseconds
command terminated with exit code 28


want:
HttpResponse{StatusCode: 200, Body: &matchers.ContainSubstringMatcher{Substr:"Welcome to nginx!", Args:[]interface {}(nil)}, Headers: map[server:envoy], Custom: <nil>}
stdout:

stderr:  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 10.96.186.200:8080...

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0* Connection timed out after 3000 milliseconds

  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
* Closing connection 0
curl: (28) Connection timed out after 3000 milliseconds
command terminated with exit code 28


want:
HttpResponse{StatusCode: 200, Body: &matchers.ContainSubstringMatcher{Substr:"Welcome to nginx!", Args:[]interface {}(nil)}, Headers: map[server:envoy], Custom: <nil>}
stdout:

stderr:  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 10.96.186.200:8080...

  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0* Connection timed out after 3001 milliseconds

  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
* Closing connection 0
curl: (28) Connection timed out after 3001 milliseconds
command terminated with exit code 28


=== NAME  TestK8sGateway
    curl.go:58: 
        Timed out after 20.001s.
        failed to get expected response
        The function passed to Eventually failed at /home/runner/work/gloo/gloo/test/kubernetes/testutils/assertions/curl.go:47 with:
        Unexpected error:
            <*errors.withStack | 0xc0013438f0>: 
            exit status 28
            {
                error: <*exec.ExitError | 0xc001a13b60>{
                    ProcessState: {
                        pid: 62078,
                        status: 7168,
                        rusage: {
                            Utime: {Sec: 0, Usec: 57002},
                            Stime: {Sec: 0, Usec: 9620},
                            Maxrss: 438804,
                            Ixrss: 0,
                            Idrss: 0,
                            Isrss: 0,
                            Minflt: 1702,
                            Majflt: 0,
                            Nswap: 0,
                            Inblock: 0,
                            Oublock: 0,
                            Msgsnd: 0,
                            Msgrcv: 0,
                            Nsignals: 0,
                            Nvcsw: 367,
                            Nivcsw: 27,
                        },
                    },
                    Stderr: nil,
                },
                stack: [0x3eb264e, 0x5815be6, 0x581562a, 0x581521c, 0x8332bab, 0x2bf621d, 0x2bf51f6, 0x563c0ea, 0x563deac, 0x56396c8, 0x833299a, 0x8333046, 0x9083a5d, 0x2bf621d, 0x2bf51f6, 0x3e95712, 0x2c9c6c7, 0x2b13481],
            }
        occurred
gateway.gateway.networking.k8s.io "gw" deleted
httplisteneroption.gateway.solo.io "server-name-missing-gw" deleted
=== NAME  TestK8sGateway/HttpListenerOptions/TestConfigureNotAttachedHttpListenerOptions

Initial Investigation

No response

Additional Information

No response

@ryanrolds ryanrolds self-assigned this Jan 31, 2025
@ryanrolds ryanrolds added Prioritized Indicating issue prioritized to be worked on in RFE stream bug Something isn't working labels Jan 31, 2025
@ryanrolds ryanrolds removed their assignment Jan 31, 2025
@ryanrolds
Copy link

Looks like I accidentally assigned this to me. @davidjumani, do you want to take it as you developed the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Prioritized Indicating issue prioritized to be worked on in RFE stream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants