Skip to content

feat: support pre-provisioned eRDMA on Lingjun nodes - #48

Merged
BSWANG merged 1 commit into
AliyunContainerService:mainfrom
Bowser1704:Bowser1704/lingjun-erdma
Nov 24, 2026
Merged

BSWANG merged 1 commit into
AliyunContainerService:mainfrom
Bowser1704:Bowser1704/lingjun-erdma

Conversation

@Bowser1704

@Bowser1704 Bowser1704 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Problem and behavior

Lingjun nodes use their e01-* node name as providerID rather than an ECS instance ID. The controller previously fell back to InternalIP lookup and could not discover their pre-provisioned eRDMA ENIs.

Identify Lingjun nodes by their worker label or e01-* providerID, query existing ENIs using providerID as the cloud instance ID, and create the usual ERdmaDevice CR named after the Kubernetes node. Node names and cloud identities are independent; empty providerID fails before any ENI query. Discovery does not provision new ENIs or query ECS instance capacity/jumbo-frame settings. After discovery, use the existing common ENI reconciliation and Terway exclusion/instance-id tagging; no Lingjun-specific CR label or read-only reconciliation path. Configured ENIs become Ready; abnormal states use ordinary attach/configuration handling. Do not add creator tags to platform-provisioned ENIs. Agent driver setup is unchanged from ECS: reuse installed drivers or install missing ones, and apply profile module configuration. Secondary-NIC configuration/activation is retained.

Driver probing (the existing eRDMA MAC-to-GUID matching), installation and device-plugin allocation are unchanged from main. Generic netdev/GID mapping and BF3/mlx5 compatibility are deferred to a separate change with hardware validation. Ordinary ECS provisioning is unchanged.

Validation

  • Linux Go 1.22 package regression and controller/agent compilation passed on this branch; Helm lint passed. Regression coverage includes lifecycle, providerID readiness/identity separation, ENI selection/pagination, Terway tags and existing all-device allocation.
  • This branch alone: two real Lingjun nodes, ofed profile, automatic eth1 activation, dual-ENI CR Ready, eRDMA-only Pod injection, and cross-node hostNetwork verbs communication on both adapters passed.
  • Earlier combined with the independent SMC fix fix: allow RDMA on kernels built without SMC #46 (not included in this PR): default/compat/ofed passed on two Lingjun nodes and two Lifsea4 ContainerOS nodes. Each profile passed dual-card injection and separate cross-node hostNetwork ib_write_bw checks on erdma_0/1. These hardware tests used the earlier Lingjun driver-setup skip; they do not validate the subsequently restored common driver/module-configuration path on Lingjun. ContainerOS original agent and all canary resources were restored/cleaned up.
  • Combined source also passed business-package regression and linux/amd64 + linux/arm64 compilation. Known invalid-CR TestControllers scaffold was excluded; generic e2e did not run successfully in the Go container because kubectl was unavailable.
  • Current source5a074c0 was subsequently deployed with localERIDiscovery=false: the Controller automatically created two Lingjun ERdmaDevice CRs with two Ready ENIs each, common agent setup reused installed drivers, and Pods requesting both rdma/hca and aliyun/erdma passed separate cross-node hostNetwork write tests on erdma_0/1. Controller, agents and test Pods had zero restarts and test Pods had no warning events. Test Pods were deleted; the restricted two-node component deployment and CRs were retained for inspection. This validates the current Controller simplification and ENI-netdev mapping with ofed profile; it is not a repeat of the earlier three-profile matrix.

Scope and limitations

Requires existing attached HighPerformance ENIs and regular eRDMA on Lingjun. BF3/mlx5 support is deferred; this change keeps existing MAC-to-GUID probing unchanged. HostNetwork verbs on regular eRDMA is the verified communication mode; ordinary Pod-network zero GIDs/RTR failure remains an expected boundary. SMC-R transport, GPU/GDR and RDMA-CM connection establishment are not claimed by these tests. #46 remains a separate change. localERIDiscovery is unchanged and is not needed for this CR-based flow.

@Bowser1704
Bowser1704 force-pushed the Bowser1704/lingjun-erdma branch from 27cd093 to e34866d Compare November 24, 2026 02:16
@Bowser1704
Bowser1704 marked this pull request as ready for review November 24, 2026 02:27
@Bowser1704
Bowser1704 force-pushed the Bowser1704/lingjun-erdma branch from e34866d to 80541f0 Compare November 24, 2026 03:10
@BSWANG
BSWANG merged commit 896b89b into AliyunContainerService:main Nov 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants