Skip to content

mgr/dashboard: Add "connection get_io_statistics" to NVMeoF CLI - #67810

Merged
gbregman merged 1 commit into
ceph:mainfrom
gbregman:main
Mar 17, 2026
Merged

gbregman merged 1 commit into
ceph:mainfrom
gbregman:main

Conversation

@gbregman

@gbregman gbregman commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

mgr/dashboard: Add "connection get_io_statistics" to NVMeoF CLI

Fixes: https://tracker.ceph.com/issues/74964

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds NVMe-oF IO statistics support to the Dashboard’s NVMeoF integration by exposing a gateway IO-stats toggle endpoint and introducing CLI commands to fetch/reset per-connection IO statistics.

Changes:

  • Add /api/nvmeof/gateway/io_stats PUT endpoint (OpenAPI + controller) to enable/disable gateway IO statistics collection.
  • Add CLI commands nvmeof connection get_io_statistics and nvmeof connection reset_io_statistics.
  • Extend NVMeoF models with gateway info fields and connection IO-statistics structures.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/pybind/mgr/dashboard/openapi.yaml Documents new gateway IO-stats toggle endpoint; also updates subsystem create schema.
src/pybind/mgr/dashboard/model/nvmeof.py Adds model types for gateway info fields and nested connection IO statistics payloads.
src/pybind/mgr/dashboard/controllers/nvmeof.py Implements gateway IO-stats toggle endpoint and adds connection IO-statistics CLI commands; modifies subsystem creation behavior.

Comment thread src/pybind/mgr/dashboard/openapi.yaml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds NVMe-oF IO statistics capabilities to the Dashboard NVMeoF CLI/REST surface, enabling users to toggle gateway-side IO stats collection and retrieve/reset per-connection IO statistics.

Changes:

  • Add REST endpoint /api/nvmeof/gateway/io_stats to enable/disable gateway IO statistics collection.
  • Add NVMeoF CLI commands to get/reset per-connection IO statistics and introduce corresponding nested result models.
  • Remove the long-unused enable_ha parameter from NVMeoF subsystem creation API/docs and hard-code HA enabled.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/pybind/mgr/dashboard/openapi.yaml Documents the new gateway IO stats endpoint and removes enable_ha from subsystem create schema.
src/pybind/mgr/dashboard/model/nvmeof.py Adds GatewayInfo fields and new nested NamedTuples for connection IO statistics payloads.
src/pybind/mgr/dashboard/controllers/nvmeof.py Implements the gateway IO stats mode toggle endpoint and adds connection get/reset IO stats CLI commands; removes enable_ha parameter from subsystem creation handler.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds NVMe-oF gateway IO statistics enable/disable support to the Dashboard API and exposes per-connection IO statistics via the NVMeoF CLI, aligning models and OpenAPI with the new functionality.

Changes:

  • Add PUT /api/nvmeof/gateway/io_stats to enable/disable gateway IO statistics collection.
  • Add nvmeof connection get_io_statistics and nvmeof connection reset_io_statistics CLI commands with corresponding response models.
  • Update NVMeoF subsystem creation docs/types (remove enable_ha, fix no_group_append to boolean) and extend gateway info model fields.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/pybind/mgr/dashboard/openapi.yaml Documents new gateway IO stats endpoint; updates subsystem create schema (removes enable_ha, fixes no_group_append type).
src/pybind/mgr/dashboard/model/nvmeof.py Adds NamedTuple models for connection IO statistics; extends GatewayInfo with new fields.
src/pybind/mgr/dashboard/controllers/nvmeof.py Implements gateway IO stats mode endpoint and adds new NVMeoF connection IO statistics CLI commands; adjusts subsystem creation params.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds NVMe-oF IO statistics support to the dashboard NVMeoF CLI surface by introducing connection IO statistics commands and the associated response models, plus a gateway API endpoint to enable/disable IO stats collection.

Changes:

  • Add /api/nvmeof/gateway/io_stats (PUT) to enable/disable IO statistics collection on the gateway.
  • Introduce new NVMe-oF models for connection IO statistics (latency groups/buckets).
  • Add NVMeoF CLI commands to get/reset per-connection IO statistics.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/pybind/mgr/dashboard/openapi.yaml Adds OpenAPI definition for the new gateway IO stats toggle endpoint; aligns schema types with controller params.
src/pybind/mgr/dashboard/model/nvmeof.py Adds new NamedTuple models representing connection IO statistics and extends GatewayInfo with IO stats-related fields.
src/pybind/mgr/dashboard/controllers/nvmeof.py Adds the gateway set_io_stats_mode endpoint and new CLI commands for connection IO statistics get/reset.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the NVMe-oF dashboard integration by exposing IO-statistics related functionality via the NVMeoF CLI (and adding the corresponding gateway REST endpoint + OpenAPI spec), aligning the dashboard-side protobuf models with the gateway’s IO stats RPCs.

Changes:

  • Add a gateway REST endpoint (PUT /api/nvmeof/gateway/io_stats) to enable/disable IO statistics collection.
  • Add new NVMeoF CLI commands to fetch/reset per-connection IO statistics (nvmeof connection get_io_statistics / reset_io_statistics).
  • Extend NVMeoF dashboard models/OpenAPI to reflect the new IO stats structures and correct parameter typing.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/pybind/mgr/dashboard/openapi.yaml Adds the /api/nvmeof/gateway/io_stats endpoint schema and updates NVMeoF subsystem request parameter typing.
src/pybind/mgr/dashboard/model/nvmeof.py Introduces NamedTuple models for connection IO statistics payloads and extends gateway info fields.
src/pybind/mgr/dashboard/controllers/nvmeof.py Wires the new gateway IO stats mode endpoint and adds CLI commands to get/reset connection IO statistics via gRPC.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds NVMeoF connection IO-statistics support to the dashboard NVMeoF CLI, including the ability to retrieve/reset per-connection stats and a gateway API to enable/disable stats collection.

Changes:

  • Add nvmeof connection get_io_statistics and nvmeof connection reset_io_statistics CLI commands backed by the gateway gRPC API.
  • Add a gateway REST/CLI endpoint to enable/disable IO statistics collection (/api/nvmeof/gateway/io_stats).
  • Extend the NVMeoF dashboard models/OpenAPI to reflect new fields and align parameter typing (e.g., no_group_append as boolean; remove legacy enable_ha input).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/pybind/mgr/dashboard/openapi.yaml Documents the new gateway IO-stats toggle endpoint and updates subsystem-create schema (removes enable_ha, fixes no_group_append type).
src/pybind/mgr/dashboard/model/nvmeof.py Adds models for connection IO statistics payload (latency groups/buckets) and new gateway info fields.
src/pybind/mgr/dashboard/controllers/nvmeof.py Implements gateway IO-stats toggle endpoint and adds CLI commands to get/reset connection IO statistics.

@Hezko Hezko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Mar 16, 2026
@gbregman
gbregman merged commit 1bc1d3b into ceph:main Mar 17, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Mar 17, 2026
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 1bc1d3b22ebea4fe1499e72bb3c7cf26623abd38^..1bc1d3b22ebea4fe1499e72bb3c7cf26623abd38

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/23181880079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants