Project

General

Profile

Feature #13031

Updated by Loïc Dachary over 8 years ago

implement a task that builds Ceph packages and make it so they are consumed instead of the gitbuilder packages. The goal is to allow anyone with access to an OpenStack cluster to run a suite without requiring a build from the gitbuilders. 

 Create the package-build task. Building the packages is done using : 

 * "make-debs.sh":https://github.com/ceph/ceph/blob/master/make-debs.sh 
 * make-rpm.sh  

 In both cases the output is a repository containing the packages. 

 * teuthology internal tasks looks for the package-build task in the job config 
 * if the package-build task is found, it is placed before tasks that are known to consume packages 
 <pre> 
 tasks: 
   - build-packages: 
 </pre> 
 * when a package-build task is found, the internal tasks adds an additional target with the *packages* role 
 <pre> 
 roles: 
     - [mon.0, client.0] 
     - [packages] 
 </pre> 
 * the install task looks for the *packages* role and uses it instead of the gitbuilder if found 

 * a suites/debug/build-package.yaml file is added add to all ceph-qa-suite branches the build-package.yaml file so that it can be append to the teuthology-suite cli and found when extracting the suite. The task would build the version matching --ceph. 

 This adds ~15 minutes to a run. There are many ways to optimize this (sharing repository between jobs targeting the same branch, uploading to third party repositories, creating docker images). But these are not in the scope of this first implementation. 

Back