cancel
Showing results for 
Search instead for 
Did you mean: 
ecrookshanks
Mission Specialist
Mission Specialist
  • 619 Views

Guided Exercise CI/CD Workflows Permission Error

I'm attempted the guided exercise in Chapter 7 for CI/CD Pipelines, and I can't run the first part of the exercise.  Creating the pipeline works OK, but when running it fails.  After examining the logs with the suggested kubectl command, there is an error around permissions accessing the image as part of the build step - access denied when accessing the registry. I even tried logging in as admin and re-running the pipeline, but got the same error.  What am I missing?

0 Kudos
3 Replies
ecrookshanks
Mission Specialist
Mission Specialist
  • 595 Views

Ok, I *KINDA* solved it, but I'm not sure why I had to (unless there is something I'm missing about quay).  I went to the local quay instance and found the image it was trying to pull.  I tried pulling it local with podman and got the same error ("access to the requested resource is not authorized").  Then I noticed that although the developer user was listed as an admin, the image was private.  For grins and giggles I change the image to public and voila!  It worked like a champ after that.  Still wondering why that was necessary given the permissions, but at least it works now.  Thoughts?

0 Kudos
Huub
Mission Specialist
Mission Specialist
  • 568 Views

Hi,

Just take a look at the 'Instructions' on page 322 at Step 1.3

It's possible that's what you missed.

regards

Huub 
 

 

 

0 Kudos
mecrobio
Flight Engineer
Flight Engineer
  • 567 Views

Hi,

The classroom uses a internal Quay instance.
In that instance we mirror all the images required for the different exercises.

Due to a technical limitation we have at the moment, when we mirror the different container images, all of them are private by default.
For that reason, in the first step of the exercise we request to change the repository visibility to public.

We have in our TODO list to improve that.

Thank you!

 

0 Kudos
Join the discussion
You must log in to join this conversation.