Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Redfish API for following operation #819

Merged

Conversation

maramsmurthy
Copy link
Contributor

Reading a BIOS attribute using Redfish API
Set value to BIOS attribute using Redfish API
IOEnlarger capacity BIOS attribute can be update and read using BMCRedFish.py

Copy link
Collaborator

@abdhaleegit abdhaleegit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maramsmurthy Thanks for the PR, few things to change

  1. no need of new testcase, add code in existing MachineConfg.py
  2. this is config set so values to be set is passed as key value pair by user iocapacity=12 and code sets it and validate
  3. add the code inside Class CecConfig
  4. make sure you move the methods to set and get iocapcity inside CecConfig class
  5. if iocapcity param is not given.. than do nothing

common/OpTestUtil.py Outdated Show resolved Hide resolved
common/OpTestUtil.py Outdated Show resolved Hide resolved
testcases/BMCRedFish.py Outdated Show resolved Hide resolved
testcases/MachineConfig.py Outdated Show resolved Hide resolved
@abdhaleegit abdhaleegit self-assigned this Apr 16, 2024
@abdhaleegit
Copy link
Collaborator

Please upload the logs

@abdhaleegit
Copy link
Collaborator

@maramsmurthy Please push the latest code

@maramsmurthy maramsmurthy force-pushed the maramsmurthy_ioenlarge_redfish branch 3 times, most recently from 10c385b to 50b7c76 Compare May 8, 2024 17:12
Copy link
Collaborator

@PraveenPenguin PraveenPenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maramsmurthy split commit in at least two commit as that will good to have logical code changes history

common/OpTestUtil.py Outdated Show resolved Hide resolved
common/OpTestUtil.py Outdated Show resolved Hide resolved
testcases/MachineConfig.py Show resolved Hide resolved
@maramsmurthy maramsmurthy force-pushed the maramsmurthy_ioenlarge_redfish branch 2 times, most recently from 6f0e2f1 to 28d5f1c Compare May 28, 2024 09:01
@maramsmurthy
Copy link
Contributor Author

console_output.txt

Console output when test was executed(EBMC - rainier)

@abdhaleegit
Copy link
Collaborator

@maramsmurthy Please rebase the code

@maramsmurthy
Copy link
Contributor Author

20240510100708296825.debug.log

debug log file

@abdhaleegit
Copy link
Collaborator

if self.bmc_type == "FSP_PHYP":
self.cv_FSP.cv_ASM.configure_enlarged_io(iocapacity)

elif self.bmc_type == "EBMC":

@maramsmurthy maramsmurthy force-pushed the maramsmurthy_ioenlarge_redfish branch from 28d5f1c to 198e561 Compare June 13, 2024 13:27
@abdhaleegit
Copy link
Collaborator

@maramsmurthy the code is outdated again,.. looks like unrelated files/changes are part of your PR.. please recheck https://github.com/open-power/op-test/pull/819/files

@maramsmurthy maramsmurthy force-pushed the maramsmurthy_ioenlarge_redfish branch 3 times, most recently from f10437f to 10d3113 Compare June 27, 2024 06:12
@abdhaleegit abdhaleegit self-requested a review July 1, 2024 13:04
testcases/MachineConfig.py Outdated Show resolved Hide resolved
testcases/MachineConfig.py Outdated Show resolved Hide resolved
@PraveenPenguin
Copy link
Collaborator

@maramsmurthy any update here?

@maramsmurthy maramsmurthy force-pushed the maramsmurthy_ioenlarge_redfish branch 2 times, most recently from 36b28cf to ad3cf04 Compare October 28, 2024 05:54
@abdhaleegit abdhaleegit self-requested a review October 28, 2024 05:56
Copy link
Collaborator

@abdhaleegit abdhaleegit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reading a BIOS attribute using Redfish API
Set value to BIOS attribute using Redfish API
IOEnlarger capacity BIOS attribute can be updated and read
Added call for FSP to set IO enlarge capacity value

Signed-off-by: Maram Srimannarayana Murthy <[email protected]>
Removed duplicate API's in both common and machineconf
file and simplified to make use of bmc.rest_api to call
configured_enlarge_io()

Signed-off-by: Abdul Haleem <[email protected]>
@abdhaleegit abdhaleegit force-pushed the maramsmurthy_ioenlarge_redfish branch from 6020020 to 3d8a34b Compare November 19, 2024 13:45
@PraveenPenguin PraveenPenguin merged commit f8d7f82 into open-power:master Nov 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants