]> 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 22:02:00 +0000 (23:02 +0100)
commit570a5a0e881f4e36bf2070fcd671e8a6b50de51f
tree6480b735d7da745c74bc3bc3701d752c1b9d5068
parentf40bd4a1dc3c33d9e0f1f26f147b048cbf35c1a5
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>
(cherry picked from commit 69e9b22e4baa06705119cc818f3b2c1a472c31f6)
tasks/buildpackages.py
tasks/buildpackages/Makefile
tasks/buildpackages/common.sh
tasks/buildpackages/make-deb.sh
tasks/buildpackages/make-rpm.sh