You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As raised by @harshad16 in #210, there is an issue with the generateWorkspaceState() method in the Workspace controller.
The issue is that we only look at the main container's status when checking for issues like ImagePullBackOff, but there could be multiple container or initContainers with issues preventing the Pod from becoming ready.
We need to update the following code so that it looks at all the container statuses in the Pod's status.containerStatuses and status.initContainerStatuses and looks for any which are in a "waiting" state with CrashLoopBackOff or ImagePullBackOff reasons, and then aggregate the errors into the stateMessage.
NOTE: because there could be different reasons for each one being in a waiting state, we should FIRST look for any ImagePullBackOff reasons and then only return all those as the state, then SECOND check for CrashLoopBackOff so we present the most pressing issues to the user in the state first.
The text was updated successfully, but these errors were encountered:
@ederign: GitHub didn't allow me to assign the following users: harshad16.
Note that only kubeflow members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
As raised by @harshad16 in #210, there is an issue with the
generateWorkspaceState()
method in the Workspace controller.The issue is that we only look at the
main
container's status when checking for issues likeImagePullBackOff
, but there could be multiplecontainer
orinitContainers
with issues preventing the Pod from becoming ready.We need to update the following code so that it looks at all the container statuses in the Pod's
status.containerStatuses
andstatus.initContainerStatuses
and looks for any which are in a "waiting" state withCrashLoopBackOff
orImagePullBackOff
reasons, and then aggregate the errors into the stateMessage.notebooks/workspaces/controller/internal/controller/workspace_controller.go
Lines 1051 to 1076 in 6f14790
NOTE: because there could be different reasons for each one being in a waiting state, we should FIRST look for any
ImagePullBackOff
reasons and then only return all those as the state, then SECOND check forCrashLoopBackOff
so we present the most pressing issues to the user in the state first.The text was updated successfully, but these errors were encountered: