]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
run: do not lock machines if there are no roles
authorLoic Dachary <ldachary@redhat.com>
Thu, 29 Oct 2015 18:58:35 +0000 (03:58 +0900)
committerLoic Dachary <ldachary@redhat.com>
Mon, 16 Nov 2015 11:20:37 +0000 (12:20 +0100)
commitcc0095b405424df313c748b74d59aef3c8d57dc8
treeeaafaee98cd48aad909fa38c7e5903b8f765f6fb
parent3062897d47ffcdca2c8bd11337b7098974d66b4a
run: do not lock machines if there are no roles

The worker runs the job, even if there are no roles: it is legitimate to
run a job that does not need machines.

Run only locks machines if there are roles and init_tasks is only
populated with tasks that make sense depending on the presence of roles
or not.

Move the internal task added in suite.py to run.py : there is no reason
to not have them with teuthology-run or teuthology-schedule (ansible +
clock).

Signed-off-by: Loic Dachary <ldachary@redhat.com>
teuthology/run.py
teuthology/suite.py
teuthology/test/test_run.py