tripleo-common/tripleo_common/image/exception.py
Steve Baker 2dbcc9036a Retry inspect of container images
This change parses the error output of a failed skopeo inspect to
detect if it is a missing image error, then adds tenacity retries for all
other error types.

Failures are being seen in CI due to transient AWS DNS issues, so this change
should make image inspections more resilient.

Change-Id: If5ad384cfc8783c3b10c4cc567e42f06e5c6880b
Closes-Bug: #1779213
2018-07-04 16:09:51 +00:00

31 lines
812 B
Python

# Copyright 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
class ImageBuilderException(Exception):
pass
class ImageSpecificationException(Exception):
pass
class ImageUploaderException(Exception):
pass
class ImageNotFoundException(Exception):
pass