openshift-instruqt / instruqt

Repository for the Red Hat and OpenShift Developers Learning Portal, powered by Instruqt.
https://developers.redhat.com/learn/openshift
32 stars 36 forks source link

ALL OpenShift 4.11 labs cannot access pods logs #274

Closed blues-man closed 1 year ago

blues-man commented 1 year ago

In which track did this bug occur?

what is the url for the track?

https://developers.redhat.com/learn/openshift/devops-openshift

At what step of the track did this happen?

kubectl logs <name_of_the_pod>

oc logs <name_of_the_pod>

Describe the bug

Apparently to some certificate expire issue, kubectl logs doesn't work anymore in this 4.11 image.

Logs or error messages

Client Version: 4.11.0-202209201358.p0.g262ac9c.assembly.stream-262ac9c
Kustomize Version: v4.5.4Server Version: 4.11.7
Kubernetes Version: v1.24.0+3882f8f
[root@crc-lgph7-master-0 /]# tkn task start --showlog helloTaskRun started: hello-run-lpb72Waiting for logs to be available...
error in getting logs for step say-hello: error getting logs for pod hello-run-lpb72-pod(step-say-hello) : the server has asked for the client to provide credentials ( pods/log hello-run-lpb72-pod)
[root@crc-lgph7-master-0 /]# kubectl logs hello-run-lpb72-pod
Defaulted container "step-say-hello" out of: step-say-hello, prepare (init)
error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log hello-run-lpb72-pod))

Expected behavior

kubectl logs oc logs tkn task logs

work

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

All Smartphone (please complete the following information):

All

Additional context

All 4.11 images are broken

cedricclyburn commented 1 year ago
cedricclyburn commented 1 year ago

The rest of the labs with the issue have been fixed with https://github.com/openshift-instruqt/instruqt/pull/275