Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incosistency in displaying listeners on get_subsystems and listener list #595

Open
sunilkumarn417 opened this issue Apr 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sunilkumarn417
Copy link

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": []
        }
    ]
}

@sunilkumarn417 sunilkumarn417 added the bug Something isn't working label Apr 18, 2024
@pcuzner
Copy link
Contributor

pcuzner commented Apr 18, 2024

+1 this is giving an inconsistent view of the configuration which is nuanced at best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants