-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Security
-
ALL
-
SESIBeckenhome 2026-12-01
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Summary
A disaggregated-storage mongod (9.1.0-rc, dsc-release-8 build 8b5c77d9d9c1aec177224774a33534ab937bb35c) got permanently stuck after startup: every new gRPC connection to SLS (CMS and log servers) fails with Failed to create security handshaker, for the life of the process (2.5+ days so far, ~30k errors per 30 minutes, zero successful SLS calls). The process never exits, so the automation agent never restarts it and the node stays in STARTUP2.
"msg":"Unable to connect to cell metadata server.","grpcErrorMessage":"failed to connect to all addresses; last error: UNKNOWN: ipv6:...:27995: Failed to create security handshaker." "id":13347101,"msg":"GetPageServingExtentList stream ended with an error that will not resolve on its own, retrying anyway" "id":11425608,"msg":"Failed to establish connection to log server", ... "Failed to create security handshaker."
Why we think this is an in-process race, not bad TLS material
- In the 2 hours before the failure the same node started mongod 276 times with identical disaggregatedStorageConfig.tlsSettings (mtls_leaf_bundle.pem, mtls_leaf_key.pem, ca-mongodb-signatory.crt). 275 starts connected to SLS fine (GetLogSegmentList successful, 15 PSEs processed) and then crashed on an unrelated KMS error. Only one start failed.
- In the failing process the first SLS call succeeded (main thread GetLogSegmentList successful). Seven ms later every new connection from the background threads (PSEReaders, ClosedSegmentCompletionTracker) failed with the handshaker error, and none ever recovered.
- Nothing changed on the host between the last good start and the bad one (12 s apart): mms-cert-manager reported "Valid cert file already installed" and did not rotate; chef was not running; the agent did not touch TLS files; no SELinux denials, OOM or fd errors in syslog. The mTLS leaf cert is valid until 2026-11-30.
- SLS side shows no CMS problem (per SLS Control Services), and the error is raised client-side before any bytes are sent.
Code pointers
- disagg_storage/encryption/tls_credentials.cpp resolveCredentials: one TlsCredentials backed by FileWatcherCertificateProvider, shared by all SLS channels (SLSConfigManager::_channelCreds).
- disagg_storage/pali/sls_config_manager.cpp: kMaxBoundedRetries exists "to ride out a transient window during client credential initialization"; in this process the window never closed. After startup the PSE/log paths retry forever ("will not resolve on its own, retrying anyway"), so the failure is never surfaced as a crash.
- Possibly related, not in this build:
SERVER-139309(CMS channel manager concurrency) and SERVER-139432 (reuse channel managers; topology fallback when the first CMS is not primary). Every failure in the stuck process starts right after "Cell metadata service is not the primary right now" and a rotation to another CMS; the same message also appears in the good starts.
Asks
- Root-cause the stuck credential state (gRPC version / FileWatcherCertificateProvider behavior, interaction with channel rotation).
- Make it self-healing: e.g. rebuild the channel credentials, or fail the process so the agent restarts it, after repeated handshaker failures past startup.
- Confirm whether
SERVER-139309/ SERVER-139432 are needed on dsc-release-8.
The stuck process is still running and can be inspected (or core-dumped) if useful; please say before anyone restarts it. Details in the developers-only comment and HELP-103606.
- is related to
-
SERVER-133471 Transient gRPC TLS handshake error is non-retryable, crashing mongod at disagg storage startup
-
- Closed
-
-
SERVER-139309 make the CMS channel manager concurrency-safe
-
- Closed
-
- related to
-
SERVER-139309 make the CMS channel manager concurrency-safe
-
- Closed
-