]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Always mention name and sha1 when scheduling fails 854/head
authorZack Cerza <zack@redhat.com>
Tue, 3 May 2016 20:21:41 +0000 (14:21 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 3 May 2016 20:22:38 +0000 (14:22 -0600)
http://tracker.ceph.com/issues/15711
Fixes: 15711
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite.py

index 2b4b61704563ff42a71bc28f5b044835ac124958..9d8b0d48e9481b14d8fc0f1f59cb74c90b10fa88 100644 (file)
@@ -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'],