]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Use VersionNotFoundError packages are missing
authorZack Cerza <zack@cerza.org>
Tue, 13 May 2014 15:21:18 +0000 (10:21 -0500)
committerZack Cerza <zack@cerza.org>
Tue, 13 May 2014 15:21:18 +0000 (10:21 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/install.py

index 37be9ecb171b86bff5364219f8d591d41b7958ce..9ef3e211eb802c323f959a47ed802b8a6ead711d 100644 (file)
@@ -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