cancel
Showing results for 
Search instead for 
Did you mean: 
jonawang
Flight Engineer
Flight Engineer
  • 3,733 Views

pods mysql & quote-php encountered ErrImagePull / ImagePullBackOff status in DO180 ch07s07 Lab

Jump to solution

Hi OpenShift experts,

   During practicing DO180 Ch07S07 Lab, I encountered the problem that the two pods -- mysql and quote-php -- kept in status of "ErrImagePull" and "ImagePullBackOff" interchangingly after executing the "oc process quote-php-persistent ... | oc create -f -" command (DO180 Version 4.6).

The output of "oc get pods -w" were:

pods in error status .png

  I finished the lab, and re-do again. The problem was still the same.

  What I missed in this lab ? Can anyone help ? Thanks.

Labels (1)
1 Solution

Accepted Solutions
KayvonS
Mission Specialist
Mission Specialist
  • 3,651 Views

Sure, you just need to use your browser to navigate to quay.io/<username> and go to the image's settings and set it to public.Screen Shot 2022-04-05 at 8.41.13 AM.png

View solution in original post

8 Replies
KayvonS
Mission Specialist
Mission Specialist
  • 3,713 Views

Did you make the image repository the image is being pulled from public?

jonawang
Flight Engineer
Flight Engineer
  • 3,705 Views

I did not set any permission on quay.io, it is default. Checking the image permission, it is Admin (for my quay.io userid) which allow pull permission. Do I need to set for public ?

 

Thanks.

0 Kudos
jonawang
Flight Engineer
Flight Engineer
  • 3,702 Views

I just executed the "podman pull quay.io/<my_quay_id>/do180-quote-php" command to pull the image down, it worked fine. FYI.

0 Kudos
KayvonS
Mission Specialist
Mission Specialist
  • 3,690 Views

Hi Jon, Yes, try setting it to public instead of leaving it at its default.  Since it's Open Shift that's pulling the image using its builder service account, it does not have access to the same credentials that podman uses to authenticate with the quay.io.  Unless you create a secret and pass the quayio credentials into it and link it to the openshift 'builder' service account, you would need to set the repo as 'public' so the openshift builder can access the image. Go ahead and set the repository to "public", delete all your created resources (pds,services, etc) and re-apply the template.  

0 Kudos
jonawang
Flight Engineer
Flight Engineer
  • 3,677 Views

Hi KayvonS,

   Thanks for your comments. About to set the quay.io repo as "public", would you please give me a hint on how to do it ? Thank you again.

0 Kudos
KayvonS
Mission Specialist
Mission Specialist
  • 3,652 Views

Sure, you just need to use your browser to navigate to quay.io/<username> and go to the image's settings and set it to public.Screen Shot 2022-04-05 at 8.41.13 AM.png

jonawang
Flight Engineer
Flight Engineer
  • 3,604 Views

Thank you, KayvonS.

After setting both images in my quay.io to "public", I successfully complete this lab.

 

jonawang
Flight Engineer
Flight Engineer
  • 3,700 Views

Hi KayvonS,

Your message gave me a hint to think over the permission/authorization. I displayed the pod with "oc describe pod quote-php" command, some output as:

pod in error 3.png

Some error messages showed: "... Error reading manifest latest in quay.io/jonawang/do180-quote-php: unauthorized: access to the requested resource is not authorized"

Even knowing this error, I have no idea how to resolve it (how to authorize) ? Any comment ? Thanks.

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