]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: do not show nvmeof in 'ceph versions' output
authorVallari Agrawal <vallari.agrawal@ibm.com>
Mon, 13 Jan 2025 11:05:27 +0000 (16:35 +0530)
committerAlexander Indenbaum <aindenba@redhat.com>
Wed, 19 Nov 2025 18:41:52 +0000 (20:41 +0200)
NVMeoF gateway version is independent of ceph version
so 'ceph version' shows wrong nvmeof version in output
(i.e. instead of gateway version, it shows Ceph version).
Hence, remove nvmeof in 'ceph versions' output.

To check for gateway version, use 'gw info' command.

Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
(cherry picked from commit 73c935db908d28cf65050535dc80c95a85bf49aa)

src/mon/Monitor.cc

index a57e89e220567ac7aff2c164cdbc8aeb0d1ee26d..13c35aa685df19969dc3456497e690df14359da3 100644 (file)
@@ -4033,7 +4033,7 @@ void Monitor::handle_command(MonOpRequestRef op)
 
     for (auto& p : mgrstatmon()->get_service_map().services) {
       auto &service = p.first;
-      if (ServiceMap::is_normal_ceph_entity(service)) {
+      if (ServiceMap::is_normal_ceph_entity(service) || service == "nvmeof") {
         continue;
       }
       f->open_object_section(service.c_str());