jonawang
Flight Engineer
Flight Engineer
  • 1,030 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
  • 948 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
  • 1,010 Views

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

jonawang
Flight Engineer
Flight Engineer
  • 1,002 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
  • 999 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
  • 987 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
  • 974 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
  • 949 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
  • 901 Views

Thank you, KayvonS.

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

 

jonawang
Flight Engineer
Flight Engineer
  • 997 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.