systems.hpp - initial multi-host implementation#1
Open
Conversation
2b0ba60 to
af944a1
Compare
pointbazaar
reviewed
Feb 27, 2024
af944a1 to
ea01c9b
Compare
28045c1 to
d5b9425
Compare
d5b9425 to
d60c35a
Compare
2e50134 to
c885511
Compare
411fc52 to
54989b9
Compare
These globals shouldn't have been added to the redfish namespace, and can cause -Wshadow issues. Inline the variables for now, and we can assess whether we want to promote these to a common API later. Change-Id: I57bf1754cdad6ccd2a37375fad4b26996f0e9e9a Signed-off-by: Ed Tanous <etanous@nvidia.com>
boost::urls::format is specifically meant for URL construction. It handles encoding like percentage encoding which std::format does not. Change-Id: Ib6e6bc8bcf30b138b93111577d9f2150709dda5c Signed-off-by: Ed Tanous <etanous@nvidia.com>
Initially, systems_utils.hpp has not defined its own namespace, all functions were under the redfish namespace. Patch 82078 [1] introduced systems_utils namespace to the header for new functionality. This patch adds all functions, that haven't been part of the new namespace to systems_utils namespace and updates all call sites accordingly. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/82078 Tested: Code compiles. Change-Id: Ia6ac3edd36aacc22cbf1a6adae4e2b264932b43c Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
Aggregation was failing because of method and target URI missing in HTTP request This was a regression from 897e4c8 HTTP/1.1 Accept: application/json, application/octet-stream Host: 172.31.13.251 Fix : Added the Target URI and method from original request Testing : ``` curl -k -u root:0penBmc -X GET https://${BMC_IP}/redfish/v1/Chassis Returned items from both BMC and Satellite BMC ``` Change-Id: Ib446adfeb94d0cce3a272fc39ee5cc60ce3df7f8 Signed-off-by: Chandramohan Harkude <chandramohan.harkude@gmail.com> Signed-off-by: Ed Tanous <etanous@nvidia.com>
Support for fans from separate routes of ThermalSubsystem and EnvironmentMetrics will need the same utility functions. By moving these shared functions into single file will help with build time by not needing to included full fan support in all of the related locations. Initially only the getFanPaths() is moved. Expectation is more functions will be added as the expanded support is added. Tested: - Compiles - Verified ThermalSubsystem/Fans output unchanged Change-Id: I22c22bdf38155e93aa13e259dd8c904a977f8a07 Signed-off-by: Janet Adkins <janeta@us.ibm.com>
Add support for PeakReading and PeakReadingTime for sensors. This enhancement allows sensor readings to include max observed value information in the Redfish API, along with timestamp. It uses PDI xyz.openbmc_project.Telemetry.Report. Property PeakReading is added if OperationType in PDI property ReadingParameters is set to Maximum. Current Limitation - The ResetMetrics action is currently not supported for sensor URIs. As a result, the ability to clear PeakReading values for GPU Power Sensors has not been implemented. Future Consideration - If ResetMetrics action support is added in the future, the corresponding functionality will also need to be implemented in the dbus-sensor application to ensure full compatibility. Schema: https://redfish.dmtf.org/schemas/v1/Sensor.v1_2_0.yaml (PeakReading) Backend implementation for reference: https://gerrit.openbmc.org/c/openbmc/dbus-sensors/+/82479 Tested: Build an image for nvl32-obmc machine with the following patches cherry picked. https://gerrit.openbmc.org/c/openbmc/openbmc/+/85490 https://gerrit.openbmc.org/c/openbmc/bmcweb/+/82449. The patch cherry-picks the following patches that are currently under review. ``` 1. device tree https://lore.kernel.org/all/aRbLqH8pLWCQryhu@molberding.nvidia.com/ 2. mctpd patches CodeConstruct/mctp#85 3. u-boot changes https://lore.kernel.org/openbmc/20251121-msx4-v1-0-fc0118b666c1@nvidia.com/T/#t 4. kernel changes as specified in the openbmc patch (for espi) 5. entity-manager changes https://gerrit.openbmc.org/c/openbmc/entity-manager/+/85455 6. platform-init changes https://gerrit.openbmc.org/c/openbmc/platform-init/+/85456 7. spi changes https://lore.kernel.org/all/20251121-w25q01jv_fixup-v1-1-3d175050db73@nvidia.com/ ``` ``` > curl -s -k -u 'root:0penBmc' https://10.137.203.137/redfish/v1/Chassis/NVIDIA_GB200_1/Sensors/power_NVIDIA_GB200_GPU_0_Power_0 { "@odata.id": "/redfish/v1/Chassis/NVIDIA_GB200_1/Sensors/power_NVIDIA_GB200_GPU_0_Power_0", "@odata.type": "#Sensor.v1_2_0.Sensor", "Id": "power_NVIDIA_GB200_GPU_0_Power_0", "Name": "NVIDIA GB200 GPU 0 Power 0", "PeakReading": 52.671, "PeakReadingTime": 0, "Reading": 27.214, "ReadingRangeMax": 5000.0, "ReadingRangeMin": 0.0, "ReadingType": "Power", "ReadingUnits": "W", "Status": { "Health": "OK", "State": "Enabled" } }% ```` Change-Id: I8c1ab6ce85f31419db4a1d931bf99722d24afbd7 Signed-off-by: Harshit Aghera <haghera@nvidia.com>
Implement LocationIndicatorActive for Assembly schema to set and get the
status of the location LED. A client uses the `LocationIndicatorActive`
property to physically identify or locate the assembly.
The assembly is an array of AssemblyData [1], and the element of the
array can be patched as explained in [2].
```
{
"Assemblies": [
{},
{},
{
"LocationIndicatorActive": true
},
{}
]
}
```
Tested:
- Validator passes.
-
1. Get LocationIndicatorActive
```
curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Assembly
{
"@odata.id": "/redfish/v1/Chassis/chassis/Assembly",
"@odata.type": "#Assembly.v1_6_0.Assembly",
"Assemblies": [
{
"@odata.id": "/redfish/v1/Chassis/chassis/Assembly#/Assemblies/0",
"@odata.type": "#Assembly.v1_6_0.AssemblyData",
"LocationIndicatorActive": false,
"MemberId": "0",
...
},
{
"@odata.id": "/redfish/v1/Chassis/chassis/Assembly#/Assemblies/1",
"@odata.type": "#Assembly.v1_6_0.AssemblyData",
"LocationIndicatorActive": false,
"MemberId": "1",
...
}
],
"Assemblies@odata.count": 2,
"Id": "Assembly",
"Name": "Assembly Collection"
}
```
2. Set LocationIndicatorActive to true
```
curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/json" \
-X PATCH -d '{"Assemblies":[{"LocationIndicatorActive":true},{}]}' \
https://${bmc}/redfish/v1/Chassis/chassis/Assembly
```
Then we will see the location LED lit up, and the
LocationIndicatorActive value becomes true.
```
curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Assembly
{
"@odata.id": "/redfish/v1/Chassis/chassis/Assembly",
"@odata.type": "#Assembly.v1_6_0.Assembly",
"Assemblies": [
{
"@odata.id": "/redfish/v1/Chassis/chassis/Assembly#/Assemblies/0",
"@odata.type": "#Assembly.v1_6_0.AssemblyData",
"LocationIndicatorActive": true,
"MemberId": "0",
...
},
{
"@odata.id": "/redfish/v1/Chassis/chassis/Assembly#/Assemblies/1",
"@odata.type": "#Assembly.v1_6_0.AssemblyData",
"LocationIndicatorActive": false,
"MemberId": "1",
...
}
],
"Assemblies@odata.count": 2,
"Id": "Assembly",
"Name": "Assembly Collection"
}
```
If the input array size is different from the existing assemblies, it
will cause an error like
```
curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/json" \
-X PATCH -d '{"Assemblies":[{},{"LocationIndicatorActive":true},{}]}' \
https://${bmc}/redfish/v1/Chassis/chassis/Assembly
{
"error": {
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The array provided for property Assemblies exceeds the size limit 2.",
"MessageArgs": [
"Assemblies",
"2"
],
"MessageId": "Base.1.19.ArraySizeTooLong",
"MessageSeverity": "Warning",
"Resolution": "Resubmit the request with an appropriate array size."
}
],
"code": "Base.1.19.ArraySizeTooLong",
"message": "The array provided for property Assemblies exceeds the size limit 2."
}
}%
```
[1] https://redfish.dmtf.org/schemas/v1/Assembly.v1_6_0.json
[2] https://redfishforum.com/thread/437/patch-individual-items-array-objects
Change-Id: Ic2e87f5daeb7ebed161654bb54ac29e7d5daa482
Signed-off-by: Myung Bae <myungbae@us.ibm.com>
If chassis is in one of transitioning states, Redfish interface does not
expose PowerState and State.Status. This causes tests failure and users
cannot determine the actual state using Redfish. Expose PowerState and
State.Status for TransitioningToOff and TransitioningToOn to fix this.
Tested: Robot tests testing power operations now pass, before when
the D-Bus state was TransitioningToOff or TransitioningToOn
they would error because they could not find attributes they
need.
Also, ran rf_service_validator against BMC with D-Bus state set
to TransitioningToOff and made sure it succeeded.
Change-Id: I9c446a107bac6a69e962ef81de82920c9cce21ae
Signed-off-by: Igor Kanyuka <ifelmail@gmail.com>
Remove unused includes and include boost/circular_buffer/base.hpp in event_service_manager and event_matches_filter Tested: Code compiles. Change-Id: Ib90374b822560c063f3047037bdb87f36685f48c Signed-off-by: Ramya Sivakumar <sramya@ami.com>
A review comment for a different commit noted the length of the objectPropertiesToJson() method. [1] Here I am restructuring the method to reduce its complexity. The restructure factors out different sections of the work: - Filling in the basic identity of the sensor. This is split into two different methods. One for handling through the Redfish Sensors path and the others for the deprecated Redfish Power/Thermal paths. (Identity includes the Name/Id and type information for the sensor. - Common function for filling in Sensor status. - Mapping other available D-Bus properties to their Redfish property name. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/85103/comment/621fe109_9157ec50/ Tested: Using hardware simulator - Enabled redfish-allow-deprecated-power-thermal and confirmed response same before and after change for: - /redfish/v1/Chassis/chassis/Sensors - /redfish/v1/Chassis/chassis/Thermal - /redfish/v1/Chassis/chassis/Power - /redfish/v1/Chassis/chassis/ThermalSubsystem/ThermalMetrics - /redfish/v1/Chassis/chassis/EnvironmentMetrics - Each Member under /redfish/v1/Chassis/chassis/Sensors/ (i.e. /redfish/v1/Chassis/chassis/Sensors/{}) Change-Id: I1524c5c3b1f98a95dc2ed82d395897cd5f8af7d2 Signed-off-by: Janet Adkins <janeta@us.ibm.com>
Update the subtree boost to 1.89; Keep the "required" version at 1.88 because that's currently what yocto uses. Now that we don't need old versions, the branch for boost 1.84 support is removed, and we can universally pull in boost::process as a library. Additionally boost::core::string_view has defined a std::formatter nearly identical to what was done there, so there's now a conflict. Add a version check and shift to the boost provided formatter when it's available. Tested: Code builds out of tree correctly. Change-Id: I15a10da084da8f9d9460781b16a0fdc92987fc9a Signed-off-by: Ed Tanous <etanous@nvidia.com>
This tidy check can transform code to use std::ranges. Enable the check, apply the fixes it proposes. Tested: Redfish service validator passes in qemu Change-Id: I3f21b27d3d30277f71b9c8a2c584a22bc16865e9 Signed-off-by: Ed Tanous <etanous@nvidia.com>
Removed redundant inner for loop of chassis. Tested: I watched webui still see UUID and Location Code in chassis. Change-Id: I4abd5bf7a46eb997ade6537c198cccde1abf3196 Signed-off-by: Bowei Yu <yubowei0982@phytium.com.cn>
This fix enables TCP keepalives at the OS layer. It also enables a 15 minute deadline timer at the bmcweb level when waiting on an idle HTTP keepalive connection. Tested: romulus image running bmcweb, start connections with keepalive, block incoming connections `iptables -P INPUT DROP`, validate that sockets eventually die and are tracked with keepalives `ss -nto` Change-Id: I8f5040440348c060dae1d0516ec202a0e4dc349e Signed-off-by: Joey Berkovitz <joey@berkovitz.us>
Following a comment on [1], fix some of the variable and function names, to match redfish terms. Tested: Unit tests pass. Validation succeeded. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/83354/13 Change-Id: Ie52309126c798b17136be99fd4a3d6650721257e Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
Couple of these logs are heavy hitters and fill up the journal especially with external entities constantly hitting the redfish endpoints. This change moves the largest two logs we saw (on a yosemite4 machine) from INFO to DEBUG. Change-Id: Iac7337e3040e0348e41bba79c8200320e8ba12ef Signed-off-by: Amithash Prasad <amithash@meta.com>
Changes added : handle dangling pointer in response completion handler Problem : When high number of connections made to BMC and suddenly reset those connections, crash was observed in bmcweb. Fix : Since the connection already torn but bmcweb trying to close those connections in response completion handler causing the crash. Added code to handle the closed or reset connections Tested : made around 200 connections and reset them immediately, repeated these steps around 15 times no crash observed Change-Id: I03b5fd563275c4138a6eb004e09d277547af9692 Signed-off-by: Chandra Harkude <chandramohan.harkude@gmail.com>
Switched to Meson years ago, this CMakeLists.txt got missed. Tested: Doc change only. Copied into https://stackedit.io/ to make sure it formatted okay. Change-Id: I66c3ac5f307b33bc65b92028a0b4c7d254a18e0c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
CI is failing due to the formatting of scripts/parse_registries.py. Run
Black.
black -l 79 <filename>
Current:
Running black (black, 26.1.0 (compiled: no))
reformatted scripts/parse_registries.py
Before:
Running black (black, 25.12.0 (compiled: no))
Tested: Visual only.
Change-Id: I08051019760994a095eeedab2ae0d8c91984e979
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
boost::urls::format is specifically meant for URL construction. It handles encoding like percentage encoding which std::format does not. Change-Id: Ief7d574d1652096c2701979a9f8fe9897957f492 Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>
boost::urls::format is specifically meant for URL construction. It handles encoding like percentage encoding which std::format does not. Change-Id: I16c1467c856e36f072bd4248186b9819e40ae228 Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>
Fixed incorrect variable name 'retryAttemps' to 'retryAttempts' in the EventService PATCH handler. This typo was present in the variable declaration and all usages within the DeliveryRetryAttempts parameter handling logic Tested: Built successfully, no functional changes Change-Id: I93699c9954c33c94d93bcc05d00c621c08aa3679 Signed-off-by: Ramya Sivakumar <sramya@ami.com>
The meson option redfish-use-hardcoded-system-location-indicator was added to retain the old behavior of using hard-coded D-Bus paths for getting and setting the LEDs for the Systems. [1] It was added with the default state of enabled with the documented plan to alter the default state in October 2025. The support in entity-manager for the LED associations needs to be added before a change to the default option can be made. The date is being bumped to provide time for the necessary entity-manager changes. Tested: - Compiled [1] openbmc@eb261e1 Change-Id: If9d0610b7fb2bdc61d02bc73c0d56eb719982692 Signed-off-by: Janet Adkins <janeta@us.ibm.com>
Generally we use std::format for string mutations. Update systems_utils.hpp and systems.hpp object path creation accordingly. This also removes the call to std::to_string for computerSystemIndex. Tested: Code compiles. Change-Id: I9bb7465a304c5bfc114cb2b2653cb7416b359f40 Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
Extract the lambda into its own function. Tested: Code compiles. Change-Id: Ie6f2c9097d0eea41b650a93e05e49c2af4a24530 Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
ManagerForServers on multi-host should contain all ComputerSystem
resources, that implement the ManagedHost interface as of now. Add a
proper handle for multi-host.
ManagerForChassis has been disabled for the time being with the multi-
host option enabled. Currently there is no viable solution for that.
Tested: Unit test pass. Validation succeeded.
```
Sample output
$ curl -k
'https://'"${BMC}"':'"${BMC_WEBPORT}"'/redfish/v1/Managers/bmc' \
-H 'X-Auth-Token: '"$BMCWEB_SESSION_TOKEN"'' \
-H "Content-Type: application/json"
{
"Links": [
...
"ManagerForServers": [
{
"@odata.id": "/redfish/v1/Systems/System_1"
},
{
"@odata.id": "/redfish/v1/Systems/System_2"
},
{
"@odata.id": "/redfish/v1/Systems/System_3"
},
{
"@odata.id": "/redfish/v1/Systems/System_4"
},
{
"@odata.id": "/redfish/v1/Systems/System_5"
},
{
"@odata.id": "/redfish/v1/Systems/System_6"
},
{
"@odata.id": "/redfish/v1/Systems/System_7"
},
{
"@odata.id": "/redfish/v1/Systems/System_8"
}
],
"ManagerForServers@odata.count": 8,
...
]
...
}
```
[1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/60793
Change-Id: I4b164d6df4882bcb86e55fd89213d840abf7791e
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
As a first step to introduce multi-host support for LogServices, update the LogServiceCollection accordingly to allow for request handling when redfish-experimental-multi-computer-system is enabled. Disallow all LogServices not supported for multi-host via meson. Tested: Validator succeeded. Change-Id: I619a96bcab6a0c240d93c3c6586d813ccfb43cad Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
Add support for multi-host for all GET and POST method requests under
/redfish/v1/Systems/{computerSystemId}/LogServices/PostCodes/
redfish resource.
Multi-host meson options needed:
-Dexperimental-redfish-multi-computer-system=enabled
Tested:
Redfish-service-validation passes on single-host machine as well as on
yv4 in qemu.
Every postcode entry is displayed in web-ui on single-host and shown
in the curl output when requested on yv4 qemu.
```
curl -w "@curl-format.txt" -c cjar -b cjar -k -X GET
'https://'"${BMC}"':4443/redfish/v1/Systems/Yosemite_4_Sentinel_Dome_Slot_1_Chassis/LogServices/PostCodes/Entries' \
-H 'X-Auth-Token: '"$BMCWEB_SESSION_TOKEN"''
{
"@odata.id": "/redfish/v1/Systems/Yosemite_4_Sentinel_Dome_Slot_1_Chassis/LogServices/PostCodes/Entries",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"Description": "Collection of POST Code Log Entries",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/Yosemite_4_Sentinel_Dome_Slot_1_Chassis/LogServices/PostCodes/Entries/B1-1",
"@odata.type": "#LogEntry.v1_9_0.LogEntry",
"Created": "2025-04-22T18:30:51.528798+00:00",
"EntryType": "Event",
"Id": "B1-1",
"Message": "Boot Count: 1; Time Stamp Offset: 0.0000 seconds; POST Code: 0xA1",
"MessageArgs": [
"1",
"0.0000",
"0xA1"
],
"MessageId": "OpenBMC.0.2.BIOSPOSTCode",
"Name": "POST Code Log Entry",
"Severity": "OK"
},
...
"Members@odata.count": 819,
"Name": "BIOS POST Code Log Entries"
}
curl -w "@curl-format.txt" -c cjar -b cjar -k -X GET
'https://'"${BMC}"':4443/redfish/v1/Systems/Yosemite_4_Sentinel_Dome_Slot_1_Chassis/LogServices/PostCodes/Entries/B1-1' \
-H 'X-Auth-Token: '"$BMCWEB_SESSION_TOKEN"''
{
"@odata.id": "/redfish/v1/Systems/Yosemite_4_Sentinel_Dome_Slot_1_Chassis/LogServices/PostCodes/Entries/B1-1",
"@odata.type": "#LogEntry.v1_9_0.LogEntry",
"Created": "2025-04-22T18:30:51.528798+00:00",
"EntryType": "Event",
"Id": "B1-1",
"Message": "Boot Count: 1; Time Stamp Offset: 0.0000 seconds; POST Code: 0xA1",
"MessageArgs": [
"1",
"0.0000",
"0xA1"
],
"MessageId": "OpenBMC.0.2.BIOSPOSTCode",
"Name": "POST Code Log Entry",
"Severity": "OK"
}
```
POST has been tested on single-host hardware inside web-ui and yv4 qemu
machine with curl. (Postcodes have been copied over to the qemu machine
manually from a single-host machine). No regressions observed.
The postcode dir for the specific host is cleared successfully
on both single- and multi-host machine after the POST.
Change-Id: Ie04cb160a1f2756a04be68e6675a6cecc5f09117
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
Non-indexed dbus service names for instance based daemons got
deprecated. It is expected, that xyz.openbmc_project.State.Host0 and
xyz.openbmc_project.State.Chassis0 exist on every single-host platform.
Remove the multi-host check, and directly return an index based dbus
service name.
Tested: Manually checking if dbus service is picking up the requested
ResetType / state transition interface.
Before POST:
```
$ busctl introspect xyz.openbmc_project.State.Host0 \
/xyz/openbmc_project/state/host0
xyz.openbmc_project.State.Host interface - -
...
.RequestedHostTransition property s "xyz.openbmc_project.State.Host.Transition.Off"
...
```
POST request:
```
$ curl -v -k POST
'https://'"${BMC}"':'"${BMC_WEBPORT}"'/redfish/v1/Systems/system/Actions/ComputerSystem.Reset' \
-H 'X-Auth-Token: '"$BMCWEB_SESSION_TOKEN"'' \
-H "Content-Type: application/json" -d {"ResetType":"On"}
```
After POST:
```
$ busctl introspect xyz.openbmc_project.State.Host0 \
/xyz/openbmc_project/state/host0
.RequestedHostTransition property s "xyz.openbmc_project.State.Host.Transition.On"
```
Change-Id: I5b2c37f9d6a622af0c056504e1bb6dd839fd7d14
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
Add support for multi-host for all GET and POST method requests under
/redfish/v1/Systems/{computerSystemId}/LogServices/HostLogger/
redfish resource.
Testing: TBD
Change-Id: I026be8106f2accbb77d8d40749f502f3162ad04b
Signed-off-by: Oliver Brewka <oliver.brewka@9elements.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BMCWEB multi-host implementation
In order to support class 1 multi-host server configurations (i.e. yosemite v3, 1 BMC, N hosts), this change enables bmcweb to gather information on multiple available hosts and handle the information accordingly.
The implementation is based on an already taken - and now abondened - effort from earlier this year as can be seen on gerrit:
The current changes are only a subset of the patches to come, to fully implement multi host support.
Reviewing
The bmcweb devs wrote a document on common errors. Since I am new to cpp, I might misunderstood or unintentionally ignored one or two of these common errors. Might be good to have a look at the document and have it ready for reviewing.
Testing
NOTE: real hardware testing hasn't been performed yet!
Changes were tested in QEMU with the romulus image by IBM. After successful compilation of bmcweb on local machine,
the resulting patch file has been appended to the yocto build system in
meta-ibm/meta-romulus/recipes-phosphor/interfaces/bmcweb.In general, all Redfish routes touched by the change need to be tested - for both - single-host- and multi-host-configuration to ensure that we don't break the single-host configuration. This means, we have to test the implementation twice (enabling/ disabling -Dexperimental-redfish-multi-computer-system in bmcweb_%.bbappend).
In order to automate this process to some extend, the
scripts/test-all-routes.shcurls every route for you, and stores the response in a file that you have to specify as argument to the script. Afterwards you have to compare the response to the expected output:Expected response
Expected response single host
Expected response multi host
Response of local testing in QEMU
Response single host
GET /redfish/v1/Systems
{ "@odata.id": "/redfish/v1/Systems", "@odata.type": "#ComputerSystemCollection.ComputerSystemCollection", "Members": [ { "@odata.id": "/redfish/v1/Systems/system" } ], "Members@odata.count": 1, "Name": "Computer System Collection" }GET /redfish/v1/Systems/system
{ "@odata.id": "/redfish/v1/Systems/system", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", "Actions": { "#ComputerSystem.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Systems/system/ResetActionInfo", "target": "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" } }, "Bios": { "@odata.id": "/redfish/v1/Systems/system/Bios" }, "Boot": { "AutomaticRetryAttempts": 3, "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" ], "RemainingAutomaticRetryAttempts": 3, "StopBootOnFault": "Never", "TrustedModuleRequiredToBoot": "Disabled" }, "BootProgress": { "LastState": "None", "LastStateTime": "1970-01-01T00:00:00.000000+00:00" }, "Description": "Computer System", "FabricAdapters": { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters" }, "GraphicalConsole": { "ConnectTypesSupported": [ "KVMIP" ], "MaxConcurrentSessions": 4, "ServiceEnabled": true }, "Id": "system", "IndicatorLED": "Off", "LastResetTime": "1970-01-01T00:00:00+00:00", "Links": { "Chassis": [ { "@odata.id": "/redfish/v1/Chassis/chassis" } ], "ManagedBy": [ { "@odata.id": "/redfish/v1/Managers/bmc" } ] }, "LocationIndicatorActive": false, "LogServices": { "@odata.id": "/redfish/v1/Systems/system/LogService" }, "Memory": { "@odata.id": "/redfish/v1/Systems/system/Memory" }, "MemorySummary": { "TotalSystemMemoryGiB": 0.0 }, "Name": "system", "PCIeDevices": [], "PCIeDevices@odata.count": 0, "PowerRestorePolicy": "AlwaysOff", "PowerState": "Off", "ProcessorSummary": { "Count": 0 }, "Processors": { "@odata.id": "/redfish/v1/Systems/system/Processors" }, "SerialConsole": { "IPMI": { "ServiceEnabled": true }, "MaxConcurrentSessions": 15, "SSH": { "HotKeySequenceDisplay": "Press ~. to exit console", "Port": 2200, "ServiceEnabled": true } }, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Disabled" }, "Storage": { "@odata.id": "/redfish/v1/Systems/system/Storage" }, "SystemType": "Physical" }GET /redfish/v1/Systems/system0
{ "@odata.id": "/redfish/v1/Systems/system", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", "Actions": { "#ComputerSystem.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Systems/system/ResetActionInfo", "target": "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" } }, "Bios": { "@odata.id": "/redfish/v1/Systems/system/Bios" }, "Boot": { "AutomaticRetryAttempts": 3, "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" ], "RemainingAutomaticRetryAttempts": 3, "StopBootOnFault": "Never", "TrustedModuleRequiredToBoot": "Disabled" }, "BootProgress": { "LastState": "None", "LastStateTime": "1970-01-01T00:00:00.000000+00:00" }, "Description": "Computer System", "FabricAdapters": { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters" }, "GraphicalConsole": { "ConnectTypesSupported": [ "KVMIP" ], "MaxConcurrentSessions": 4, "ServiceEnabled": true }, "Id": "system", "IndicatorLED": "Off", "LastResetTime": "1970-01-01T00:00:00+00:00", "Links": { "Chassis": [ { "@odata.id": "/redfish/v1/Chassis/chassis" } ], "ManagedBy": [ { "@odata.id": "/redfish/v1/Managers/bmc" } ] }, "LocationIndicatorActive": false, "LogServices": { "@odata.id": "/redfish/v1/Systems/system/LogService" }, "Memory": { "@odata.id": "/redfish/v1/Systems/system/Memory" }, "MemorySummary": { "TotalSystemMemoryGiB": 0.0 }, "Name": "system", "PCIeDevices": [], "PCIeDevices@odata.count": 0, "PowerRestorePolicy": "AlwaysOff", "PowerState": "Off", "ProcessorSummary": { "Count": 0 }, "Processors": { "@odata.id": "/redfish/v1/Systems/system/Processors" }, "SerialConsole": { "IPMI": { "ServiceEnabled": true }, "MaxConcurrentSessions": 15, "SSH": { "HotKeySequenceDisplay": "Press ~. to exit console", "Port": 2200, "ServiceEnabled": true } }, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Disabled" }, "Storage": { "@odata.id": "/redfish/v1/Systems/system/Storage" }, "SystemType": "Physical" }GET /redfish/v1/Systems/system1
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'system1' was not found.", "MessageArgs": [ "ComputerSystem", "system1" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'system1' was not found." } }GET /redfish/v/fileSystems/sysem0
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'sysem0' was not found.", "MessageArgs": [ "ComputerSystem", "sysem0" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'sysem0' was not found." } }GET /redfish/v1/Systems/foobar
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'foobar' was not found.", "MessageArgs": [ "ComputerSystem", "foobar" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'foobar' was not found." } }GET /redfish/v1/Systems/system/ResetActionInfo
{ "@odata.id": "/redfish/v1/Systems/system/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "On", "ForceOff", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown", "PowerCycle", "Nmi" ], "DataType": "String", "Name": "ResetType", "Required": true } ] }GET /redfish/v1/Systems/system0/ResetActionInfo
{ "@odata.id": "/redfish/v1/Systems/system0/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "On", "ForceOff", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown", "PowerCycle", "Nmi" ], "DataType": "String", "Name": "ResetType", "Required": true } ] }GET /redfish/v1/Systems/system1/ResetActionInfo
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'system1' was not found.", "MessageArgs": [ "ComputerSystem", "system1" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'system1' was not found." } }GET /redfish/v1/Systems/sysem0/ResetActionInfo
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'sysem0' was not found.", "MessageArgs": [ "ComputerSystem", "sysem0" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'sysem0' was not found." } }GET /redfish/v1/Systems/foobar/ResetActionInfo
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'foobar' was not found.", "MessageArgs": [ "ComputerSystem", "foobar" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'foobar' was not found." } }POST /redfish/v1/Systems/system/Actions/ComputerSystem.Reset
{ "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request completed successfully.", "MessageArgs": [], "MessageId": "Base.1.16.0.Success", "MessageSeverity": "OK", "Resolution": "None" } ] }POST /redfish/v1/Systems/system0/Actions/ComputerSystem.Reset
{ "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request completed successfully.", "MessageArgs": [], "MessageId": "Base.1.16.0.Success", "MessageSeverity": "OK", "Resolution": "None" } ] }POST /redfish/v1/Systems/system1/Actions/ComputerSystem.Reset
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'system1' was not found.", "MessageArgs": [ "ComputerSystem", "system1" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The parameter GracefulRestart for the action Reset is not supported on the target resource.", "MessageArgs": [ "GracefulRestart", "Reset" ], "MessageId": "Base.1.16.0.ActionParameterNotSupported", "MessageSeverity": "Warning", "Resolution": "Remove the parameter supplied and resubmit the request if the operation failed." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }POST /redfish/v1/Systems/sysem0/Actions/ComputerSystem.Reset
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'sysem0' was not found.", "MessageArgs": [ "ComputerSystem", "sysem0" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The parameter GracefulRestart for the action Reset is not supported on the target resource.", "MessageArgs": [ "GracefulRestart", "Reset" ], "MessageId": "Base.1.16.0.ActionParameterNotSupported", "MessageSeverity": "Warning", "Resolution": "Remove the parameter supplied and resubmit the request if the operation failed." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }POST /redfish/v1/Systems/foobar/Actions/ComputerSystem.Reset
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'foobar' was not found.", "MessageArgs": [ "ComputerSystem", "foobar" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The parameter GracefulRestart for the action Reset is not supported on the target resource.", "MessageArgs": [ "GracefulRestart", "Reset" ], "MessageId": "Base.1.16.0.ActionParameterNotSupported", "MessageSeverity": "Warning", "Resolution": "Remove the parameter supplied and resubmit the request if the operation failed." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }Response multi host
GET /redfish/v1/Systems{ "@odata.id": "/redfish/v1/Systems", "@odata.type": "#ComputerSystemCollection.ComputerSystemCollection", "Members": [ { "@odata.id": "/redfish/v1/Systems/system0" } ], "Members@odata.count": 1, "Name": "Computer System Collection" }GET /redfish/v1/Systems/system
{ "@odata.id": "/redfish/v1/Systems/system0", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", "Actions": { "#ComputerSystem.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Systems/system0/ResetActionInfo", "target": "/redfish/v1/Systems/system0/Actions/ComputerSystem.Reset" } }, "Bios": { "@odata.id": "/redfish/v1/Systems/system0/Bios" }, "Boot": { "AutomaticRetryAttempts": 3, "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" ], "RemainingAutomaticRetryAttempts": 3, "StopBootOnFault": "Never", "TrustedModuleRequiredToBoot": "Disabled" }, "BootProgress": { "LastState": "None", "LastStateTime": "1970-01-01T00:00:00.000000+00:00" }, "Description": "Computer System", "FabricAdapters": { "@odata.id": "/redfish/v1/Systems/system0/FabricAdapters" }, "GraphicalConsole": { "ConnectTypesSupported": [ "KVMIP" ], "MaxConcurrentSessions": 4, "ServiceEnabled": true }, "Id": "system0", "IndicatorLED": "Off", "LastResetTime": "1970-01-01T00:00:00+00:00", "Links": { "Chassis": [ { "@odata.id": "/redfish/v1/Chassis/chassis" } ], "ManagedBy": [ { "@odata.id": "/redfish/v1/Managers/bmc" } ] }, "LocationIndicatorActive": false, "LogServices": { "@odata.id": "/redfish/v1/Systems/system0/LogService" }, "Memory": { "@odata.id": "/redfish/v1/Systems/system0/Memory" }, "MemorySummary": { "TotalSystemMemoryGiB": 0.0 }, "Name": "system0", "PCIeDevices": [], "PCIeDevices@odata.count": 0, "PowerRestorePolicy": "AlwaysOff", "PowerState": "Off", "ProcessorSummary": { "Count": 0 }, "Processors": { "@odata.id": "/redfish/v1/Systems/system0/Processors" }, "SerialConsole": { "IPMI": { "ServiceEnabled": true }, "MaxConcurrentSessions": 15, "SSH": { "HotKeySequenceDisplay": "Press ~. to exit console", "Port": 2200, "ServiceEnabled": true } }, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Disabled" }, "Storage": { "@odata.id": "/redfish/v1/Systems/system0/Storage" }, "SystemType": "Physical" }GET /redfish/v1/Systems/system0
{ "@odata.id": "/redfish/v1/Systems/system0", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", "Actions": { "#ComputerSystem.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Systems/system0/ResetActionInfo", "target": "/redfish/v1/Systems/system0/Actions/ComputerSystem.Reset" } }, "Bios": { "@odata.id": "/redfish/v1/Systems/system0/Bios" }, "Boot": { "AutomaticRetryAttempts": 3, "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" ], "RemainingAutomaticRetryAttempts": 3, "StopBootOnFault": "Never", "TrustedModuleRequiredToBoot": "Disabled" }, "BootProgress": { "LastState": "None", "LastStateTime": "1970-01-01T00:00:00.000000+00:00" }, "Description": "Computer System", "FabricAdapters": { "@odata.id": "/redfish/v1/Systems/system0/FabricAdapters" }, "GraphicalConsole": { "ConnectTypesSupported": [ "KVMIP" ], "MaxConcurrentSessions": 4, "ServiceEnabled": true }, "Id": "system0", "IndicatorLED": "Off", "LastResetTime": "1970-01-01T00:00:00+00:00", "Links": { "Chassis": [ { "@odata.id": "/redfish/v1/Chassis/chassis" } ], "ManagedBy": [ { "@odata.id": "/redfish/v1/Managers/bmc" } ] }, "LocationIndicatorActive": false, "LogServices": { "@odata.id": "/redfish/v1/Systems/system0/LogService" }, "Memory": { "@odata.id": "/redfish/v1/Systems/system0/Memory" }, "MemorySummary": { "TotalSystemMemoryGiB": 0.0 }, "Name": "system0", "PCIeDevices": [], "PCIeDevices@odata.count": 0, "PowerRestorePolicy": "AlwaysOff", "PowerState": "Off", "ProcessorSummary": { "Count": 0 }, "Processors": { "@odata.id": "/redfish/v1/Systems/system0/Processors" }, "SerialConsole": { "IPMI": { "ServiceEnabled": true }, "MaxConcurrentSessions": 15, "SSH": { "HotKeySequenceDisplay": "Press ~. to exit console", "Port": 2200, "ServiceEnabled": true } }, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Disabled" }, "Storage": { "@odata.id": "/redfish/v1/Systems/system0/Storage" }, "SystemType": "Physical" }GET /redfish/v1/Systems/system1
{ "@odata.id": "/redfish/v1/Systems/system1", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", "Actions": { "#ComputerSystem.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Systems/system1/ResetActionInfo", "target": "/redfish/v1/Systems/system1/Actions/ComputerSystem.Reset" } }, "Bios": { "@odata.id": "/redfish/v1/Systems/system1/Bios" }, "Boot": { "StopBootOnFault": "Never", "TrustedModuleRequiredToBoot": "Disabled" }, "Description": "Computer System", "FabricAdapters": { "@odata.id": "/redfish/v1/Systems/system1/FabricAdapters" }, "GraphicalConsole": { "ConnectTypesSupported": [ "KVMIP" ], "MaxConcurrentSessions": 4, "ServiceEnabled": true }, "Id": "system1", "IndicatorLED": "Off", "Links": { "Chassis": [ { "@odata.id": "/redfish/v1/Chassis/chassis" } ], "ManagedBy": [ { "@odata.id": "/redfish/v1/Managers/bmc" } ] }, "LocationIndicatorActive": false, "LogServices": { "@odata.id": "/redfish/v1/Systems/system1/LogService" }, "Memory": { "@odata.id": "/redfish/v1/Systems/system1/Memory" }, "MemorySummary": { "TotalSystemMemoryGiB": 0.0 }, "Name": "system1", "PCIeDevices": [], "PCIeDevices@odata.count": 0, "ProcessorSummary": { "Count": 0 }, "Processors": { "@odata.id": "/redfish/v1/Systems/system1/Processors" }, "SerialConsole": { "IPMI": { "ServiceEnabled": true }, "MaxConcurrentSessions": 15, "SSH": { "HotKeySequenceDisplay": "Press ~. to exit console", "Port": 2200, "ServiceEnabled": true } }, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" }, "Storage": { "@odata.id": "/redfish/v1/Systems/system1/Storage" }, "SystemType": "Physical", "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request failed due to an internal service error. The service is still operational.", "MessageArgs": [], "MessageId": "Base.1.16.0.InternalError", "MessageSeverity": "Critical", "Resolution": "Resubmit the request. If the problem persists, consider resetting the service." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request failed due to an internal service error. The service is still operational.", "MessageArgs": [], "MessageId": "Base.1.16.0.InternalError", "MessageSeverity": "Critical", "Resolution": "Resubmit the request. If the problem persists, consider resetting the service." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request failed due to an internal service error. The service is still operational.", "MessageArgs": [], "MessageId": "Base.1.16.0.InternalError", "MessageSeverity": "Critical", "Resolution": "Resubmit the request. If the problem persists, consider resetting the service." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }GET /redfish/v/fileSystems/sysem0
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'sysem0' was not found.", "MessageArgs": [ "ComputerSystem", "sysem0" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'sysem0' was not found." } }GET /redfish/v1/Systems/foobar
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'foobar' was not found.", "MessageArgs": [ "ComputerSystem", "foobar" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'foobar' was not found." } }``` GET /redfish/v1/Systems/system/ResetActionInfo ```json { "@odata.id": "/redfish/v1/Systems/system/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "On", "ForceOff", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown", "PowerCycle", "Nmi" ], "DataType": "String", "Name": "ResetType", "Required": true } ] }GET /redfish/v1/Systems/system0/ResetActionInfo
{ "@odata.id": "/redfish/v1/Systems/system0/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "On", "ForceOff", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown", "PowerCycle", "Nmi" ], "DataType": "String", "Name": "ResetType", "Required": true } ] }GET /redfish/v1/Systems/system1/ResetActionInfo
{ "@odata.id": "/redfish/v1/Systems/system1/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "On", "ForceOff", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown", "PowerCycle", "Nmi" ], "DataType": "String", "Name": "ResetType", "Required": true } ] }GET /redfish/v1/Systems/sysem0/ResetActionInfo
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'sysem0' was not found.", "MessageArgs": [ "ComputerSystem", "sysem0" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'sysem0' was not found." } }GET /redfish/v1/Systems/foobar/ResetActionInfo
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'foobar' was not found.", "MessageArgs": [ "ComputerSystem", "foobar" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.16.0.ResourceNotFound", "message": "The requested resource of type ComputerSystem named 'foobar' was not found." } }POST /redfish/v1/Systems/system/Actions/ComputerSystem.Reset
{ "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request completed successfully.", "MessageArgs": [], "MessageId": "Base.1.16.0.Success", "MessageSeverity": "OK", "Resolution": "None" } ] }POST /redfish/v1/Systems/system0/Actions/ComputerSystem.Reset
{ "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request completed successfully.", "MessageArgs": [], "MessageId": "Base.1.16.0.Success", "MessageSeverity": "OK", "Resolution": "None" } ] }POST /redfish/v1/Systems/system1/Actions/ComputerSystem.Reset
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request failed due to an internal service error. The service is still operational.", "MessageArgs": [], "MessageId": "Base.1.16.0.InternalError", "MessageSeverity": "Critical", "Resolution": "Resubmit the request. If the problem persists, consider resetting the service." } ], "code": "Base.1.16.0.InternalError", "message": "The request failed due to an internal service error. The service is still operational." } }POST /redfish/v1/Systems/sysem0/Actions/ComputerSystem.Reset
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'sysem0' was not found.", "MessageArgs": [ "ComputerSystem", "sysem0" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The parameter GracefulRestart for the action Reset is not supported on the target resource.", "MessageArgs": [ "GracefulRestart", "Reset" ], "MessageId": "Base.1.16.0.ActionParameterNotSupported", "MessageSeverity": "Warning", "Resolution": "Remove the parameter supplied and resubmit the request if the operation failed." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }POST /redfish/v1/Systems/foobar/Actions/ComputerSystem.Reset
{ "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type ComputerSystem named 'foobar' was not found.", "MessageArgs": [ "ComputerSystem", "foobar" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request body submitted was malformed JSON and could not be parsed by the receiving service.", "MessageArgs": [], "MessageId": "Base.1.16.0.MalformedJSON", "MessageSeverity": "Critical", "Resolution": "Ensure that the request body is valid JSON and resubmit the request." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }