Project

General

Profile

Bug #62705

[Usability] Provide nvmeof-cli for configuring nvmeof targets

Added by Rahul Lepakshi 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Currenlty,

To configure - create/get/delete nvmeof GW components like bdevs, namesapces, subsystem we have

 "podman run -it quay.io/ceph/nvmeof-cli:0.0.2 --server-address <your node IP> --server-port 5500 <create_bdev/subsystem/namespace> <parameters>" command.

Observations-

[root@ceph-nvmf1-g4htpa-node5 cephuser]# podman ps -a
CONTAINER ID  IMAGE                                                                                              COMMAND               CREATED       STATUS                   PORTS       NAMES
fc5d58cd3126  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n client.ceph-ex...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-ceph-exporter-ceph-nvmf1-g4htpa-node5
25fb82b920b8  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n client.crash.c...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-crash-ceph-nvmf1-g4htpa-node5
97ea7ab06f47  quay.io/prometheus/node-exporter:v1.5.0                                                            --no-collector.ti...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-node-exporter-ceph-nvmf1-g4htpa-node5
efbd08b46cc6  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n mon.ceph-nvmf1...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-mon-ceph-nvmf1-g4htpa-node5
f4a89da42bc1  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.11 -f --se...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-11
3d5d746eef4d  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.2 -f --set...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-2
fcdb5834de37  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.5 -f --set...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-5
cdf570362466  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.8 -f --set...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-8
11ce8e74fef8  quay.io/ceph/nvmeof:0.0.3                                                                          -c /src/ceph-nvme...  4 days ago    Up 4 days                            ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-nvmeof-rbd-ceph-nvmf1-g4htpa-node5-mhziep
452cab0f8d74  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  4 days ago    Exited (0) 4 days ago                admiring_chaum
a27e50632aa2  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago  Exited (0) 26 hours ago              confident_hamilton
d7f80d07d8d0  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago  Exited (2) 26 hours ago              mystifying_moore
0ced32ce1808  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago  Exited (2) 26 hours ago              peaceful_cray
f51633a5edf6  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago  Exited (2) 26 hours ago              focused_cori
533cd171b118  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago  Exited (2) 26 hours ago              awesome_rosalind
f5681ffeb6b7  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago  Exited (0) 26 hours ago              stupefied_heisenberg
b7d06fa1e74d  quay.io/ceph/nvmeof-cli:0.0.2                                                                      bash                  26 hours ago  Exited (2) 26 hours ago              quirky_swirles
cb28444fa052  quay.io/ceph/nvmeof-cli:0.0.2                                                                                            25 hours ago  Exited (0) 25 hours ago              optimistic_maxwell
3357d7f48b1e  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  25 hours ago  Exited (0) 25 hours ago              distracted_bohr
0dc6d13bfb21  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  24 hours ago  Exited (0) 24 hours ago              laughing_black
b92f999edeb4  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  21 hours ago  Exited (0) 21 hours ago              xenodochial_lovelace
301d3917f0df  quay.io/ceph/nvmeof-cli:0.0.2                                                                      sh                    21 hours ago  Exited (2) 21 hours ago              agitated_wiles

[root@ceph-nvmf1-g4htpa-node5 cephuser]# podman run -it quay.io/ceph/nvmeof-cli:0.0.2 --server-address 10.0.209.219 --server-port 5500 get_subsystems
INFO:__main__:Get subsystems:
[
    {
        "nqn": "nqn.2014-08.org.nvmexpress.discovery",
        "subtype": "Discovery",
        "listen_addresses": [],
        "allow_any_host": true,
        "hosts": []
    }
]

[root@ceph-nvmf1-g4htpa-node5 cephuser]# podman ps -a
CONTAINER ID  IMAGE                                                                                              COMMAND               CREATED        STATUS                    PORTS       NAMES
fc5d58cd3126  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n client.ceph-ex...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-ceph-exporter-ceph-nvmf1-g4htpa-node5
25fb82b920b8  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n client.crash.c...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-crash-ceph-nvmf1-g4htpa-node5
97ea7ab06f47  quay.io/prometheus/node-exporter:v1.5.0                                                            --no-collector.ti...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-node-exporter-ceph-nvmf1-g4htpa-node5
efbd08b46cc6  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n mon.ceph-nvmf1...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-mon-ceph-nvmf1-g4htpa-node5
f4a89da42bc1  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.11 -f --se...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-11
3d5d746eef4d  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.2 -f --set...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-2
fcdb5834de37  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.5 -f --set...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-5
cdf570362466  quay.ceph.io/ceph-ci/ceph@sha256:ef95986b4a25d23ccb704e8d545ae53aa01b5b3da26e5b4281dbbb19eefeca33  -n osd.8 -f --set...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-osd-8
11ce8e74fef8  quay.io/ceph/nvmeof:0.0.3                                                                          -c /src/ceph-nvme...  4 days ago     Up 4 days                             ceph-aa861556-47ef-11ee-8482-fa163e8eb3a6-nvmeof-rbd-ceph-nvmf1-g4htpa-node5-mhziep
452cab0f8d74  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  4 days ago     Exited (0) 4 days ago                 admiring_chaum
a27e50632aa2  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago   Exited (0) 26 hours ago               confident_hamilton
d7f80d07d8d0  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago   Exited (2) 26 hours ago               mystifying_moore
0ced32ce1808  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago   Exited (2) 26 hours ago               peaceful_cray
f51633a5edf6  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago   Exited (2) 26 hours ago               focused_cori
533cd171b118  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago   Exited (2) 26 hours ago               awesome_rosalind
f5681ffeb6b7  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  26 hours ago   Exited (0) 26 hours ago               stupefied_heisenberg
b7d06fa1e74d  quay.io/ceph/nvmeof-cli:0.0.2                                                                      bash                  26 hours ago   Exited (2) 26 hours ago               quirky_swirles
cb28444fa052  quay.io/ceph/nvmeof-cli:0.0.2                                                                                            25 hours ago   Exited (0) 25 hours ago               optimistic_maxwell
3357d7f48b1e  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  25 hours ago   Exited (0) 25 hours ago               distracted_bohr
0dc6d13bfb21  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  24 hours ago   Exited (0) 24 hours ago               laughing_black
b92f999edeb4  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  21 hours ago   Exited (0) 21 hours ago               xenodochial_lovelace
301d3917f0df  quay.io/ceph/nvmeof-cli:0.0.2                                                                      sh                    21 hours ago   Exited (2) 21 hours ago               agitated_wiles
f251919c97d2  quay.io/ceph/nvmeof-cli:0.0.2                                                                      --server-address ...  2 seconds ago  Exited (0) 2 seconds ago              competent_varahamihira

From usability perspective, will we be getting nvme-of cli to configure all these instead of "podman run -it quay.io/ceph/nvmeof-cli:0.0.2"? may be as in ISCSI - https://docs.ceph.com/en/latest/rbd/iscsi-target-cli/

Also available in: Atom PDF