Repository navigation
mgr/dashboard: Add "connection get_io_statistics" to NVMeoF CLI - #67810
Conversation
There was a problem hiding this comment.
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_statsPUT endpoint (OpenAPI + controller) to enable/disable gateway IO statistics collection. - Add CLI commands
nvmeof connection get_io_statisticsandnvmeof 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. |
There was a problem hiding this comment.
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_statsto 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_haparameter 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. |
There was a problem hiding this comment.
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_statsto enable/disable gateway IO statistics collection. - Add
nvmeof connection get_io_statisticsandnvmeof connection reset_io_statisticsCLI commands with corresponding response models. - Update NVMeoF subsystem creation docs/types (remove
enable_ha, fixno_group_appendto 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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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_statisticsandnvmeof connection reset_io_statisticsCLI 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_appendas boolean; remove legacyenable_hainput).
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. |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
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. |
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.