diff --git a/rootfs/scheduler/resources/pod.py b/rootfs/scheduler/resources/pod.py index b9695c38b..941f1bad6 100644 --- a/rootfs/scheduler/resources/pod.py +++ b/rootfs/scheduler/resources/pod.py @@ -523,6 +523,7 @@ def _handle_pod_errors(self, pod, reason, message): 'ImagePullBackOff', 'RegistryUnavailable', 'ErrImageInspect', + "CreateContainerError", ] # Image event reason mapping event_errors = { @@ -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