opencomputeproject / HWMgmt-DeviceMgr-DeviceManager

Device Manager collects device data and notifications from each device, and make the data available on a predetermined output bus for consumers.
Apache License 2.0
23 stars 12 forks source link

Missing Manager resource, after discovering BMC. #77

Open ehaligow opened 1 month ago

ehaligow commented 1 month ago

After adding DeviceMgr as plugin, the discovered System has Manager resource, that does not exist in db.

intel@ubuntu:~$ curl -k -u 'admin:D3v1ceMgr' https://127.0.0.1:45000/redfish/v1/Systems/7c6068a1-5152-4510-8e8d-2ebc7592116c.1 | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5630    0  5630    0     0  17164      0 --:--:-- --:--:-- --:--:-- 17164
{
  "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
  "@odata.id": "/redfish/v1/Systems/7c6068a1-5152-4510-8e8d-2ebc7592116c.1",
  "@odata.type": "#ComputerSystem.v1_13_0.ComputerSystem",

 (...)
  "Links": {
    (...)
    "ManagedBy": [
      {
        "@odata.id": "/redfish/v1/Managers/7c6068a1-5152-4510-8e8d-2ebc7592116c.1"
      }
    ],

 (...)
intel@ubuntu:~$ curl -k -u 'admin:D3v1ceMgr' https://127.0.0.1:45000/redfish/v1/Managers | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   509    0   509    0     0   2345      0 --:--:-- --:--:-- --:--:--  2334
{
  "@odata.context": "/redfish/v1/$metadata#ManagerCollection.ManagerCollection",
  "@odata.id": "/redfish/v1/Managers",
  "@odata.type": "#ManagerCollection.ManagerCollection",
  "Description": "Managers view",
  "Name": "Managers",
  "Members": [
    {
      "@odata.id": "/redfish/v1/Managers/99999999-9999-9999-9999-999999999999"
    },
    {
      "@odata.id": "/redfish/v1/Managers/7c6068a1-5152-4510-8e8d-2ebc7592116c.99999999-9999-9999-9999-999999999999"
    },
    {
      "@odata.id": "/redfish/v1/Managers/ac2f7880-9d8a-11ed-a8fc-0242ac120002"
    }
  ],
  "Members@odata.count": 3
}

Here is log from Validator: image

jcleung5549 commented 1 month ago

What path are you using to GET the Manager resource?

ehaligow commented 1 month ago

Actually, I am no trying to GET the missing Manager, the Validator tries to do that. I updated the description.