sodafoundation / delfin

delfin is the SODA Infrastructure Manager project which provides unified, intelligent and scalable resource management, alert and performance monitoring
https://sodafoundation.io/
Apache License 2.0
202 stars 354 forks source link

Unsupported disk attribute for Huawei Oceanstor #1019

Open te-koyanagi opened 8 months ago

te-koyanagi commented 8 months ago

Issue/Feature Description: Disk type should be "NVMe SSD" but "unknown".

Why this issue to fixed / feature is needed(give scenarios or use cases): Disk type is a basic attribute to manage storage system. It is better to be supported.

How to reproduce, in case of a bug: Target Storage: Huawei Oceanstor Dorado6000 V3 V300R002C10 soda-delfin-test-setup-oceanstor

API Call (physical_type: "unknown"):

curl -s -X GET http://192.168.231.101:31000/v1/disks
{
  "disks": [
    {
      "created_at": "2024-01-26T04:48:42.711474",
      "updated_at": null,
      "id": "36be94b8-f87f-4d30-b8f0-3682b421d7ae",
      "native_disk_id": "100",
      "name": "HSSD-D6D23DL1T9N:032VUC10K1000415",
      "physical_type": "unknown",
      "logical_type": "member",
      "status": "normal",
      "location": "DAE020.4",
      "storage_id": "db6e9a64-fc7c-4c10-a60b-a17abb7fabcf",
      "native_disk_group_id": null,
      "serial_number": "032VUC10K1000415",
      "manufacturer": "HUAWEI",
      "model": "HSSD-D6D23DL1T9N",
      "firmware": "1035",
      "speed": 0,
      "capacity": 1919394971520,
      "health_score": 255
    }
  ]
}

Oceanstor management console (Type: NVMe SSD): soda-delfin-test-disk-1

Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)

te-koyanagi commented 8 months ago

See the following document for the test configuration: https://docs.google.com/document/d/1WesXmZV0eRDgG2cjg2myqd5BK1t-Eg36O0IzkA6BTto/edit?usp=sharing