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

Changes to detect if pkg file needs to be updated thro IMC reboot. #257

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

sudhar-krishnakumar
Copy link
Contributor

@sudhar-krishnakumar sudhar-krishnakumar commented Nov 14, 2024

Resolves-> https://jira.devtools.intel.com/browse/ISSE-71
Handles both update cases below:
Case1(P4 package update): Changes to detect if pkg file needs to be updated thro IMC reboot.
In case, where ipu-plugin has a different P4 package,
compared to what is on IMC using md5sum.
With this PR, P4 package update will be handled.
Case2(Node policy update): Also handles case, where load_custom_pkg.sh has different entries in ipu-plugin versus on IMC.
So node policy update also gets handled.

ipu-plugin/pkg/ipuplugin/lifecycleservice.go Outdated Show resolved Hide resolved
}

log.Infof("uuidFileExists->%v, p4pkgMatch->%v", uuidFileExists, p4pkgMatch)
return true, fmt.Sprintf("uuidFileExists->%v, p4pkgMatch->%v", uuidFileExists, p4pkgMatch)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we are not using return string value at the caller when the uuid file exists. Just "return turn, nil" here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@arunvelayutham , this is just there for any future use, on caller side.

  In case, where ipu-plugin has a different P4 package,
  compared to what is on IMC using md5sum.
  Also added changes to detect change in load_custom_pkg.sh, with what
  is part of ipu-plugin module, versus, what exists on IMC.
@sudhar-krishnakumar sudhar-krishnakumar force-pushed the upgrade_2 branch 4 times, most recently from ec9ab2f to 8b386a9 Compare November 16, 2024 00:56
@sudhar-krishnakumar sudhar-krishnakumar merged commit af7b580 into main Nov 18, 2024
16 checks passed
@sudhar-krishnakumar sudhar-krishnakumar deleted the upgrade_2 branch January 22, 2025 02:15
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