From f7d80c4925dcf24eb025d1ebe41a906268753113 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 3 May 2016 14:21:41 -0600 Subject: [PATCH] Always mention name and sha1 when scheduling fails http://tracker.ceph.com/issues/15711 Fixes: 15711 Signed-off-by: Zack Cerza --- teuthology/suite.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/teuthology/suite.py b/teuthology/suite.py index 2b4b617045..9d8b0d48e9 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -623,6 +623,7 @@ def schedule_suite(job_config, returns number of jobs scheduled """ suite_name = job_config.suite + name = job_config.name log.debug('Suite %s in %s' % (suite_name, path)) configs = [(combine_path(suite_name, item[0]), item[1]) for item in build_matrix(path, subset=subset)] @@ -690,6 +691,7 @@ def schedule_suite(job_config, job = dict( yaml=parsed_yaml, desc=description, + sha1=job_config.sha1, args=arg ) @@ -727,8 +729,9 @@ def schedule_suite(job_config, log_prefix = "Missing Packages: " if not dry_run and not config.suite_allow_missing_packages: schedule_fail( - "At least one job needs packages that don't exist. " - "See above." + "At least one job needs packages that don't exist for hash" + " {sha1}.".format(sha1=job_config.sha1), + name, ) teuthology_schedule( args=job['args'], -- 2.39.5