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

Developer NVIDIA (Improving on Failure Reason and logic of Force Update and some testcases) #45

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

dhruvr-nvidia
Copy link
Collaborator

Changes:

  1. Multipart Force Update will happen only for backup or old version fwpkg.
  2. Added try exception block in precheck and verify functions.
  3. Improving on the Failure Reason.
  4. Improved Logic on F8 testcase so that it does not enter infinite loop.
  5. Minor bugfix in F88 testcase.

Tests:
Sanity/Regression tests were run.

…ailure Reason. Added a check in F8 testcase

Signed-off-by: dhruvr <[email protected]>
@@ -444,7 +454,7 @@ def RedFishFWUpdate(self, BinPath, URI, targets=[], is_multipart=False):
headers = {"Content-Type": "multipart/form-data"}
body = {
"UpdateFile": (BinPath, open(BinPath, "rb"), "application/octet-stream"),
"UpdateParameters" : ("Targets", json.dumps({"Targets": targets, "ForceUpdate": True if self.dut().multipart_force_update else False}),'application/json')
"UpdateParameters" : ("Targets", json.dumps({"Targets": targets, "ForceUpdate": True if is_force_update else False}),'application/json')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we saying that downgrade requires a ForceUpdate? Then we should this ask this as a standard?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes for Multipart Update we need ForceUpdate for downgrade. We have the ForceUpdate under UpdateParameters in the redfish schema: https://redfish.dmtf.org/schemas/v1/UpdateService.v1_14_1.json
For update using HttpPushUri, ForceUpdate is not needed.

@MeritedHobbit
Copy link
Collaborator

We are almost done reviewing this PR. Apologies for the delay.

@MeritedHobbit MeritedHobbit merged commit 7658ff3 into developer Nov 12, 2024
1 check passed
@MeritedHobbit MeritedHobbit deleted the developer_nvidia branch November 12, 2024 03:24
@MeritedHobbit MeritedHobbit restored the developer_nvidia branch November 12, 2024 03:24
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.

2 participants