diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2023-07-14 17:02:28 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2023-07-14 17:13:32 +0300 |
commit | 6a3b7b5d65375b8039d42923e5fce99f66c62d87 (patch) | |
tree | 16bf7518a965b114cc9d0669aa0009cabbb18b99 | |
parent | 6236b11ba7b7fb37f37e6af887b87e3071a8a4cb (diff) | |
download | webui-vue-6a3b7b5d65375b8039d42923e5fce99f66c62d87.tar.xz |
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 <aladyshev22@gmail.com>
-rw-r--r-- | src/store/modules/HardwareStatus/SystemStore.js | 8 | ||||
-rw-r--r-- | src/views/HardwareStatus/Inventory/InventoryTableSystem.vue | 18 |
2 files changed, 0 insertions, 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') }} </p> <dl class="ml-4"> - <!-- Status state --> - <dt>{{ $t('pageInventory.table.statusState') }}:</dt> - <dd>{{ dataFormatter(item.memorySummaryState) }}</dd> - <!-- Health --> - <dt>{{ $t('pageInventory.table.health') }}:</dt> - <dd>{{ dataFormatter(item.memorySummaryHealth) }}</dd> - <!-- Health Roll --> - <dt>{{ $t('pageInventory.table.healthRollup') }}:</dt> - <dd>{{ dataFormatter(item.memorySummaryHealthRollup) }}</dd> <!-- Total system memory --> <dt>{{ $t('pageInventory.table.totalSystemMemoryGiB') }}:</dt> <dd> @@ -125,15 +116,6 @@ {{ $t('pageInventory.table.processorSummary') }} </p> <dl class="ml-4"> - <!-- Status state --> - <dt>{{ $t('pageInventory.table.statusState') }}:</dt> - <dd>{{ dataFormatter(item.processorSummaryState) }}</dd> - <!-- Health --> - <dt>{{ $t('pageInventory.table.health') }}:</dt> - <dd>{{ dataFormatter(item.processorSummaryHealth) }}</dd> - <!-- Health Rollup --> - <dt>{{ $t('pageInventory.table.healthRollup') }}:</dt> - <dd>{{ dataFormatter(item.processorSummaryHealthRoll) }}</dd> <!-- Count --> <dt>{{ $t('pageInventory.table.count') }}:</dt> <dd>{{ dataFormatter(item.processorSummaryCount) }}</dd> |