Add support for node health status field
This commit adds client-side support for displaying Redfish hardware health status field (health) in baremetal node list commands: * Update API version to 1.109 to support health field * Add 'health' to node resource field definitions * Update node list command to display health field by default * Fix unit tests to expect health field in node listings * Add comprehensive release note documenting the new functionality The health field is now displayed in both standard and long listing formats, providing operators with real-time visibility into hardware health status synchronized from BMCs. Depends-on: https://review.opendev.org/c/openstack/ironic/+/966946 Change-Id: Idc36942f8962df68582b37e2c8d2ff3caa079f4f Assisted-by: Claude (Anthropic) version 4.5 Signed-off-by: Jacob Anders <janders@redhat.com> Partial-Bug: #2133522
This commit is contained in:
committed by
Jacob Anders
parent
3514f052dc
commit
81e881bc36
@@ -37,7 +37,7 @@ from ironicclient import exc
|
||||
# http://specs.openstack.org/openstack/ironic-specs/specs/kilo/api-microversions.html # noqa
|
||||
# for full details.
|
||||
DEFAULT_VER = '1.9'
|
||||
LAST_KNOWN_API_VERSION = 104
|
||||
LAST_KNOWN_API_VERSION = 109
|
||||
LATEST_VERSION = '1.{}'.format(LAST_KNOWN_API_VERSION)
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
@@ -1106,7 +1106,8 @@ class TestBaremetalList(TestBaremetal):
|
||||
"Instance UUID",
|
||||
"Power State",
|
||||
"Provisioning State",
|
||||
"Maintenance"
|
||||
"Maintenance",
|
||||
"Health"
|
||||
)
|
||||
self.assertEqual(collist, columns)
|
||||
datalist = ((
|
||||
@@ -1116,6 +1117,7 @@ class TestBaremetalList(TestBaremetal):
|
||||
baremetal_fakes.baremetal_power_state,
|
||||
baremetal_fakes.baremetal_provision_state,
|
||||
baremetal_fakes.baremetal_maintenance,
|
||||
'', # health
|
||||
), )
|
||||
self.assertEqual(datalist, tuple(data))
|
||||
|
||||
@@ -1168,6 +1170,7 @@ class TestBaremetalList(TestBaremetal):
|
||||
'Extra',
|
||||
'Fault',
|
||||
'Firmware Interface',
|
||||
'Health',
|
||||
'Inspect Interface',
|
||||
'Inspection Finished At',
|
||||
'Inspection Started At',
|
||||
|
||||
@@ -161,6 +161,7 @@ class Resource(object):
|
||||
'parent_node': 'Parent Node',
|
||||
'children': 'Child Nodes',
|
||||
'firmware_interface': 'Firmware Interface',
|
||||
'health': 'Health',
|
||||
'public': 'Public',
|
||||
'disable_power_off': 'Disable Power Off',
|
||||
'priority': 'Priority',
|
||||
@@ -272,6 +273,7 @@ NODE_DETAILED_RESOURCE = Resource(
|
||||
'extra',
|
||||
'fault',
|
||||
'firmware_interface',
|
||||
'health',
|
||||
'inspect_interface',
|
||||
'inspection_finished_at',
|
||||
'inspection_started_at',
|
||||
@@ -335,6 +337,7 @@ NODE_RESOURCE = Resource(
|
||||
'power_state',
|
||||
'provision_state',
|
||||
'maintenance',
|
||||
'health',
|
||||
])
|
||||
VENDOR_PASSTHRU_METHOD_RESOURCE = Resource(
|
||||
['name',
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Adds support for displaying the node health status field (``health``)
|
||||
in the baremetal node list commands. This field exposes the Redfish
|
||||
hardware health status (Status.Health) that is synchronized from BMCs
|
||||
to Ironic node records. The health field is displayed by default in
|
||||
both standard and long listing formats, providing operators with
|
||||
visibility into the hardware health status of managed nodes. This
|
||||
requires Ironic API version ``1.109`` or later.
|
||||
|
||||
Reference in New Issue
Block a user