SIGN IN SIGN UP

redfish-core:multi-host: no link to log services

redfish-validator complained that there was a link in ComputerSystem
resource which is 404, the Log Services.

```
/redfish/v1/Systems/Tyan_S8030_Baseboard
Warnings
Warning: Schema not found for HostedStorageServices.HostedStorageServices
Errors
Entity Get Error: GET of resource LogServices at URI /redfish/v1/Systems/Tyan_S8030_Baseboard/LogServices returned HTTP error. Check URI.
Property Validation Error: LogServices

/redfish/v1/Systems/Tyan_S8030_Baseboard/LogServices
Errors
Get URI Error: URI did not return resource /redfish/v1/Systems/Tyan_S8030_Baseboard/LogServices
```

Tested: on Tyan S8030

set `-Dexperimental-redfish-multi-computer-system=enabled`.

Before patching, there is a link to nonexistent LogServices [1]
`"/redfish/v1/Systems/Tyan_S8030_Baseboard/LogServices"`:

```
curl --insecure --user root:root https://${bmc}/redfish/v1/Systems/Tyan_S8030_Baseboard
{
  "@odata.id": "/redfish/v1/Systems/Tyan_S8030_Baseboard",
  "@odata.type": "#ComputerSystem.v1_22_0.ComputerSystem",
  "Actions": {
    "#ComputerSystem.Reset": {
      "@Redfish.ActionInfo": "/redfish/v1/Systems/Tyan_S8030_Baseboard/ResetActionInfo",
      "target": "/redfish/v1/Systems/Tyan_S8030_Baseboard/Actions/ComputerSystem.Reset"
    }
  },
  "Boot": {
    "AutomaticRetryConfig": "RetryAttempts",
    "AutomaticRetryConfig@Redfish.AllowableValues": [
      "Disabled",
      "RetryAttempts"
    ],
    "BootSourceOverrideEnabled": "Disabled",
    "BootSourceOverrideMode": "UEFI",
    "BootSourceOverrideMode@Redfish.AllowableValues": [
      "Legacy",
      "UEFI"
    ],
    "BootSourceOverrideTarget": "None",
    "BootSourceOverrideTarget@Redfish.AllowableValues": [
      "None",
      "Pxe",
      "Hdd",
      "Cd",
      "Diags",
      "BiosSetup",
      "Usb"
    ],
    "StopBootOnFault": "Never",
    "TrustedModuleRequiredToBoot": "Disabled"
  },
  "Description": "Computer System",
  "GraphicalConsole": {
    "ConnectTypesSupported": [
      "KVMIP"
    ],
    "MaxConcurrentSessions": 4,
    "ServiceEnabled": true
  },
  "HostWatchdogTimer": {
    "FunctionEnabled": false,
    "Status": {
      "State": "Enabled"
    },
    "TimeoutAction": "PowerCycle"
  },
  "Id": "Tyan_S8030_Baseboard",
  "LastResetTime": "2026-01-26T02:23:22+00:00",
  "Links": {
    "ManagedBy": [
      {
        "@odata.id": "/redfish/v1/Managers/bmc"
      }
    ]
  },
  "LocationIndicatorActive": false,
  "LogServices": {
    "@odata.id": "/redfish/v1/Systems/Tyan_S8030_Baseboard/LogServices"
  },
  "MemorySummary": {
    "TotalSystemMemoryGiB": 0.0
  },
  "Name": "Tyan_S8030_Baseboard",
  "PowerRestorePolicy": "AlwaysOff",
  "PowerState": "Off",
  "ProcessorSummary": {
    "Count": 0
  },
  "SerialConsole": {
    "IPMI": {
      "ServiceEnabled": true
    },
    "MaxConcurrentSessions": 15,
    "SSH": {
      "HotKeySequenceDisplay": "Press ~. to exit console",
      "Port": 2200,
      "ServiceEnabled": true
    }
  },
  "Status": {
    "Health": "OK",
    "State": "Disabled"
  },
  "SystemType": "Physical"
}
```

After patching, the invalid link is gone:

```
curl --insecure --user root:root https://${bmc}/redfish/v1/Systems/Tyan_S8030_Baseboard
{
  "@odata.id": "/redfish/v1/Systems/Tyan_S8030_Baseboard",
  "@odata.type": "#ComputerSystem.v1_22_0.ComputerSystem",
  "Actions": {
    "#ComputerSystem.Reset": {
      "@Redfish.ActionInfo": "/redfish/v1/Systems/Tyan_S8030_Baseboard/ResetActionInfo",
      "target": "/redfish/v1/Systems/Tyan_S8030_Baseboard/Actions/ComputerSystem.Reset"
    }
  },
  "Boot": {
    "AutomaticRetryConfig": "RetryAttempts",
    "AutomaticRetryConfig@Redfish.AllowableValues": [
      "Disabled",
      "RetryAttempts"
    ],
    "BootSourceOverrideEnabled": "Disabled",
    "BootSourceOverrideMode": "UEFI",
    "BootSourceOverrideMode@Redfish.AllowableValues": [
      "Legacy",
      "UEFI"
    ],
    "BootSourceOverrideTarget": "None",
    "BootSourceOverrideTarget@Redfish.AllowableValues": [
      "None",
      "Pxe",
      "Hdd",
      "Cd",
      "Diags",
      "BiosSetup",
      "Usb"
    ],
    "StopBootOnFault": "Never",
    "TrustedModuleRequiredToBoot": "Disabled"
  },
  "Description": "Computer System",
  "GraphicalConsole": {
    "ConnectTypesSupported": [
      "KVMIP"
    ],
    "MaxConcurrentSessions": 4,
    "ServiceEnabled": true
  },
  "HostWatchdogTimer": {
    "FunctionEnabled": false,
    "Status": {
      "State": "Enabled"
    },
    "TimeoutAction": "PowerCycle"
  },
  "Id": "Tyan_S8030_Baseboard",
  "LastResetTime": "2026-01-26T02:23:22+00:00",
  "Links": {
    "ManagedBy": [
      {
        "@odata.id": "/redfish/v1/Managers/bmc"
      }
    ]
  },
  "LocationIndicatorActive": false,
  "MemorySummary": {
    "TotalSystemMemoryGiB": 0.0
  },
  "Name": "Tyan_S8030_Baseboard",
  "PowerRestorePolicy": "AlwaysOff",
  "PowerState": "Off",
  "ProcessorSummary": {
    "Count": 0
  },
  "SerialConsole": {
    "IPMI": {
      "ServiceEnabled": true
    },
    "MaxConcurrentSessions": 15,
    "SSH": {
      "HotKeySequenceDisplay": "Press ~. to exit console",
      "Port": 2200,
      "ServiceEnabled": true
    }
  },
  "Status": {
    "Health": "OK",
    "State": "Disabled"
  },
  "SystemType": "Physical"
}
```

References:

[1] https://github.com/openbmc/bmcweb/blob/ac69e77ea938e8c2a5bd3dad258cdafd9d3182b7/redfish-core/lib/log_services.hpp#L910

Change-Id: I60d1e5f6e7d3f0c293c389f90b1d45203143c08c
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
A
Alexander Hansen committed
7ca710793f5949eeaada46f5dcfafbb47757fb47
Parent: 0fa6417