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

TestServerRunWithSNI Unit Test Fails Intermittently #129356

Open
QuantumEnergyE opened this issue Dec 21, 2024 · 3 comments
Open

TestServerRunWithSNI Unit Test Fails Intermittently #129356

QuantumEnergyE opened this issue Dec 21, 2024 · 3 comments
Labels
area/apiserver kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.

Comments

@QuantumEnergyE
Copy link
Contributor

QuantumEnergyE commented Dec 21, 2024

What happened?

The TestServerRunWithSNI unit test is failing intermittently.

=== NAME  TestServerRunWithSNI/loopback:_bind_to_0.0.0.0_=>_loopback_uses_localhost
    serving_test.go:339: Dialing localhost:43713 as ""
    serving_test.go:372: failed to connect with loopback client: Get "https://0.0.0.0:43713/version?timeout=32s": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
--- FAIL: TestServerRunWithSNI (0.00s)
    --- PASS: TestServerRunWithSNI/one_SNI_and_the_default_cert_with_the_same_name (0.23s)
    --- PASS: TestServerRunWithSNI/cert_with_multiple_alternate_names (0.28s)
    --- PASS: TestServerRunWithSNI/only_one_cert (0.30s)
    --- PASS: TestServerRunWithSNI/loopback:_LoopbackClientServerNameOverride_on_server_cert (0.37s)
    --- PASS: TestServerRunWithSNI/loopback:_LoopbackClientServerNameOverride_not_on_any_cert (0.38s)
    --- PASS: TestServerRunWithSNI/loopback:_LoopbackClientServerNameOverride_on_SNI_cert (0.55s)
    --- PASS: TestServerRunWithSNI/matching_IP_in_SNI_cert_and_the_server_cert (0.55s)
    --- PASS: TestServerRunWithSNI/matching_SNI_cert (0.57s)
    --- PASS: TestServerRunWithSNI/wildcards (0.62s)
    --- FAIL: TestServerRunWithSNI/loopback:_bind_to_0.0.0.0_=>_loopback_uses_localhost (32.69s)
FAIL
I1221 18:33:43.081497   65589 dynamic_serving_content.go:149] "Shutting down controller" name="serving-cert::testdata/localhost__/cert::testdata/localhost__/key"
I1221 18:33:43.081523   65589 tlsconfig.go:258] "Shutting down DynamicServingCertificateController"
I1221 18:33:43.081523   65589 object_count_tracker.go:151] "StorageObjectCountTracker pruner is exiting"
I1221 18:33:43.081567   65589 secure_serving.go:258] Stopped listening on 127.0.0.1:43713
FAIL	k8s.io/apiserver/pkg/server/options	32.722s
FAIL

What did you expect to happen?

The TestServerRunWithSNI test should pass consistently without any errors

How can we reproduce it (as minimally and precisely as possible)?

go test -v k8s.io/apiserver/pkg/server/options -run TestServerRunWithSNI

Anything else we need to know?

No response

Kubernetes version

1.31

Cloud provider

OS version

windows 11

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

@QuantumEnergyE QuantumEnergyE added the kind/bug Categorizes issue or PR as related to a bug. label Dec 21, 2024
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Dec 21, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 21, 2024
@QuantumEnergyE
Copy link
Contributor Author

/sig api-machinery
/area apiserver

@k8s-ci-robot k8s-ci-robot added sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. area/apiserver and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Dec 21, 2024
@QuantumEnergyE
Copy link
Contributor Author

QuantumEnergyE commented Dec 21, 2024

passes when binding to 127.0.0.1.

		"loopback: bind to 0.0.0.0 => loopback uses localhost": {
			Cert: TestCertSpec{
				host: "localhost",
			},
			ExpectedCertIndex:                 -1,
			LoopbackClientBindAddressOverride: "127.0.0.1",
		},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apiserver kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery.
Projects
None yet
Development

No branches or pull requests

2 participants