From: Zack Cerza Date: Tue, 13 May 2014 15:21:18 +0000 (-0500) Subject: Use VersionNotFoundError packages are missing X-Git-Tag: 1.1.0~1451 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=de32179028a9c1241386276f190ca9b8206c9680;p=teuthology.git Use VersionNotFoundError packages are missing Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 37be9ecb17..9ef3e211eb 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -325,8 +325,7 @@ def _update_deb_package_list_and_install(ctx, remote, debs, config): log.info('Package not there yet, waiting...') time.sleep(15) continue - raise Exception('failed to fetch package version from %s' % - base_url + '/version') + raise VersionNotFoundError("%s/version" % base_url) version = r.stdout.getvalue().strip() log.info('Package version is %s', version) break @@ -438,8 +437,7 @@ def _update_rpm_package_list_and_install(ctx, remote, rpm, config): log.info('Package not there yet, waiting...') time.sleep(15) continue - raise Exception('failed to fetch package version from %s' % - version_url) + raise VersionNotFoundError(version_url) version = r.stdout.getvalue().strip() log.info('Package version is %s', version) break @@ -895,8 +893,7 @@ def _upgrade_deb_packages(ctx, config, remote, debs): log.info('Package not there yet, waiting...') time.sleep(15) continue - raise Exception('failed to fetch package version from %s' % - base_url + '/version') + raise VersionNotFoundError("%s/version" % base_url) version = r.stdout.getvalue().strip() log.info('Package version is %s', version) break