[PR #9234/34e8e8e5 backport][stable-9] Fix VerifyBiosAttributes command on Systems with multiple entries #9248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a backport of PR #9234 as merged into main (34e8e8e).
SUMMARY
Fixes #9230
ISSUE TYPE
COMPONENT NAME
redfish_utils
ADDITIONAL INFORMATION
Previously, this command was working on single system resource systems due to
get_multi_bios_attributes()
returning a consistent response. When running on a system with multiple system resources the response fromget_multi_bios_attributes()
includes additional output structure that was not being accounted for in the method.Due to this command being part of the
redfish_command
thedata_modification=True
attribute is set which requires passing inresource_id
on nodes with multiple managers/systems/chassis. We can switch to using the singularget_bios_attributes
method and eliminate the extra parsing as we will never have multiple system entries worth of data to handle.Before this change on a system with multiple system entries:
Expected failure (missing bios attribute):
Successful verification:
Expected failure (when missing
resource_id
):Running against a single resource system (without specifying
resource_id
):Successful run on single resource system: