Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rootfs/scheduler/resources/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ def _handle_pod_errors(self, pod, reason, message):
'ImagePullBackOff',
'RegistryUnavailable',
'ErrImageInspect',
"CreateContainerError",
]
# Image event reason mapping
event_errors = {
Expand All @@ -537,7 +538,7 @@ def _handle_pod_errors(self, pod, reason, message):

# Nicer error than from the event
# Often this gets to ImageBullBackOff before we can introspect tho
if reason == 'ErrImagePull':
if reason in ['ErrImagePull', 'CreateContainerError']:
raise KubeException(message)

# collect all error messages of worth
Expand Down