From 39634b5eb445dc858f9793bce49b2043d2be0145 Mon Sep 17 00:00:00 2001 From: Dipanshu Gupta Date: Thu, 26 Sep 2024 14:17:37 +0530 Subject: [PATCH] ImagePullBackOff is not handled as error during workbench start --- frontend/src/pages/projects/notebook/utils.ts | 3 +++ frontend/src/utilities/notebookControllerUtils.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/frontend/src/pages/projects/notebook/utils.ts b/frontend/src/pages/projects/notebook/utils.ts index 7a42db512a..e2fcff6783 100644 --- a/frontend/src/pages/projects/notebook/utils.ts +++ b/frontend/src/pages/projects/notebook/utils.ts @@ -239,6 +239,9 @@ export const useNotebookStatus = ( if (!gracePeriod && lastItem.reason === 'FailedScheduling') { currentEvent = 'Insufficient resources to start'; status = EventStatus.ERROR; + } else if (!gracePeriod && lastItem.reason === 'BackOff') { + currentEvent = 'ImagePullBackOff'; + status = EventStatus.ERROR; } else if (lastItem.type === 'Warning') { currentEvent = 'Issue creating notebook container'; status = EventStatus.WARNING; diff --git a/frontend/src/utilities/notebookControllerUtils.ts b/frontend/src/utilities/notebookControllerUtils.ts index 0eed6f6013..5d62bcaa82 100644 --- a/frontend/src/utilities/notebookControllerUtils.ts +++ b/frontend/src/utilities/notebookControllerUtils.ts @@ -435,6 +435,9 @@ export const useNotebookStatus = ( if (!gracePeriod && lastItem.reason === 'FailedScheduling') { currentEvent = 'Insufficient resources to start'; status = EventStatus.ERROR; + } else if (!gracePeriod && lastItem.reason === 'BackOff') { + currentEvent = 'ImagePullBackOff'; + status = EventStatus.ERROR; } else if (lastItem.type === 'Warning') { currentEvent = 'Issue creating notebook container'; status = EventStatus.WARNING;