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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 2 times, most recently from babbaef to f10437f Compare June 26, 2024 05:20
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 <msmurthy@linux.vnet.ibm.com>
@maramsmurthy maramsmurthy force-pushed the maramsmurthy_ioenlarge_redfish branch from f10437f to 10d3113 Compare June 27, 2024 06:12
'iocapacity=[0-9]+', str(self.machine_config))[0].split('=')[1]
elif self.bmc_type == "FSP_PHYP:"
ioenlargecapacity = re.findall(
'iocapacity=[0-9]+', str(self.machine_config))[0].split('=')[1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

why if else needed as in both case logic same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, Will update it as suggested

@abdhaleegit abdhaleegit self-requested a review July 1, 2024 13:04
elif self.bmc_type == "FSP_PHYP":
self.cv_ASM = OpTestASM(self.args.bmc_ip,
self.args.bmc_username,
self.args.bmc_password)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not feel a need to instantiate the object explicitly, as when the cv_System objects is intanstiated.. you get cv_FSP and you can use the same object to call self.cv_FSP.configure_enlarged_io() which will internal created the cv_ASM object.. try this

Copy link
Collaborator

Choose a reason for hiding this comment

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

also similarly we can use self.cv_BMC.io_enlarge_capacity() can be directly used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, Trying to allign the code to work with both bmc and FSP

@@ -494,6 +519,11 @@ def CecSetup(self):
self.lmb_setup()
if self.cec_dict['hugepages'] is not None:
self.hugepage_16gb_setup()
if self.cec_dict['iocapacity'] is not None:
if bmc_type == "EBMC_PHYP":
self.io_enlarge_cpacity()
Copy link
Collaborator

Choose a reason for hiding this comment

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

also similarly we can use self.cv_BMC.io_enlarge_capacity() can be directly used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, WIll address this as suggested

@PraveenPenguin
Copy link
Collaborator

@maramsmurthy any update here?

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