opiproject / opi-spdk-bridge

OPI Storage gRPC to SPDK json-rpc bridge
Apache License 2.0
8 stars 13 forks source link

`NVMfRemoteControllerConnect` doesn't return list of created bdevs #12

Open glimchb opened 2 years ago

glimchb commented 2 years ago

also can't get them via

docker run --network=opi-spdk-bridge_opi --rm -it namely/grpc-cli call --json_input --json_output opi-spdk-server:50051 NVMfRemoteControllerList "{}"
connecting to opi-spdk-server:50051
{
 "ctrl": [
  {
   "subnqn": "OpiNvme12"
  }
 ]
}
Rpc succeeded with OK status

so I have no idea how to call

docker run --network=host --rm -it namely/grpc-cli call --json_input --json_output 127.0.0.1:50051 NVMeNamespaceCreate "{'namespace' : {'subsystem_id' : 'nqn.2016-06.io.spdk:cnode1' , 'bdev' : 'OpiNvme12n7981' } }"

since n7981 is unknown...

glimchb commented 2 years ago

temp workaround is to use

docker run --network=opi-spdk-bridge_opi --rm -it namely/grpc-cli call --json_input --json_output opi-spdk-server:50051 NullDebugList "{}"
glimchb commented 1 year ago

consider using https://grpc.io/docs/languages/go/basics/#server-side-streaming-rpc

glimchb commented 1 year ago

maybe create NVMfRemoteNamespace objects per output of the bdev_nvme_attach_controller call...