ceph-nvmeof
ceph-nvmeof copied to clipboard
Incosistency in displaying listeners on get_subsystems and listener list
listener list
displays all listeners in the subsystems, But get_subsystems
displays only listener from gateway server-address provided.
[root@ceph-sunilkumar-00-7v6gmf-node6 cephuser]# podman run --quiet --rm quay.io/barakda1/nvmeof-cli:1.2.1 --format json --server-address 10.0.208.84 --server-port 5500 listener list -n nqn.2016-06.io.spdk:cnode1
{
"error_message": "Success",
"listeners": [
{
"host_name": "ceph-sunilkumar-00-7v6gmf-node6",
"trtype": "TCP",
"traddr": "10.0.208.84",
"trsvcid": 4420,
"adrfam": "ipv4"
},
{
"host_name": "ceph-sunilkumar-00-7v6gmf-node7",
"trtype": "TCP",
"traddr": "10.0.209.23",
"trsvcid": 4420,
"adrfam": "ipv4"
}
],
"status": 0
}
[root@ceph-sunilkumar-00-7v6gmf-node6 cephuser]# podman run --quiet --rm quay.io/barakda1/nvmeof-cli:1.2.1 --format json --server-address 10.0.209.23 --server-port 5500 listener list -n nqn.2016-06.io.spdk:cnode1
{
"error_message": "Success",
"listeners": [
{
"host_name": "ceph-sunilkumar-00-7v6gmf-node6",
"trtype": "TCP",
"traddr": "10.0.208.84",
"trsvcid": 4420,
"adrfam": "ipv4"
},
{
"host_name": "ceph-sunilkumar-00-7v6gmf-node7",
"trtype": "TCP",
"traddr": "10.0.209.23",
"trsvcid": 4420,
"adrfam": "ipv4"
}
],
"status": 0
}
[root@ceph-sunilkumar-00-7v6gmf-node6 cephuser]# podman run --quiet --rm quay.io/barakda1/nvmeof-cli:1.2.1 --format json --server-address 10.0.209.23 --server-port 5500 get_subsystems
Get subsystems:
{
"subsystems": [
{
"nqn": "nqn.2016-06.io.spdk:cnode1",
"subtype": "NVMe",
"listen_addresses": [
{
"trtype": "TCP",
"adrfam": "IPv4",
"traddr": "10.0.209.23",
"trsvcid": "4420",
"transport": "TCP"
}
],
"serial_number": "Ceph83502925831584",
"model_number": "Ceph bdev Controller",
"max_namespaces": 32,
"min_cntlid": 1,
"max_cntlid": 2040,
"hosts": [],
"allow_any_host": false,
"namespaces": []
}
]
}
+1 this is giving an inconsistent view of the configuration which is nuanced at best