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

Fix missing files from kickstart indexes [RHELDST-22387] #661

Merged

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented Jan 9, 2024

RHELDST-22148 introduced the concept of a partial autoindex, which is triggered as soon as entry points are added onto a publish without waiting until commit.

This introduced a problem for kickstart repos. The problem is that a kickstart repo is simultaneously a valid yum repo, containing both yum and kickstart entrypoints. There is no guarantee in which order the client will add these onto a publish.

If the client added yum repodata first, partial autoindex could be triggered and successfully parse the repo as a yum repo (only). If the client then later added kickstart repodata, the autoindex would not be regenerated to include kickstart files, because the index is treated as immutable and assumed valid if it already exists on the publish.

This commit fixes the problem by effectively disabling partial autoindex for kickstart repos, allowing them to instead generate indexes at commit time as it worked originally.

This can be considered more of a workaround than a proper fix. A better fix might be done later to make autoindex_partial work correctly for kickstart repos rather than disabling it.

RHELDST-22148 introduced the concept of a partial autoindex, which is
triggered as soon as entry points are added onto a publish without
waiting until commit.

This introduced a problem for kickstart repos. The problem is that a
kickstart repo is simultaneously a valid yum repo, containing both yum
and kickstart entrypoints. There is no guarantee in which order the
client will add these onto a publish.

If the client added yum repodata first, partial autoindex could be
triggered and successfully parse the repo as a yum repo (only). If the
client then later added kickstart repodata, the autoindex would not be
regenerated to include kickstart files, because the index is treated
as immutable and assumed valid if it already exists on the publish.

This commit fixes the problem by effectively disabling partial autoindex
for kickstart repos, allowing them to instead generate indexes at commit
time as it worked originally.

This can be considered more of a workaround than a proper fix. A better
fix might be done later to make autoindex_partial work correctly for
kickstart repos rather than disabling it.
@rohanpm rohanpm marked this pull request as ready for review January 9, 2024 04:22
@rohanpm rohanpm merged commit a47dee9 into release-engineering:master Jan 9, 2024
3 checks 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.

None yet

2 participants