Skip to content
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

ImagePullBackOff is not handled as error during workbench start #3260

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dpanshug
Copy link
Contributor

@dpanshug dpanshug commented Sep 26, 2024

Closes: RHOAIENG-1132

Description

Added case to handle notebook failure when reason === "BackOff"

Screenshot 2024-09-26 at 5 42 18 PM

Screenshot 2024-09-26 at 2 01 29 PM

How Has This Been Tested?

  1. Create a custom image from Settings > Notebook images (e.g., quay.io/myfakeimages/myimage:1234)
  2. create a workbench and select the custom image as notebook image
  3. compare the pod and workbench status

Test Impact

N/A

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main
    @xianli123

@dpanshug
Copy link
Contributor Author

@simrandhaliw tagging you as well, since you were involved in this UX discussion.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 84.86%. Comparing base (947c09b) to head (0390bef).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
frontend/src/pages/projects/notebook/utils.ts 0.00% 3 Missing ⚠️
frontend/src/utilities/notebookControllerUtils.ts 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3260      +/-   ##
==========================================
- Coverage   84.87%   84.86%   -0.01%     
==========================================
  Files        1306     1306              
  Lines       29173    29179       +6     
  Branches     7859     7861       +2     
==========================================
+ Hits        24761    24764       +3     
- Misses       4412     4415       +3     
Files with missing lines Coverage Δ
frontend/src/pages/projects/notebook/utils.ts 32.31% <0.00%> (-0.61%) ⬇️
frontend/src/utilities/notebookControllerUtils.ts 38.75% <0.00%> (-0.50%) ⬇️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 947c09b...0390bef. Read the comment docs.

@dpanshug
Copy link
Contributor Author

dpanshug commented Sep 26, 2024

@andrewballantyne @simrandhaliw with the recent design change in the workbenches #3207 , the tooltip is removed and instead of "Starting" it is displaying "Failed" as the status is Error.

Before
Screenshot 2024-09-26 at 1 59 32 PM

With latest design
Screenshot 2024-09-26 at 5 42 18 PM

Can you please confirm if the "Failed" status works in this case of ImagePullBackOff?

@andrewballantyne
Copy link
Member

ImagePullBackOff errors are sometimes transient... Failed is probably not the best word... but I don't think it's technically the wrong word.

@dpanshug is this UI the same on the Workbench Table as well as the Project screen?

@dpanshug
Copy link
Contributor Author

@dpanshug is this UI the same on the Workbench Table as well as the Project screen?

@andrewballantyne yes it's same

Screenshot 2024-09-27 at 2 38 58 PM

Copy link
Contributor

@manaswinidas manaswinidas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
Screenshot 2024-09-27 at 5 41 45 PM
Screenshot 2024-09-27 at 5 42 10 PM

Copy link
Contributor

openshift-ci bot commented Sep 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: manaswinidas
Once this PR has been reviewed and has the lgtm label, please assign manosnoam for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dpanshug
Copy link
Contributor Author

/retest

@DaoDaoNoCode
Copy link
Member

@dpanshug I am not sure why the file scan keeps failing. Maybe try to rebase the main branch and push it again?

@manaswinidas
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 27, 2024
@Gkrumbach07
Copy link
Member

the tooltip error says it is a [Warning], should there be another state for this notebook status chip?

@xianli123
Copy link

thx @dpanshug /lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants