From 6a3b7b5d65375b8039d42923e5fce99f66c62d87 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Fri, 14 Jul 2023 17:02:28 +0300 Subject: Drop processor and memory summary status display 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 These attributes are already removed from the bmcweb code: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/62731 So currently webui-vue tries to access not present attributes and fails, and since these fields are not marked as optional, 'Server Overview' card fails to display. Drop processor and memory summary status attributes handling to correct the issue. Change-Id: I7fb956a0a310c6bd85560169b1ca0a64c19dc824 Signed-off-by: Konstantin Aladyshev --- src/store/modules/HardwareStatus/SystemStore.js | 8 -------- .../HardwareStatus/Inventory/InventoryTableSystem.vue | 18 ------------------ 2 files changed, 26 deletions(-) diff --git a/src/store/modules/HardwareStatus/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js index a1394f1e..ddf0e20f 100644 --- a/src/store/modules/HardwareStatus/SystemStore.js +++ b/src/store/modules/HardwareStatus/SystemStore.js @@ -22,17 +22,9 @@ const SystemStore = { system.locationIndicatorActive = data.LocationIndicatorActive; system.locationNumber = data.Location?.PartLocation?.ServiceLabel; system.manufacturer = data.Manufacturer; - system.memorySummaryHealth = data.MemorySummary?.Status.Health; - system.memorySummaryHealthRollup = - data.MemorySummary?.Status?.HealthRollup; - system.memorySummaryState = data.MemorySummary?.Status?.State; system.model = data.Model; system.processorSummaryCount = data.ProcessorSummary?.Count; system.processorSummaryCoreCount = data.ProcessorSummary?.CoreCount; - system.processorSummaryHealth = data.ProcessorSummary?.Status?.Health; - system.processorSummaryHealthRoll = - data.ProcessorSummary?.Status.HealthRollup; - system.processorSummaryState = data.ProcessorSummary?.Status?.State; system.powerState = data.PowerState; system.serialNumber = data.SerialNumber; system.healthRollup = data.Status?.HealthRollup; diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue index e62f5006..3eb7ca29 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue @@ -104,15 +104,6 @@ {{ $t('pageInventory.table.memorySummary') }}

- -
{{ $t('pageInventory.table.statusState') }}:
-
{{ dataFormatter(item.memorySummaryState) }}
- -
{{ $t('pageInventory.table.health') }}:
-
{{ dataFormatter(item.memorySummaryHealth) }}
- -
{{ $t('pageInventory.table.healthRollup') }}:
-
{{ dataFormatter(item.memorySummaryHealthRollup) }}
{{ $t('pageInventory.table.totalSystemMemoryGiB') }}:
@@ -125,15 +116,6 @@ {{ $t('pageInventory.table.processorSummary') }}

- -
{{ $t('pageInventory.table.statusState') }}:
-
{{ dataFormatter(item.processorSummaryState) }}
- -
{{ $t('pageInventory.table.health') }}:
-
{{ dataFormatter(item.processorSummaryHealth) }}
- -
{{ $t('pageInventory.table.healthRollup') }}:
-
{{ dataFormatter(item.processorSummaryHealthRoll) }}
{{ $t('pageInventory.table.count') }}:
{{ dataFormatter(item.processorSummaryCount) }}
-- cgit v1.2.3