Repository navigation
test/kv_store: Restart the SDS upstream on the same port - #49128
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change to preserve the SDS upstream port across restarts.
No open issues 🎉
What changed in this PR
This PR stabilizes the KV-store xDS delegate integration test by restarting the SDS upstream on its original port, preserving the authority used by the Google gRPC client and cached secrets.
Changes:
- Capture the SDS upstream’s port before teardown and reuse it on restart.
- Document why retaining the port prevents unrelated listeners from interfering with KV-store fallback.
| File | Description |
|---|---|
contrib/config/test/kv_store_xds_delegate_integration_test.cc |
Reuse the original SDS port on restart and explain the fallback dependency. |
Review effort: Balanced
phlax
force-pushed
the
test-kvstore-sds-port
branch
from
November 11, 2026 23:33
f7ffe45 to
4e2cb1f
Compare
Member
Author
|
@ggreenway ptal - this is a follow-up to #49080 in the same test (the other half of that restart flake). Rebased to main. |
The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
test-kvstore-sds-port
branch
from
November 13, 2026 13:22
4e2cb1f to
66b03f8
Compare
ravenblackx
approved these changes
Nov 13, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
…49128) The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2). Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else. --------- Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit fd22045) Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Google gRPC client dials an address rather than a cluster, and that address is the authority the secret is stored under in the KV store. On restart the test created the SDS upstream on a fresh port but left the SDS config naming the old one, so loading the secret from the KV store depended on the old port refusing the connection. Anything else that had bound it in the meantime accepted the stream instead, SDS was never restored and the test timed out waiting for ssl_context_update_by_sds (xds.kv_store.load_success 1 rather than 2).
Bind the new SDS upstream to the old port: the authority stays the same and the port cannot be taken by anything else.