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

image-check issue for internal registry #63

Open
gitmedur opened this issue Jun 1, 2023 · 5 comments
Open

image-check issue for internal registry #63

gitmedur opened this issue Jun 1, 2023 · 5 comments

Comments

@gitmedur
Copy link

gitmedur commented Jun 1, 2023

Hi,
Getting this in image-check task on OCP 4.10 during pipelinerun.
oc -n cicd logs petclinic-build-dev-75x4fy-image-check-pod -c step-rox-image-check
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 65.2M 100 65.2M 0 0 247M 0 --:--:-- --:--:-- --:--:-- 247M
Getting roxctl
ERROR: Checking image failed: could not check build-time alerts: rpc error: code = Internal desc = image enrichment error: error getting metadata for image: image-registry.openshift-image-registry.svc:5000/cicd/spring-petclinic@sha256:4b6e957cb83f6e5687b71c012343308fb15ac0bce23c1be85d9e2a29d340b29c error: getting metadata from registry: "Autogenerated https://image-registry.openshift-image-registry.svc:5000 for cluster development": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:4b6e957cb83f6e5687b71c012343308fb15ac0bce23c1be85d9e2a29d340b29c": http: non-successful response (status=401 body=""). Retrying after 3 seconds...

I found this: https://access.redhat.com/solutions/6993372
So wondering how this is working on your side..
Thanks

@rcarrata
Copy link
Owner

rcarrata commented Jun 1, 2023

have you checked that the roxctl pod step have the proper permissions to access to the internal registry?
I'm using the internal registry (even though it's not supported OOTB, but it's a PoC/demo, in prod other registries such as Quay, ACR, etc can be used) and therefore the ACS needs to have the proper permissions to access (check the guide in https://redhat-scholars.github.io/acs-workshop/acs-workshop/11-integrations.html#integrate_with_internal_openshift_registry for more information)

Which version of OCP are you using? and the version of ACS is installed?

@gitmedur
Copy link
Author

gitmedur commented Jun 1, 2023

Hi, This is a 4.10.59 OCP with v3.74.3 ACS.
What is see is it's the same case for image-scan step.
As suggested, created the integration with the internal registry. Now it's ok.
Thank you..

@gitmedur gitmedur closed this as completed Jun 1, 2023
@gitmedur
Copy link
Author

gitmedur commented Jun 1, 2023

Sorry to inform the problem still exists in image-scan and image-check after creating the docker registry integration..
step-rox-image-check
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 65.2M 100 65.2M 0 0 232M 0 --:--:-- --:--:-- --:--:-- 232M
Getting roxctl
ERROR: Checking image failed: could not check build-time alerts: rpc error: code = Internal desc = image enrichment error: error getting metadata for image: image-registry.openshift-image-registry.svc:5000/cicd/spring-petclinic@sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005 errors: [getting metadata from registry: "ocp-registry": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body=""), getting metadata from registry: "Autogenerated https://image-registry.openshift-image-registry.svc:5000 for cluster development": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body="")]. Retrying after 3 seconds...
ERROR: Checking image failed: could not check build-time alerts: rpc error: code = Internal desc = image enrichment error: error getting metadata for image: image-registry.openshift-image-registry.svc:5000/cicd/spring-petclinic@sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005 errors: [getting metadata from registry: "ocp-registry": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body=""), getting metadata from registry: "Autogenerated https://image-registry.openshift-image-registry.svc:5000 for cluster development": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body="")]. Retrying after 3 seconds...
ERROR: Checking image failed: could not check build-time alerts: rpc error: code = Internal desc = image enrichment error: error getting metadata for image: image-registry.openshift-image-registry.svc:5000/cicd/spring-petclinic@sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005 errors: [getting metadata from registry: "ocp-registry": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body=""), getting metadata from registry: "Autogenerated https://image-registry.openshift-image-registry.svc:5000 for cluster development": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body="")]. Retrying after 3 seconds...
ERROR: checking image failed after 3 retries: could not check build-time alerts: rpc error: code = Internal desc = image enrichment error: error getting metadata for image: image-registry.openshift-image-registry.svc:5000/cicd/spring-petclinic@sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005 errors: [getting metadata from registry: "ocp-registry": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body=""), getting metadata from registry: "Autogenerated https://image-registry.openshift-image-registry.svc:5000 for cluster development": Failed to get the manifest digest : Head "https://image-registry.openshift-image-registry.svc:5000/v2/cicd/spring-petclinic/manifests/sha256:8e6f73cf74a137e1a3f2f0d357b5266b2a19a91df5e13ca502ec9640f487b005": http: non-successful response (status=401 body="")]

@gitmedur gitmedur reopened this Jun 1, 2023
@rcarrata
Copy link
Owner

rcarrata commented Jun 2, 2023

Lemme try to reproduce it in a 4.10 env and I'll let you know. Thanks for opening the request!

@rcarrata
Copy link
Owner

Screenshot 2023-07-19 at 16 59 58
Tested and worked as expected in 4.10+ (tested also in 4.13).

Can you check this if it still happening? Can you please try in another cluster?

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

No branches or pull requests

2 participants