2dbcc9036a
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
31 lines
812 B
Python
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
|