]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix NVMeoF API 55685/head
authorErnesto Puerta <epuertat@redhat.com>
Wed, 13 Mar 2024 13:06:10 +0000 (14:06 +0100)
committerNizamudeen A <nia@redhat.com>
Mon, 25 Mar 2024 05:05:03 +0000 (10:35 +0530)
commit3f79e401f3a3c435b4d29f0e1f7d094997b38e99
tree080ed8b73109677d1abdb962de1c11396fa14025
parent58f2eba64fb8a740abb5b5ca892340184abfe6d9
mgr/dashboard: fix NVMeoF API

* Update NVMe-oF gRPC Proto to 1.0.0
* Error handling,
* Missing PATCH for certain namespace ops (resize, set QoS, set balance
  groups),
* Stop bypassing gRPC payloads and validate those in the back-end,
* Fix incorrect HTTP 1.1 semantics for some POST/DELETE and URIs.
* Catch errors/exceptions.
* Clean-up EndpointDoc Params
* Run Black linter.
* Remove most of NVMeoFClient glue code between gRPC and controller.
* Fix namespace delete endpoint by exposing trsvcid
* nvmeof io_stats support

Fixes: https://tracker.ceph.com/issues/64890
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 4adf48998d97f8199bcb86c8d8994bb5989c198a)
14 files changed:
src/pybind/mgr/dashboard/controllers/__init__.py
src/pybind/mgr/dashboard/controllers/_docs.py
src/pybind/mgr/dashboard/controllers/_endpoint.py
src/pybind/mgr/dashboard/controllers/_rest_controller.py
src/pybind/mgr/dashboard/controllers/auth.py
src/pybind/mgr/dashboard/controllers/docs.py
src/pybind/mgr/dashboard/controllers/nvmeof.py
src/pybind/mgr/dashboard/model/nvmeof.py [new file with mode: 0644]
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/requirements.txt
src/pybind/mgr/dashboard/services/exception.py
src/pybind/mgr/dashboard/services/nvmeof_client.py
src/pybind/mgr/dashboard/services/proto/gateway.proto
src/pybind/mgr/dashboard/services/proto/gateway_pb2.py