-
Notifications
You must be signed in to change notification settings - Fork 24
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
[BUG] Not able to install tools from OpenShift Mirror #58
Comments
If your use case satisfies, please feel free to use input |
it looks like there's been a redirect added:
if I add the Notice the It seems that curl handles the invalid URL correctly by treating it as a path relative to the original URL - but the HTTP client used in this action does not handle it correctly. The mirror team should probably be setting this header correctly to the full URL and not just a relative path. Or maybe this should be considered a bug in the actions/http-client - I'm not sure what the specification is for relative redirects. Either way this can be worked around on the tools-installer side if you tweak how it handles redirects or just use a different HTTP client that handles this better. https://github.com/redhat-actions/openshift-tools-installer/blob/main/src/mirror-client-finder/directory-finder.ts#L58 (also that Hope that helps |
If you browse the mirror it's also received a facelift so I suppose now they've moved to the new mirror we were warned about - and it ended up breaking this action after all! 🤯 |
oc and helm are not available on source: github 🤕 |
Yes, you can find the list of tools that are available on GitHub in the following list https://github.com/redhat-actions/openshift-tools-installer#supported-tools. |
@tetchel I noticed a strange thing if you put
I think this solution will work for us. But ideally, I don't think this should happen as the OpenShift Mirror team told us that transition won't be a breaking change. |
@divyansh42 it doesn't look like redhat-actions/openshift-tools-installer@v1 would take an url so we can also not pass the additional slash. Does somebody from Redhat know how long it takes until this issue is resolved? Our development team can not merge any PR's at the moment and deployments are no longer possible through github actions. |
We are working on a fix for this. Hopefully, by the end of the day, we'll come up with the patch. |
@urswiss We have fixed this issue, could you please re-run your workflows and confirm. |
@divyansh42 I can confirm that it is working again. Thanks for fixing this! |
@urswiss I am wondering if caching is the case here. With the updated OpenShift mirror, probably older cached versioned is not matched with the new version, hence it has to download the binaries once again. |
Thanks a lot for getting on top of this! |
@divyansh42 I ran it a couple of times now, and it's always around 3 minutes. But I can't rule out that it is something on our end (we have a Openshift inside the company). We will monitor the situation in the next few days. Current situation (3 minutes) Yesterday morning (17 seconds) |
@urswiss You are running on GitHub enterprise, so cache can't be a reason for this time difference. |
As a data point, I ran a bare bones install in this test repo https://github.com/jduimovich/bench-install which installed oc on github in cached and not-cached modes. Both run in small numbers of seconds. This is the uncached run (5s) and the cached (not shown) is in 2s. |
Resolved in #59 |
All the nightly checks are failing as none of the tools can be installed from the OpenShift Mirror.
We are investigating this problem and will update here as soon as we fix the bug.
The text was updated successfully, but these errors were encountered: