How carv-ics-forth/distort works
DISTORT is a Kubernetes-native NVMe-over-RDMA storage system. An administrator explicitly claims discovered NVMe hardware; the manager binds claims and places partitions, an agent allocates and exports them, and CSI provisions, attaches, and mounts volumes for workloads. Application I/O then travels directly over RDMA to the storage target. The graph preserves the documented kernel/SPDK backends and readiness/ownership resources; some internal wiring is shown only at the documented subsystem level because not all source was excerpted.
Main entry points: distort-manager/main.go Manager runtime · nvmepartition_controller.go Partition placement · partition_manager.go Partition manager · distort-agent/main.go Agent runtime
Components 24
Storage API
- NVMeDevice
api/v1alpha1/nvmedevice_types.go - NVMeDeviceClaim
api/v1alpha1/nvmedeviceclaim_types.go - NVMePartition
api/v1alpha1/nvmepartition_types.go - VolumeAttachment
api/v1alpha1/nvmevolumeattachment_types.go - RDMAStorageNode
api/v1alpha1/rdmastoragenode_types.go
Control plane
- Manager runtime
cmd/distort-manager/main.go - Device inventory
internal/controller/nvmedevice_controller.go - Claim binding
internal/controller/nvmedeviceclaim_controller.go - Partition placement
internal/controller/nvmepartition_controller.go - RDMA readiness
internal/controller/rdmastoragenode_controller.go
Storage agents
- Agent runtime
cmd/distort-agent/main.go - Hardware discovery
internal/agent/nvme_discovery.go - Node reporter
internal/agent/reporter.go - Partition manager
internal/agent/partition_manager.go - Kernel NVMe-oF
internal/agent/plugins/backend_kernel.go - SPDK NVMe-oF
internal/agent/plugins/backend_spdk.go
CSI consumer
- CSI driver
cmd/distort-csi/main.go - Volume lifecycle
internal/csi/controller_server.go - Consumer attachment
internal/csi/controller_attachment.go - Node mount
internal/csi/node_server.go - NVMe initiator
internal/csi/nvme.go
Other components
- Administrator
- Workload PVC
- RDMA network
Connections 31
- Administrator → NVMeDeviceClaim: claims device
README.md - Hardware discovery → NVMeDevice: discovers hardware
README.md - Agent runtime → Hardware discovery: runs discovery
cmd/distort-agent/main.go - Agent runtime → Node reporter: runs reporter
cmd/distort-agent/main.go - Node reporter → RDMAStorageNode: reports readiness
README.md - RDMA readiness → RDMAStorageNode: expires stale status
internal/controller/rdmastoragenode_controller.go - Manager runtime → Device inventory: registers controller
cmd/distort-manager/main.go - Manager runtime → Claim binding: registers controller
cmd/distort-manager/main.go - Manager runtime → Partition placement: registers controller
cmd/distort-manager/main.go - Manager runtime → RDMA readiness: registers controller
- Claim binding → NVMeDeviceClaim: binds claim
README.md - Claim binding → NVMeDevice: updates ownership
internal/controller/nvmedeviceclaim_controller.go - Device inventory → NVMeDevice: updates capacity
internal/controller/nvmedevice_controller.go - Partition placement → NVMeDeviceClaim: checks claim
internal/controller/nvmepartition_controller.go - Partition placement → RDMAStorageNode: checks readiness
internal/controller/nvmepartition_controller.go - Partition placement → NVMePartition: assigns partition
README.md - Workload PVC → CSI driver: requests volume
README.md - CSI driver → Volume lifecycle: serves lifecycle
cmd/distort-csi/main.go - Volume lifecycle → NVMePartition: creates partition
internal/csi/controller_server.go - Partition manager → NVMePartition: reconciles partition
README.md - Agent runtime → Partition manager: runs manager
cmd/distort-agent/main.go - Partition manager → Kernel NVMe-oF: exports via backend
- Partition manager → SPDK NVMe-oF: exports via backend
- Kernel NVMe-oF → RDMA network: exports over
README.md - SPDK NVMe-oF → RDMA network: exports over
README.md - Volume lifecycle → Consumer attachment: publishes volume
internal/csi/controller_attachment.go - Consumer attachment → VolumeAttachment: records ownership
README.md - Consumer attachment → Node mount: provides publish context
- Node mount → NVMe initiator: connects device
README.md - NVMe initiator → RDMA network: sends application I/O
README.md - Node mount → Workload PVC: mounts filesystem
README.md