cancel
Showing results for 
Search instead for 
Did you mean: 
Daniella1
Mission Specialist
Mission Specialist
  • 2,250 Views

Stuck in lab :(

Jump to solution

I am currently attempting to solve a lab exercise for course DO280

A pod does not start. The error is that it fails to pull todo-api:latest from the registry.

I've tried to debug but I can't quite figure out which registry it's trying to pull from. I suppose it must have a default configured somewhere or perhaps it assumes the image will be generated as part of an earlier build step and, as such, will be available on localhost. But it's not.

I've already peeked at the solution but to no avail. 

Specifically, I'm stuck at step 7.3 of lab exercise "Building Cloud-Native Applications for OpenShift".

oc get pods shows todo-api-xyzabc with status ImagePullBackOff.

oc describe todo-api-xyzabc complains about "Failed to pull image "todo-api:latest": rpc error: code = Unknown desc = ...
denied: requested access to the resource is denied
unauthorized: authentication required

ErrImagePull
ImagePullBackOff
Back-off pulling image "todo-api:latest"

Which is all well and good but it doesn't tell me TO WHICH ENDPOINT authorization is failing, and I'm not sure how to figure out what exactly it's trying to do. 

I've tried going through the source in hopes of finding a Dockerfile that needed adjusting. While there are some files it looks like they don't need adjustments

I've also tried inspecting stuff through the web GUI but it's basically just the same errors, I couldn't find any new information in there. 

Earlier exercies with images pulled from Quay and such did not cause any issues for me. Of course, I suppose it could also be a temporary infrastructure failure...

I'm not sure how to debug this further, any help or pointers would be appreciated

Labels (3)
1 Solution

Accepted Solutions
Daniella1
Mission Specialist
Mission Specialist
  • 2,153 Views

Thanks for your input. Indeed I was talking about DO288v4.10 Chapter 08 section 7. I managed to solve it. Well, the automatic grading isn't passing me because it complains about me not using a configuration map, but that's silly because Step 5 of the Lab Exercise clearly states:

"You may choose to define the required environment variables in a custom configuration map resource, or directly in the deployment configuration."

The deployment worked, app is running fine, I can reach the api and so on and so forth, so I will be granting myself a pass here and end the exercise.

View solution in original post

6 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 2,244 Views

Hello @Daniella1 !

Which chapter and section number is this from DO280 v4.12 course ? Have you already raised a support case for this ?

Chetan_Tiwary_
Community Manager
Community Manager
  • 2,237 Views

Hello @Daniella1 !

 I think you are talking about DO288v4.10 Chapter 08 section 7.

 There is an outage with quay.io at this moment : 

Chetan_Tiwary__0-1697212526840.png

I guess this is causing the issue for you. I suggest to wait till this is resolved. 

Chetan_Tiwary_
Community Manager
Community Manager
  • 2,218 Views

The quay issue seems resolved sometimes back. Please retry the lab exercise and let me know if you are still getting the same issue. 

Daniella1
Mission Specialist
Mission Specialist
  • 2,154 Views

Thanks for your input. Indeed I was talking about DO288v4.10 Chapter 08 section 7. I managed to solve it. Well, the automatic grading isn't passing me because it complains about me not using a configuration map, but that's silly because Step 5 of the Lab Exercise clearly states:

"You may choose to define the required environment variables in a custom configuration map resource, or directly in the deployment configuration."

The deployment worked, app is running fine, I can reach the api and so on and so forth, so I will be granting myself a pass here and end the exercise.

Chetan_Tiwary_
Community Manager
Community Manager
  • 2,145 Views

Ok @Daniella1 ! Thanks for the update! 

I was trying to reproduce your issue in a fresh lab of DO288 v 4.10 , but could not do the lab-configure prerequisite that time due to the quay outage - so thought it is related to it.

Glad that you are able to continue the course. 

0 Kudos
Daniella1
Mission Specialist
Mission Specialist
  • 2,120 Views

It was a good guess but seems to just have been a weird coincidence, as the exercise in question didn't require connection to Quay

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