Skip to content

feat(instance): forward v2 data-engine transport to SPDK create calls - #1616

Draft
abonillabeeche wants to merge 2 commits into
longhorn:masterfrom
abonillabeeche:rdma-transport
Draft

feat(instance): forward v2 data-engine transport to SPDK create calls#1616
abonillabeeche wants to merge 2 commits into
longhorn:masterfrom
abonillabeeche:rdma-transport

Conversation

@abonillabeeche

Copy link
Copy Markdown

Part of longhorn/longhorn#13796. Depends on longhorn/types#121 and longhorn/longhorn-spdk-engine#654.

Forward DataEngineTransport from the imrpc SpdkInstanceSpec through to the spdkrpc engine/replica create calls (new mapper convertIMDataEngineTransportToSPDKDataEngineTransport, zero means TCP). Adds the field to the IM client's InstanceCreateRequest so the manager can select transport declaratively (replaces an earlier env-var stopgap). Build the runtime image with pkgdep.sh --rdma so it ships libibverbs/librdmacm for the RDMA transport. Default behavior unchanged (unset means TCP).

Files: pkg/instance/instance.go, pkg/client/instance.go, package/Dockerfile.

Pass the DataEngineTransport from the imrpc SpdkInstanceSpec through to the
spdkrpc EngineCreate/ReplicaCreate calls (new mapper
convertIMDataEngineTransportToSPDKDataEngineTransport, zero => TCP), so the
manager-selected transport reaches the SPDK layer. Build the SPDK deps with
'pkgdep.sh --rdma' so the runtime image ships libibverbs/librdmacm for the
NVMe-oF RDMA transport. Default behavior unchanged (unset => TCP).

Ref: longhorn/longhorn#13796
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Alejandro Bonilla <abonilla@suse.com>
@abonillabeeche abonillabeeche changed the title instance: forward v2 data-engine transport into SPDK engine/replica create feat(instance): forward v2 data-engine transport to SPDK create calls Aug 20, 2026
Consume the renamed imrpc/spdkrpc TransportType enum and rename the
IM-side field/params and the IM->SPDK conversion helper accordingly.
No behavior change.

Ref: longhorn/longhorn#13796
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Alejandro Bonilla <abonilla@suse.com>
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.

1 participant