-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display StatefulSet errors when notebook pod fails to create #1703
display StatefulSet errors when notebook pod fails to create #1703
Conversation
b76f1a8
to
38ff7a6
Compare
38ff7a6
to
ae0f2a9
Compare
The fix here isn't ideal as we keep having to expand our search to identify what's going on with the notebook. I've created a feature request for the notebook controller to update the Notebook with relevant status: opendatahub-io/kubeflow#159 |
Yes, I agree, if we start adding a lot of patches we are loosing our track. The main goal of the dashboard is to reflect what's happening in the cluster and add an overlay of features. But if we keep up adding logic to some flow it's a great indication that it might be fixed by other controller. |
Do we have any control over the error text presented? Its definitely hard to parse if you don't have much OpenShift/Kubernetes knowledge. |
@kywalker-rh unfortunately the message is just a blob of text. We control the line formatting though:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first pass of the code, it looks great, let me test it in my cluster (i need to set it up first cause my last review broke the operator) and i can stamp an approval
</ListItem> | ||
))} | ||
{events | ||
.slice() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just out of curiosity, why the slice
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christianvogt yeah -- why nvm, I misread the diff -- I thought slice was only used in some cases.slice
?
@lucferbux .reverse()
mutates the array -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Tested it and it works as expected, managed to get logs for failed allocation but for successful installations too and codes looks great too
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lucferbux The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: #793
Description
When
LimitRange
prevents the creation of notebook server pods, no errors are displayed in the UI. The error occurs on theStatefulSet
. This change reads events from theStatefulSet
when no pod is present. Once a pod is present, we go back to reading the pod events as was done previously.Added a new error message
Failed to create pod
to represent this state (see screen shots below).cc @kywalker-rh
How Has This Been Tested?
Limit Range YAML
Workbench:
LimitRange
in the newly created project / namespaceLimitRange
Starting...
text in the workbench status column to open the status popupEvent log
Failed to create pod
LimitRange
resourceJupyter notebook:
LimitRange
in default ODH namespace. eg.opendatahub
Applications
=>Enabled
in the left navLaunch application
LimitRange
Failed to create pod
Cancel
LimitRange
resourceStart server
Test Impact
no new tests
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main