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>
diff --git a/src/store/modules/HardwareStatus/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js
index a1394f1..ddf0e20 100644
--- a/src/store/modules/HardwareStatus/SystemStore.js
+++ b/src/store/modules/HardwareStatus/SystemStore.js
@@ -22,17 +22,9 @@
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 e62f500..3eb7ca2 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>