]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: smart data for devices with scsi protocol
authorNizamudeen A <nia@redhat.com>
Sun, 8 May 2022 14:27:34 +0000 (19:57 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 31 May 2022 13:18:18 +0000 (18:48 +0530)
commitd2da65db0af59562119cec77b5a05a4ae42547d7
tree53910bdb78bb12946d013cf510d8c19deda54ffb
parent2cb89c0959883fdabbf0a64706aa821fe54c6cfc
mgr/dashboard: smart data for devices with scsi protocol

In the dashboard, we've been showing smart data for hdd devices with ata
protocol only. Otherwise we show a No Smart Data found error which is
clearly misleading since Smart Data is returned even in the api call.

So this PR is trying to show the smart data for hdd devices
that uses scsi protocol too.

Fixes: https://tracker.ceph.com/issues/55574
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 4fab663983ec34bb9bafa3f8104f2b7a70b58877)
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/fixtures/smart_data_version_1_0_ata_response.json [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/fixtures/smart_data_version_1_0_hdd_response.json [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/fixtures/smart_data_version_1_0_scsi_response.json [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/smart.ts