#
e2122056 |
| 16-Dec-2024 |
Ed Tanous <etanous@nvidia.com> |
Fix mardownlint error
TemperatureReadingsCelsius added this regression; Fix it.
Tested: Documentation only. CI coverage sufficient.
Change-Id: Ibf7cb8bd457332a7207f6ed51a1e11ba4e81bbf9 Signed-of
Fix mardownlint error
TemperatureReadingsCelsius added this regression; Fix it.
Tested: Documentation only. CI coverage sufficient.
Change-Id: Ibf7cb8bd457332a7207f6ed51a1e11ba4e81bbf9 Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
81ee0e74 |
| 20-Dec-2024 |
Chandramohan Harkude <Chandramohan.harkude@gmail.com> |
Update Submit Test event feature to send custom data
Changes Added : Updated the submit test event feature to send test data as per spec
https://www.dmtf.org/sites/default/files/standards/documents
Update Submit Test event feature to send custom data
Changes Added : Updated the submit test event feature to send test data as per spec
https://www.dmtf.org/sites/default/files/standards/documents/ DSP2046_2019.1.pdf
Testing :
Tested sending custom test data and same data received at the event listener Change-Id: I2c2363a676aafd39c121c9fe4e16402c0f5961e2 Signed-off-by: Chandramohan Harkude <chandramohan.harkude@gmail.com>
show more ...
|
#
5064a25b |
| 04-Oct-2024 |
Myung Bae <myungbae@us.ibm.com> |
Add Persistent Heartbeat subscription properties
This adds Heartbeat parameters to subscriptions so that the future heartbeat implementation can use those parameters specified by the schema [1][2][3
Add Persistent Heartbeat subscription properties
This adds Heartbeat parameters to subscriptions so that the future heartbeat implementation can use those parameters specified by the schema [1][2][3]. - SendHeartbeat - HeartbeatIntervalMinutes
Tested:
1. POST Subscription - Create a subscription (e.g. via Redfish-Event-Listener) or like
``` curl -k -H "Content-Type: application/json" -X POST https://${bmc}/redfish/v1/EventService/Subscriptions \ -d '{ "Context": "Public", "DeliveryRetryPolicy": "TerminateAfterRetries", "Destination": "https://DESTINATION-IPADDR/Redfish-Evt-Listener", "EventFormatType": "Event", "HeartbeatIntervalMinutes": 2, "HttpHeaders": [], "MessageIds": [], "MetricReportDefinitions": [], "Protocol": "Redfish", "RegistryPrefixes": [], "ResourceTypes": [], "SendHeartbeat": true, "SubscriptionType": "RedfishEvent", "VerifyCertificate": true }' ```
2. GET the subscription and check the content ``` SUBID=<id> curl -k -X GET https://${bmc}/redfish/v1/EventService/Subscriptions/${SUBID} ```
3. PATCH Subscription - PATCH with various SendHeartbeat & HeartbeatIntervalMinutes
For example, ``` curl -k -X PATCH https://${bmc}/redfish/v1/EventService/Subscriptions/${SUBID} \ -H "Content-Type: application/json" \ -d '{"SendHeartbeat":true, "HeartbeatIntervalMinutes":10}' ```
- Restart bmcweb or reboot BMC
- Get the subscription data and see whether the heartbeat properties are persistent.
4. Redfish Validator Service passes
[1] https://github.com/openbmc/bmcweb/blob/d109e2b60f7bb367dc8115475c6cb86bca6e1914/redfish-core/schema/dmtf/json-schema/EventDestination.v1_15_0.json#L356 [2] https://github.com/openbmc/bmcweb/blob/d109e2b60f7bb367dc8115475c6cb86bca6e1914/redfish-core/schema/dmtf/json-schema/EventDestination.v1_15_0.json#L222 [3] https://www.dmtf.org/sites/default/files/standards/documents/DSP2046_2022.3.html
Change-Id: I9e7feadb2e851ca320147df2231f65ece58ddf25 Signed-off-by: Myung Bae <myungbae@us.ibm.com>
show more ...
|
#
5145decd |
| 13-Nov-2024 |
Gunnar Mills <gmills@us.ibm.com> |
Redfish.md: Add some missing system properties
When looking at SerialConsole, noticed it wasn't in Redfish.md. Added it along with FabricAdapters and PCIeDevices which were also missing.
Tested: No
Redfish.md: Add some missing system properties
When looking at SerialConsole, noticed it wasn't in Redfish.md. Added it along with FabricAdapters and PCIeDevices which were also missing.
Tested: None. Doc change only.
Change-Id: I91b9a007647fe678020d655b92284b2ff1b4bd47 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
fa800c8a |
| 13-Nov-2024 |
Gunnar Mills <gmills@us.ibm.com> |
Manager: Remove SerialConsole and TODO
In 2020, the OCP Profile moved to accept SerialConsole in either Manager or System.[1]
That was the reason of still having this code. SerialConsole was deprec
Manager: Remove SerialConsole and TODO
In 2020, the OCP Profile moved to accept SerialConsole in either Manager or System.[1]
That was the reason of still having this code. SerialConsole was deprecated in Manager v1_10_0. v1_19_2 is the latest Manager version[2].
SerialConsole was added to System in 2021[3]. In 2023, SerialConsole was enhanced to get the status not just hardcode to enabled.
[1]: https://github.com/opencomputeproject/HWMgmt-OCP-Profiles/issues/23 [2]: https://redfish.dmtf.org/schemas/v1/Manager.v1_19_2.json [3]: https://github.com/openbmc/bmcweb/commit/0e8ac5e706c531d2a3e2fc8390d9a31b90a91eb1 [4]: https://github.com/openbmc/bmcweb/commit/5c3e927283e32e1633ccd409f34ee17fab626ca1
Tested: Covered by automated tests.
Change-Id: I0a95e9215d4aa4626a3da75c989cb7d5eaf94be1 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
a91e0057 |
| 28-Oct-2024 |
Gunnar Mills <gmills@us.ibm.com> |
Redfish.md: Fix up Chassis
This "Shall be included if... otherwise will be omit" isn't correct. There isn't any check for this, so just remove. Added a bunch of missing properties.
Change-Id: If0ef
Redfish.md: Fix up Chassis
This "Shall be included if... otherwise will be omit" isn't correct. There isn't any check for this, so just remove. Added a bunch of missing properties.
Change-Id: If0ef8f92ed87a71d5ac11d891005b7b491b7282b Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
6fe8751c |
| 20-Jul-2023 |
George Liu <liuxiwei@inspur.com> |
Implement TemperatureReadingsCelsius property for ThermalMetrics
The ThermalMetrics schema[1] provides for efficient thermal metric gathering for thermal sensors. The schema allows retrieving just t
Implement TemperatureReadingsCelsius property for ThermalMetrics
The ThermalMetrics schema[1] provides for efficient thermal metric gathering for thermal sensors. The schema allows retrieving just the thermal metrics with one Redfish URI. This prevents the additional work required when returning all the sensor data, or multiple Redfish URI calls to retrieve the properties for all of the thermal sensors.
This commit implements the TemperatureReadingsCelsius property of ThermalMetrics[1]. ThermalMetrics is a property of ThermalSubsystem[2]. TemperatureReadingsCelsius is a SensorArrayExcerpt[3].
[1] https://redfish.dmtf.org/schemas/v1/ThermalMetrics.v1_0_1.json [2] https://redfish.dmtf.org/schemas/v1/ThermalSubsystem.v1_3_2.json [3] http://redfish.dmtf.org/schemas/v1/Sensor.v1_9_0.json#/definitions/SensorArrayExcerpt
The temperature sensors are found by finding 'all_sensors' endpoints for specific chassis of D-Bus service /xyz/openbmc_project/sensors/temperature. An entry of SensorArrayExcerpt is built for each temperature sensor retrieved.
Implementation Notes: - Common function sensor_utils::objectPropertiesToJson() is used to fill in sensor excerpt properties. Currently the only excerpt ChassisSubNode is ThermalMetrics. However there are others excerpts defined by Redfish. Right now mostly this is just skipping things, but I'm expecting when other sensor excerpts are implemented that some of the other properties may be added for excerpts as well. I'm expecting the combination of the chassisSubNode and the sensorType will be used to determine which properties are included for a particular call to build a sensor Json representation. - New sensor_utils::objectExcerptToJson() function created. This wraps sensor_utils::objectPropertiesToJson() and builds DataSourceUri for a sensor excerpt. - New sensor_utils::getAllSensorObjects() function created. This builds list of 'all_sensors' association endpoints for specified D-Bus path with specified D-Bus interfaces. Callback function is called with list for handling sensors.
Tested: 1. Redfish Service Validator passed. 2. doGet method: ``` curl -k -H "X-Auth-Token: ${token}" -X GET https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/ThermalMetrics { "@odata.id": "/redfish/v1/Chassis/chassis/ThermalSubsystem/ThermalMetrics", "@odata.type": "#ThermalMetrics.v1_0_1.ThermalMetrics", "Id": "ThermalMetrics", "Name": "Thermal Metrics", "TemperatureReadingsCelsius": [ { "DataSourceUri": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps0_temp0", "Reading": -131072000.0 }, { "DataSourceUri": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps0_temp1", "Reading": -131072000.0 }, { "DataSourceUri": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps0_temp2", "Reading": -131072000.0 }, { "DataSourceUri": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps1_temp0", "Reading": -131072000.0 }, { "DataSourceUri": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps1_temp1", "Reading": -131072000.0 }, { "DataSourceUri": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps1_temp2", "Reading": -131072000.0 } ], "TemperatureReadingsCelsius@odata.count": 6 } ```
3. Verification of DataSourceUri: ``` curl -k -H "X-Auth-Token: ${token}" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Sensors/temperature_ps1_temp0 { "@odata.id": "/redfish/v1/Chassis/chassis/Sensors/temperature_ps1_temp0", "@odata.type": "#Sensor.v1_2_0.Sensor", "Id": "temperature_ps1_temp0", "Name": "ps1 temp0", "Reading": -131072000.0, "ReadingType": "Temperature", "ReadingUnits": "Cel", "Status": { "Health": "OK", "State": "Enabled" } } ```
4. A bad chassis ID: ``` curl -k -H "X-Auth-Token: ${token}" -X GET https://${bmc}/redfish/v1/Chassis/chassisBAD/ThermalSubsystem/ThermalMetrics { "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type Chassis named 'chassisBAD' was not found.", "MessageArgs": [ "Chassis", "chassisBAD" ], "MessageId": "Base.1.18.1.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.18.1.ResourceNotFound", "message": "The requested resource of type Chassis named 'chassisBAD' was not found." } } ```
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I6e4ed1f281fd5371c978983b6cc5666badd3752c Signed-off-by: Janet Adkins <janeta@us.ibm.com>
show more ...
|
#
a14c9113 |
| 04-Sep-2024 |
Ed Tanous <etanous@nvidia.com> |
Add extra subscription params support
OriginResource allows filtering messages on a per-device basis. This was already listed as supported in our docs.
RegistryPrefixes is also added.
Tested: Uni
Add extra subscription params support
OriginResource allows filtering messages on a per-device basis. This was already listed as supported in our docs.
RegistryPrefixes is also added.
Tested: Unit tests pass.
Change-Id: Idfde8416f2f466ce11957177e052b540fc669888 Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
cd5a898f |
| 14-Aug-2024 |
Janet Adkins <janeta@us.ibm.com> |
Sensors: Add SpeedRPM property
Changes here are to add support for Redfish for Thermal Equipment[1].
Add the SpeedRPM property for a Rotational fan sensor. This property is part of the Redfish Sens
Sensors: Add SpeedRPM property
Changes here are to add support for Redfish for Thermal Equipment[1].
Add the SpeedRPM property for a Rotational fan sensor. This property is part of the Redfish Sensor schema since version 1_2_0.[2]
This change is so we will always have a property with the RPM. This allows a client (e.g. webui-vue) to always look for the SpeedRPM property.
Note: Redfish defines the Reading property for a fan to be a percentage value. Currently for this type of fan sensor the Reading value is being set to the RPM value. To preserve backwards compatibility the SpeedRPM property is added without altering the Reading value. However this may change in the future to match the expected Redfish implementation. Clients are advised to use the new SpeedRPM value to assure continuing correct function.
[1] https://www.dmtf.org/sites/default/files/standards/documents/DSP2064_1.0.0.pdf [2] http://redfish.dmtf.org/schemas/v1/Sensor.v1_10_0.json#/definitions/Sensor
Implementation Note: The objectPropertiesToJson() has existing else if(sensorType ==) statements. However because the first if() statement is looking at the chassisSubNode these are never visited for sensors when using the /redfish/v1/Chassis/<chassisId>/Sensors/<sensorName> URI. Those existing sensorType comparisons are used for the redfish-allow-deprecated-power-thermal Redfish interfaces.
``` $ curl -k -H "X-Auth-Token: $token" https://${bmc}/redfish/v1/Chassis/chassis/Sensors/fantach_fan1_0 { "@odata.id": "/redfish/v1/Chassis/chassis/Sensors/fantach_fan1_0", "@odata.type": "#Sensor.v1_2_0.Sensor", "Id": "fantach_fan1_0", "Name": "fan1 0", "Reading": 18000.0, "ReadingType": "Rotational", "ReadingUnits": "RPM", "SpeedRPM": 18000.0, "Status": { "Health": "OK", "State": "Enabled" } } ```
Tested: - Redfish Validator passes
Change-Id: Icd39fd70d4a24aafab0d9b66fa09c000b97b3199 Signed-off-by: Janet Adkins <janeta@us.ibm.com>
show more ...
|
#
ab0d4390 |
| 03-Sep-2024 |
Ravi Teja <raviteja28031990@gmail.com> |
Fix IPv6 static default gateway
This commit updates IPv6 static default gateway implementation to use updated D-bus interfaces
PrefixLength property removed from StaticGateway D-bus interface https
Fix IPv6 static default gateway
This commit updates IPv6 static default gateway implementation to use updated D-bus interfaces
PrefixLength property removed from StaticGateway D-bus interface https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/71271
Tested by: -d '{"IPv6StaticDefaultGateways": [{"Address": "2006:905:15F:36:10:10:3:1"}]}' -d '{"IPv6StaticDefaultGateways": [{},{"Address": "2007:905:18F:36:10:9:5:1"}]}'
Change-Id: Ia90605d65652990f13c442bb21e2d796e6660587 Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
show more ...
|
#
1a0866ca |
| 15-Jul-2024 |
Ed Tanous <etanous@nvidia.com> |
Fix markdownlint issues
Markdownlint flags a number of issues, mostly around using bare urls. Fix all reported issues.
Tested: Markdownlint builds now run without warnings.
Change-Id: I11631c6e038
Fix markdownlint issues
Markdownlint flags a number of issues, mostly around using bare urls. Fix all reported issues.
Tested: Markdownlint builds now run without warnings.
Change-Id: I11631c6e038dcbefc231fdbaa92431f0913a571e Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
ce22f609 |
| 03-Jun-2024 |
Paul Fertser <fercerpav@gmail.com> |
Expose current Role in Session object
As discussed at https://gerrit.openbmc.org/c/openbmc/webui-vue/+/70758 having that information available to front end is desired for UX purposes (hiding pages a
Expose current Role in Session object
As discussed at https://gerrit.openbmc.org/c/openbmc/webui-vue/+/70758 having that information available to front end is desired for UX purposes (hiding pages and actions that are not permitted to the current user anyway).
This field was added in #Session.v1_7_0.Session released on 2023.2.
Tested: current role correctly reported (e.g. "Administrator") as the only array element, Redfish-Service-Validator passes.
Fixes: #275 Change-Id: Ic9d8f02ca5859cb4b9996fd85b0896ce76ea22aa Signed-off-by: Paul Fertser <fercerpav@gmail.com>
show more ...
|
#
aa848de2 |
| 04-Jun-2024 |
Paul Fertser <fercerpav@gmail.com> |
Redfish.md: Session no longer has Oem field
Remove the field that is no longer exposed by bmcweb.
Tested: no testing, documentation-only change.
Fixes: d678d4fc59f131cf9820c1783f86a4a6ede32995 Cha
Redfish.md: Session no longer has Oem field
Remove the field that is no longer exposed by bmcweb.
Tested: no testing, documentation-only change.
Fixes: d678d4fc59f131cf9820c1783f86a4a6ede32995 Change-Id: I6ed07d35bfc0a4a205828773f854e56582058f46 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
show more ...
|
#
1aa375b8 |
| 13-Apr-2024 |
Ed Tanous <ed@tanous.net> |
Implement client certificate schemas
The Redfish standard seems to have caught up with some of the OEM schemas and features we already have, namely MutualTLS and Basic Auth disablement.
This commit
Implement client certificate schemas
The Redfish standard seems to have caught up with some of the OEM schemas and features we already have, namely MutualTLS and Basic Auth disablement.
This commit implements most of the GET parameters for which we already have backends. ClientCertificate is pointed to the same resources as TrustStore.
Tested: generate_auth_certificates.py succeeds, and shows a certificate in ClientCertificate collection
Get AccountService, and ClientAuthentication/Certificates returns expected values.
Redfish service validator passes.
Change-Id: If18e34e9dfa8f38293fceff288596811afd16d4a Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
482a69e7 |
| 22-Apr-2024 |
Ravi Teja <raviteja28031990@gmail.com> |
AccountService: Add HTTPBasicAuth support
This commit adds HTTPBasicAuth Get/Patch support
Tested By: Redfish service validator passes. ``` curl -k --user "root:0penBmc" -H "Content-Type: applicat
AccountService: Add HTTPBasicAuth support
This commit adds HTTPBasicAuth Get/Patch support
Tested By: Redfish service validator passes. ``` curl -k --user "root:0penBmc" -H "Content-Type: application/json" -X PATCH -d '{"HTTPBasicAuth":"Enabled"}' https://192.168.7.2/redfish/v1/AccountService ```
Succeeds with various values. Enabled: Basic auth succeeds. Disabled: Basic auth no longer works. AccountService reports "Disabled" For HTTPBasicAuth status.
Change-Id: Ic417bf3cd4135f05ab34c8613c7fbce953157b03 Signed-off-by: Ravi Teja <raviteja28031990@gmail.com> Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
ad622676 |
| 07-Sep-2022 |
Sunny Srivastava <sunnsr25@in.ibm.com> |
Remove link from Chassis to PCIeDevice
The commit removes current support that assumes 1:1 system:Chassis for Chassis/PCIeDevices. Current implementation populates the same collection of PCIeDevices
Remove link from Chassis to PCIeDevice
The commit removes current support that assumes 1:1 system:Chassis for Chassis/PCIeDevices. Current implementation populates the same collection of PCIeDevices with chassis and with system. Since the path is /redfish/v1/Systems/system/PCIeDevices and we already have a link from /redfish/v1/Systems/system/, removing the link here in Chassis. The link from Chassis to /redfish/v1/Systems/system/PCIeDevices is unexpected. For systems with multiple chassis the current assumption does not hold true. It breaks there, as it assumes all PCIeDevices are in all Chassis.
This is just a link and since another link from system resource already exists. The case of walking the whole tree isn't broke. And so, this should not break clients.
Validator has been executed with no new errors.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com> Change-Id: Id3af01ec99708c36b5fff2a63f04ffd722f6c3a2 Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
show more ...
|
#
33e1f122 |
| 26-Feb-2024 |
Andrew Geissler <geissonator@yahoo.com> |
AllowedHostTransitions: look for on dbus
Commit [1] introduced a new optional dbus property that OpenBMC developers can populate to define which redfish/v1/Systems/system/ResetActionInfo AllowableVa
AllowedHostTransitions: look for on dbus
Commit [1] introduced a new optional dbus property that OpenBMC developers can populate to define which redfish/v1/Systems/system/ResetActionInfo AllowableValues are.
Look for that new property on dbus. If not found, hard code the previous values otherwise utilize the property to fill in the return value.
Tested: - Put new property on dbus and confirmed Redfish API returned expected values: ``` curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/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": [ "ForceOff", "PowerCycle", "Nmi", "On", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown" ], "DataType": "String", "Name": "ResetType", "Required": true } ] } ``` - Did not run redfish validator as response was same as previous
[1]: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/68933
Change-Id: Iecece14e7ff55db98d96df71b106ecc9e3f0ac33 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
e610b316 |
| 20-Dec-2023 |
Jagpal Singh Gill <paligill@gmail.com> |
manager_diagnostic_data: add metric get
Add support to fetch MemoryStatistics, FreeStorageSpaceKiB and ProcessorStatistics for Manager Diagnostic Data. https://redfish.dmtf.org/schemas/v1/ManagerDia
manager_diagnostic_data: add metric get
Add support to fetch MemoryStatistics, FreeStorageSpaceKiB and ProcessorStatistics for Manager Diagnostic Data. https://redfish.dmtf.org/schemas/v1/ManagerDiagnosticData.v1_2_1.json This change is in relation to following design and D-Bus interface - https://gerrit.openbmc.org/c/openbmc/docs/+/64917 https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/64914 Test: Redfish query output - { "@odata.id": "/redfish/v1/Managers/bmc/ManagerDiagnosticData", "@odata.type": "#ManagerDiagnosticData.v1_2_0.ManagerDiagnosticData", "FreeStorageSpaceKiB": 3772, "Id": "ManagerDiagnosticData", "MemoryStatistics": { "AvailableBytes": 354224066, "BuffersAndCacheBytes": 78984633, "SharedBytes": 11876066, "TotalBytes": 425516000 }, "Name": "Manager Diagnostic Data", "ProcessorStatistics": { "KernelPercent": 13.0234, "UserPercent": 5.7374 }, "ServiceRootUptimeSeconds": 2255.117 }
Redfish service validator passing - Elapsed time: 0:03:12 metadataNamespaces: 3726 pass: 5133 passAction: 9 passGet: 205 passRedfishUri: 197 skipNoSchema: 3 skipOptional: 3492 warnDeprecated: 4 warningPresent: 7 Validation has succeeded.
Change-Id: I43758a993eb7f342cb9ac5f5574498b37261c2cc Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
show more ...
|
#
5ae1f7f3 |
| 08-Mar-2021 |
zhanghch05 <zhanghch05@inspur.com> |
Implements ThermalMetrics schema
The ThermalMetrics schema is a resource in Redfish version 2022.2[1]. It contains an array of temperature readings. It is a child of ThermalSubsystem schema[2] and i
Implements ThermalMetrics schema
The ThermalMetrics schema is a resource in Redfish version 2022.2[1]. It contains an array of temperature readings. It is a child of ThermalSubsystem schema[2] and it represents the thermal metrics of a chassis. Reading the current value of each temperature sensor and the corresponding link enumeration will be implemented in the next patch.
This commit implements the Get and Head methods of the Redfish ThermalMetrics schema and implemented the basic information of Get.
[1] https://www.dmtf.org/sites/default/files/standards/documents/DSP0268_2022.2.pdf [2] https://redfish.dmtf.org/schemas/v1/ThermalMetrics.v1_0_1.json
Test: 1. Validator passed. 2. doGet method: """ curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/ThermalMetrics { "@odata.id": "/redfish/v1/Chassis/chassis/ThermalSubsystem/ThermalMetrics", "@odata.type": "#ThermalMetrics.v1_0_1.ThermalMetrics", "Id": "ThermalMetrics", "Name": "Thermal Metrics", } """ 3. A bad chassis ID: """ curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassisBAD/ThermalSubsystem/ThermalMetrics { "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type Chassis named 'chassisBAD' was not found.", "MessageArgs": [ "Chassis", "chassisBAD" ], "MessageId": "Base.1.13.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.13.0.ResourceNotFound", "message": "The requested resource of type Chassis named 'chassisBAD' was not found." } } """
Signed-off-by: zhanghaicheng <zhanghch05@inspur.com> Change-Id: Ib4182e7dc6e204371636a33a391e8e2a58dad113
show more ...
|
#
8ece0e45 |
| 02-Jan-2024 |
Ed Tanous <ed@tanous.net> |
Fix spelling mistakes
These were found with: codespell -w $(git ls-files | grep "\.[hc]\(pp\)\?$")
At some point in the future, we might want to get this enabled in CI.
Change-Id: Iccb57b2adfd06a2
Fix spelling mistakes
These were found with: codespell -w $(git ls-files | grep "\.[hc]\(pp\)\?$")
At some point in the future, we might want to get this enabled in CI.
Change-Id: Iccb57b2adfd06a2e177e99db2923fe4e8e329118 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
0c2ba59d |
| 23-Jan-2023 |
Akshit Shah <shahakshit@google.com> |
Report status state field for cable objects
Tested: Added and removed cables to see state field being reflected based on the presence.
Change-Id: I0136b1407634ebc9033a7c3ea2da555018fd622b Signed-of
Report status state field for cable objects
Tested: Added and removed cables to see state field being reflected based on the presence.
Change-Id: I0136b1407634ebc9033a7c3ea2da555018fd622b Signed-off-by: Akshit Shah <shahakshit@google.com>
show more ...
|
#
b10d8db0 |
| 24-May-2022 |
Ravi Teja <raviteja28031990@gmail.com> |
Add IPv6 StatelessAddressAutoConfiguration
This commit has following changes 1.Adds "StatelessAddressAutoConfig" support as per latest EthernetInterface schema. 2.Remove support for deprecated State
Add IPv6 StatelessAddressAutoConfiguration
This commit has following changes 1.Adds "StatelessAddressAutoConfig" support as per latest EthernetInterface schema. 2.Remove support for deprecated Stateful and Stateless enums of DHCPv6 "OperatingMode"
Tested by: ``` GET PATCH -d '{"StatelessAddressAutoConfig": {"IPv6AutoConfigEnabled": true}}' PATCH -d '{"StatelessAddressAutoConfig": { "IPv6AutoConfigEnabled": false}}' PATCH -d '{"DHCPv6" : {"OperatingMode":"Enabled"}}' PATCH -d '{"DHCPv6" : {"OperatingMode":"Disabled"}}' ``` Redfish Validator passed
Change-Id: I29d471750ef513074bc5e49c31a16fa15d3d760c Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
show more ...
|
#
609ba4c9 |
| 11-Jul-2023 |
Ed Tanous <edtanous@google.com> |
Remove PCIeInterface DeviceType
This code was added in 543f9a75a0819ca9e3541b2c48fe8b4d5cf6c4f7, which in the description claimed to only be a refactor, but moved the DeviceType record.
Because Dev
Remove PCIeInterface DeviceType
This code was added in 543f9a75a0819ca9e3541b2c48fe8b4d5cf6c4f7, which in the description claimed to only be a refactor, but moved the DeviceType record.
Because DeviceType is an enum in Redfish, and a string in PDI, some amount of conversion is required, so this code can't be corrected easily.
Remove the property for the moment.
Tested: Redfish Validator passes.
Change-Id: I60a68e45a69370112f454b1c520fde5b70ca8591 Signed-off-by: Ed Tanous <edtanous@google.com>
show more ...
|
#
4a2e485d |
| 04-Oct-2022 |
George Liu <liuxiwei@inspur.com> |
Add Location information for Fan
This commit is to add Location/PartLocation/ServiceLabel information according to the Redfish Fan schema. If the `xyz.openbmc_project.Inventory.Decorator.LocationCod
Add Location information for Fan
This commit is to add Location/PartLocation/ServiceLabel information according to the Redfish Fan schema. If the `xyz.openbmc_project.Inventory.Decorator.LocationCode` interface does not exist, the ServiceLabel information property is not displayed.
ref: https://redfish.dmtf.org/schemas/v1/Fan.v1_3_0.json
Tested: Validator passes ''' 1. doGet method to get Fan ServiceLabel information curl -k https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0 { "@odata.id": "/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0", "@odata.type": "#Fan.v1_3_0.Fan", "Id": "fan0", "Manufacturer": "Delta", "Model": "7B5F", "Name": "Fan", "PartNumber": "02YK323", "SerialNumber": "YL12JP1C1234", "Slot": { "Location": { "PartLocation": { "ServiceLabel": "U78DB.ND0.WZS002U-A0" } } }, "SparePartNumber": "02YK323", "Status": { "Health": "OK", "State": "Enabled" } } '''
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I1c3357d6dde654c71c8384139b8e3f03cf671e4e Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
show more ...
|
#
090ae7ba |
| 04-Oct-2022 |
George Liu <liuxiwei@inspur.com> |
Add asset information for Fan
This commit is to add asset information according to the Redfish Fan schema. If the `xyz.openbmc_project.Inventory.Decorator.Asset` interface does not exist, the asset
Add asset information for Fan
This commit is to add asset information according to the Redfish Fan schema. If the `xyz.openbmc_project.Inventory.Decorator.Asset` interface does not exist, the asset information property is not displayed.
ref: https://redfish.dmtf.org/schemas/v1/Fan.v1_3_0.json
Tested: Validator passes ''' 1. doGet method to get Fan asset information curl -k https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0 { "@odata.id": "/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0", "@odata.type": "#Fan.v1_3_0.Fan", "Id": "fan0", "Manufacturer": "Delta", "Model": "7B5F", "Name": "Fan", "PartNumber": "02YK323", "SerialNumber": "YL12JP1C1234", "SparePartNumber": "02YK323", "Status": { "Health": "OK", "State": "Enabled" } } '''
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I1840f2b372fea57ba6e5c499ba21c968f0005695 Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
show more ...
|