Repository navigation
[fix] Support non-root Doris startup and deployment preflight - #568
morningman wants to merge 4 commits into
Conversation
Share the system init policy between BE, CN, Compute and Preflight. Keep legacy startup behavior and allow supported identities to use prepared nodes without skipping startup checks. Align the soft nofile check with the Doris 4.1.5 startup script and verify that selecting prepared nodes removes the old default init from the StatefulSet.
|
Thanks for working on this PR — especially the To keep our CRD surface minimal and avoid overlapping semantics between this PR and #560, here is a proposed coordination plan: 1. Merge order & CRD alignmentLet's merge #568 first, and then I will rebase and refactor #560 on top of it:
2. A few items to confirm before merging #568I noticed a few small issues in
Let me know if you'd like to fix these in #568 before merging, or if you'd prefer to merge #568 as-is and have me address them together when updating (Also a quick note: #563 from the community addresses #562 as well — let's make sure we coordinate or credit it properly when landing #568.) Does this plan look good to you? |
Integrate PR apache#568 with apache#560 while preserving legacy StatefulSet adoption and root workload groups. Resolve source and target identities independently and retain the verified migration image across retries.
Summary
vm.max_map_countand checks for active swap before trying to disable it.systemInitModefor BE, CN, and disaggregated Compute.Operatoruses the privileged default init andNodePrepareduses administrator-prepared nodes. Both explicit modes keep BE startup checks enabled. The existingskipDefaultSystemInit: truepath still removes the init and setsSKIP_CHECK_ULIMIT=true.dorisctl preflightwith API-server dry-run, optional node and network probes, disposable PVC probes, and JSON output. Probes preserve resource quota inputs, verify runtime identity and storage evidence, and clean up temporary objects using their original UIDs. Unresolved Operator or image capabilities are reported as pending.Upgrade and release impact
This PR establishes the node-init and Preflight baseline for #560. Existing root deployments can keep their startup settings when updating the Operator and CRDs. Kubernetes namespaces that prohibit privileged init containers can use
NodePreparedonce the node settings and BE startup limits are in place. Existing PVC migration, image-identity-aware template generation, and the optional CPU helper are covered by #560.Verification
go test -count=1 ./...passed onbc8f292with Go 1.23.6 and Kubernetes 1.26.1 envtest assets.