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:
I finished the lab, and re-do again. The problem was still the same.
What I missed in this lab ? Can anyone help ? Thanks.
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 ?
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.
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.
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:
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.