ceph/qa/tasks
Sage Weil 2a7013cd5a qa/tasks/workunit: clear clone dir before retrying checkout
If we checkout ceph-ci.git, and don't find a branch,
we'll try again from ceph.git. But the checkout will
already exist and the clone will fail, so we'll still
fail to find the branch.

The same can happen if a previous workunit task already
checked out the repo.

Fix by removing the repo before checkout (the first and
second times).  Note that this may break if there are
multiple workunit tasks running in parallel on the same
role.  That is already racy, so if it's happening, we'll
want to switch to using a truly unique clonedir for each
instantiation.

Fixes: http://tracker.ceph.com/issues/18336
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-22 13:05:22 -05:00
..
buildpackages move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
cephfs move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mgr move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
tests move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
util move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
__init__.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
admin_socket.py qa/tasks/admin_socket: subst in repo name 2016-12-15 13:35:02 -05:00
apache.conf.template move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
autotest.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
aver.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
blktrace.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
boto.cfg.template move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
buildpackages.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
calamari_nosetests.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
calamari_setup.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ceph_client.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ceph_deploy.py use dev option instead of dev-commit 2016-12-15 14:11:00 -08:00
ceph_fuse.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ceph_manager.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ceph_objectstore_tool.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ceph_test_case.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ceph.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
cephfs_test_runner.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
cifs_mount.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
cram.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
create_verify_lfn_objects.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
devstack.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
die_on_err.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
divergent_priors2.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
divergent_priors.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
dump_stuck.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
ec_lost_unfound.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
filestore_idempotent.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
kclient.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
locktest.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
logrotate.conf move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
lost_unfound.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
manypools.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mds_creation_failure.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mds_thrash.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
metadata.yaml move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mod_fastcgi.conf.template move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mod_proxy_fcgi.tcp.conf.template move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mod_proxy_fcgi.uds.conf.template move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mon_clock_skew_check.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mon_recovery.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mon_seesaw.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
mon_thrash.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
multibench.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
object_source_down.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
omapbench.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
osd_backfill.py qa/tasks/osd_backfill.py: wait for osd.[12] to start 2016-12-19 21:56:11 -05:00
osd_failsafe_enospc.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
osd_recovery.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
peer.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
peering_speed_test.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
populate_rbd_pool.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
qemu.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rados.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
radosbench.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
radosbenchsweep.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
radosgw_admin_rest.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
radosgw_admin.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
radosgw_agent.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rbd_fio.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rbd_fsx.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rbd_mirror.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rbd.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rebuild_mondb.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
recovery_bench.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
reg11184.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rep_lost_unfound_delete.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
repair_test.py Merge remote-tracking branch 'ceph-qa-suite/master' into wip-18113-qa 2016-12-14 16:05:35 -08:00
resolve_stuck_peering.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rest_api.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
restart.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rgw_logsocket.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
rgw.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
s3readwrite.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
s3roundtrip.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
s3tests.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
samba.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
scrub_test.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
scrub.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
systemd.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
teuthology_integration.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
tgt.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
thrash_pool_snaps.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
thrashosds.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
userdata_setup.yaml move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
userdata_teardown.yaml move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
vstart_runner.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
watch_notify_same_primary.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
watch_notify_stress.py move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00
workunit.py qa/tasks/workunit: clear clone dir before retrying checkout 2016-12-22 13:05:22 -05:00