Closed michael-valdron closed 1 year ago
Devfile registry server logs do not show any error has occurred, however does miss request logs when client errors which shows when client does a successful fetch of the stack.
After further investigation I found that the image tag for the OCI registry container used on our staging deployment was a year outdated. This image would lack the sufficient security permissions needed for the required setup security context definitions: https://github.com/devfile/registry/blob/47eee922b60b5a90e0fbcbf9966300c990127de4/.ci/deploy/devfile-registry.yaml#L142
Since updating this image tag we have noticed no more occurrences of these errors.
Updating the image tag has been confirmed to resolve this issue, closing now.
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area registry
What versions of software are you using?
Go project
Operating System and version: N/A
Go Pkg Version: 1.17
Bug Summary
Describe the bug:
While using
odo
version 3 against our community registry staging deployment, there is an error when trying to fetch thelatest
version of the stack. The error thrown appears to be a not found error type when the client attempts to fetch content descriptors or the manifest from the OCI registry.This error happens at inconsistent attempts and seems to successfully fetch the stack at inconsistent number of tries. After trying on other deployments, this seems to be isolated to the community staging deployment.
To Reproduce:
Run the following commands with
odo
version 3:go stack
python stack
java-springboot stack
Expected behavior
The output of any of these
odo init
commands should be something like the following:Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
Manifest not found error output
Content descriptor error output
Server Log
Additional context
Any workaround?
No official workarounds have been found, however since the errors do not happen every time it can be retried for a successful fetch.
Suggestion on how to fix the bug
An update to the image tag for the OCI registry container: https://github.com/devfile/api/issues/1078#issuecomment-1483285440
Target Date: 03-27-2023