diff options
author | Ninad Palsule <ninadpalsule@us.ibm.com> | 2023-04-20 23:11:21 +0300 |
---|---|---|
committer | Ed Tanous <edtanous@google.com> | 2023-05-31 23:27:53 +0300 |
commit | 5fd0aafb0f14fb3011970e8575647bb608688c7c (patch) | |
tree | 01694d4501e0bf3a734dea0e1c52ec8a7e7c819b /meson_options.txt | |
parent | 13451e3913c29bb380ef6778f11749d337ddd442 (diff) | |
download | bmcweb-5fd0aafb0f14fb3011970e8575647bb608688c7c.tar.xz |
Disabled processor and memory summary status
Redfish deprecated the Processor/Memory Summary Status (state, health,
healthrollup) attributes. Please refer to redfish spec for more details:
https://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_20_0.json
Initially I tried to fix the summary status issues,
(https://gerrit.openbmc.org/c/openbmc/bmcweb/+/60663)
But later it was decided that we should also remove these attributes
from the bmcweb code. Here is a link to discussion on discord:
https://discord.com/channels/775381525260664832/855566794994221117/1093939076710793296
This drop hides these attributes under defined
BMCWEB_ENABLE_PROC_MEM_STATUS. This option is disabled by default.
These attributes will be permanently removed from code in 1Q 2024
(in 8-9 months).
Testing:
- Redfish validator passed excepted couple of failures but those are
failing without my changes too.
- Make sure that summary status for memory and processor is not seen
in the output.
Without fix:
------------
'''
$ curl -s -k https://${bmc}/redfish/v1/Systems/system
.....
"MemorySummary": {
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"TotalSystemMemoryGiB": 256
},
.....
"ProcessorSummary": {
"CoreCount": 20,
"Count": 4,
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
}
},
.....
''''
With fix:
---------
'''
"MemorySummary": {
"TotalSystemMemoryGiB": 256
},
.....
"ProcessorSummary": {
"CoreCount": 20,
"Count": 4
},
.....
''''
- Turned on BMCWEB_ALLOW_DEPRECATED_PROC_MEM_STATUS flag and made sure
that properties are shown again.
Change-Id: I1e0ee386bd4f365599afcf46e5d587285af635ad
Signed-off-by: Ninad Palsule <ninadpalsule@us.ibm.com>
Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 3f37f9e100..26fdecf2d4 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -119,6 +119,16 @@ option( ) option( + 'redfish-enable-proccessor-memory-status', + type: 'feature', + value: 'disabled', + description: '''Enable/disable the deprecated processor and memory summary + status. The default condition is disabling the processor + and memory summary status. This option will be removed in + 1Q 2024.''' +) + +option( 'redfish-provisioning-feature', type: 'feature', value: 'disabled', @@ -333,3 +343,4 @@ option( description: '''Enables HealthPopulate and generate the Status property for the resource''' ) + |