summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVallari Agrawal <vallari.agrawal@ibm.com>2025-01-13 12:05:27 +0100
committerVallari Agrawal <vallari.agrawal@ibm.com>2025-01-16 06:43:39 +0100
commit73c935db908d28cf65050535dc80c95a85bf49aa (patch)
tree2f6e087863061bb9354d3f01bf67e7164ebfa80b
parentMerge pull request #61000 from MaxKellermann/no_boost (diff)
downloadceph-73c935db908d28cf65050535dc80c95a85bf49aa.tar.xz
ceph-73c935db908d28cf65050535dc80c95a85bf49aa.zip
mon: do not show nvmeof in 'ceph versions' output
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>
-rw-r--r--src/mon/Monitor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc
index 7332ec3edb1..833bdddc71b 100644
--- a/src/mon/Monitor.cc
+++ b/src/mon/Monitor.cc
@@ -4024,7 +4024,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());