X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0035033f6bf6db955b116e2e0cc052bc5c79d80e..d3be8a76e5d9a921fbb7798cb0a705b918d20add:/services/nodemanager/arvnodeman/computenode/driver/__init__.py diff --git a/services/nodemanager/arvnodeman/computenode/driver/__init__.py b/services/nodemanager/arvnodeman/computenode/driver/__init__.py index 29b04845b6..6d23c2b5a3 100644 --- a/services/nodemanager/arvnodeman/computenode/driver/__init__.py +++ b/services/nodemanager/arvnodeman/computenode/driver/__init__.py @@ -206,19 +206,6 @@ class BaseComputeNodeDriver(RetryMixin): # seconds since the epoch UTC. raise NotImplementedError("BaseComputeNodeDriver.node_start_time") - @classmethod - def is_cloud_exception(cls, exception): - # libcloud compute drivers typically raise bare Exceptions to - # represent API errors. Return True for any exception that is - # exactly an Exception, or a better-known higher-level exception. - if (type(exception) is BaseHTTPError and - exception.message and - (exception.message.startswith("InvalidInstanceID.NotFound") or - exception.message.startswith("InstanceLimitExceeded"))): - return True - return (isinstance(exception, cls.CLOUD_ERRORS) or - type(exception) is Exception) - def destroy_node(self, cloud_node): try: return self.real.destroy_node(cloud_node)