]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
buildpackages: refactor to not require remote
authorLoic Dachary <ldachary@redhat.com>
Sat, 14 Nov 2015 12:26:00 +0000 (13:26 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 18 Nov 2015 21:49:59 +0000 (22:49 +0100)
commit69e9b22e4baa06705119cc818f3b2c1a472c31f6
tree1b385d27b1dcfe0a8a8653e8d92d3392e18f41bb
parent1877b818f6f53f1a9235a9be8e171abb78c3c6ca
buildpackages: refactor to not require remote

Most of the flavor, sha1, tag etc. selection logic as implemented in the
packaging module of teuthology relies on remote hosts. This is complex
to tests and inconvenient because hosts must be provisionned even before
trying to figure out which packages need to be installed.

Using remote hosts is necessary when bare metal targets are used because
teuthology must adapt to the operating system already installed. The
selection logic in the context of dynamically provisionned targets is
simpler because it is defined by the job being run.

The buildpackages is refactored to use only the job configuration to
figure out which packages must be built. It makes it specific to targets
that are dynamically provisionned. It would have to be modified to query
the remote host in the case of bare metal targets.

Signed-off-by: Loic Dachary <loic@dachary.org>
tasks/buildpackages.py
tasks/buildpackages/Makefile
tasks/buildpackages/common.sh
tasks/buildpackages/make-deb.sh
tasks/buildpackages/make-rpm.sh