X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/eace27b5fe2e945d68ef2d617fbae8f23f2b808a..a27e0874320e408124fee837b355995350bbc7ee:/services/nodemanager/arvnodeman/config.py diff --git a/services/nodemanager/arvnodeman/config.py b/services/nodemanager/arvnodeman/config.py index f884295e37..a16e0a8e62 100644 --- a/services/nodemanager/arvnodeman/config.py +++ b/services/nodemanager/arvnodeman/config.py @@ -14,11 +14,15 @@ from apiclient import errors as apierror from .baseactor import BaseNodeManagerActor +from libcloud.common.types import LibcloudError +from libcloud.common.exceptions import BaseHTTPError + # IOError is the base class for socket.error, ssl.SSLError, and friends. # It seems like it hits the sweet spot for operations we want to retry: # it's low-level, but unlikely to catch code bugs. NETWORK_ERRORS = (IOError,) ARVADOS_ERRORS = NETWORK_ERRORS + (apierror.Error,) +CLOUD_ERRORS = NETWORK_ERRORS + (LibcloudError, BaseHTTPError) actor_class = BaseNodeManagerActor