-
Notifications
You must be signed in to change notification settings - Fork 172
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
ospkgs: fix checks on osimage
.pkgdir
#7380
base: master
Are you sure you want to change the base?
Conversation
@gurevichmark @besawn for your kind attention. |
@samveen Thank you for the contribution. @gurevichmark and I would like to try to figure out why our internal tests haven't been catching this issue before we merge this PR. We will follow up soon, thanks. |
@besawn Would you point me to the OSImage definitions being used for the internal tests, particularly the pkgdir attribute, which should be able to help me give you the point of failure in the tests. As for the github workflow checks, the environment used in the tests is
|
@samveen Thanks for your contribution. I was able to recreate this problem in our environment. However, I think the solution under #7371 is better. With an osimage which has
and the first one is a problem:
If I use the solution proposed in #7371 I get 3
and
|
|
osimage
.pkgdir
@samveen Is there a case where the solution under #7371 does not work ? I have tried that fix with multiple |
I have tested the new ospkgs and it works for me. Thanks for the fix! Take into account the two commits (6397efd a95e293) since the first one (6397efd) standalone didn't work. I tried it before the solution proposed in #7371 and does the same issue but with the first repo file with void URL instead the third one. However, with the commit a95e293 now the postscript does the indexing properly without wrong URLs. In addition, not directly related to this bug/fix, the ospkgs postscript creates one repo file per repository but the files created at install time have merged the two first repos into one file (that causes a discrepancy with the number of repo files before and after).
I think this behavior and the change of the repo files names (local*.repo vs xCAT*.repo) can cause confusions and can be more prone to errors. |
|
The PR is to fix issue #7370
The code for OSPKGDIR handling in theospkgs
postscript has a bug in the rhel section where the the tracking index is used before incrementing, causing the url path for the 2nd repo to be overwritten by the path of the 3rd one, and the 3rd one is left with a blank repo url.a classic case of use before increment bugThe
pkgdir
handling code has slowly mutated into multiple overlapping sections such that bugs have been introduced into the processing. This PR changes the pkgdir handling code to be clearer and simpler in organization to: