Skip to content

Commit

Permalink
mon: do not show nvmeof in 'ceph versions' output
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
VallariAg committed Jan 16, 2025
1 parent 1e49516 commit 73c935d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/Monitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 73c935d

Please sign in to comment.