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

cache: skip non-kickstart treeinfo [RHELDST-24308] #710

Merged
merged 1 commit into from May 8, 2024

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented May 7, 2024

It turns out there is a special case in the current CDN config forcing a fast 404 response on treeinfo URLs not ending in "/kickstart/treeinfo". A side-effect of forcing that response is that any requests to cache flush on such a path will fail, e.g.

flush /some/kickstart/treeinfo => OK

flush /some/treeinfo => always fails

As such, we'll need a special case to filter out these paths from any attempted cache flushes. There is never any need for cache flush if the response is forced to 404 anyway.

Note this is unlikely to come up in any real publishes of kickstart repos since those are always using /kickstart in the path. It came up in the context of migrating some old content to exodus-cdn, because some files named "treeinfo" exist underneath /origin/files which will trigger the usual cache flush attempts.

It turns out there is a special case in the current CDN config forcing
a fast 404 response on treeinfo URLs not ending in "/kickstart/treeinfo".
A side-effect of forcing that response is that any requests to cache
flush on such a path will fail, e.g.

    flush /some/kickstart/treeinfo => OK

    flush /some/treeinfo => always fails

As such, we'll need a special case to filter out these paths from any
attempted cache flushes. There is never any need for cache flush if the
response is forced to 404 anyway.

Note this is unlikely to come up in any real publishes of kickstart
repos since those are always using /kickstart in the path.
It came up in the context of migrating some old content to exodus-cdn,
because some files named "treeinfo" exist underneath /origin/files which
will trigger the usual cache flush attempts.
@rohanpm rohanpm marked this pull request as ready for review May 8, 2024 00:02
@rohanpm rohanpm merged commit 6e53fc9 into release-engineering:master May 8, 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