]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotasks/cephfs: add a wait_for_daemons
John Spray [Wed, 14 Oct 2015 01:15:07 +0000 (02:15 +0100)]
tasks/cephfs: add a wait_for_daemons

...to avoid trying to mount a client
before the daemons are ready

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Mon, 12 Oct 2015 17:04:19 +0000 (13:04 -0400)]
Merge remote-tracking branch 'gh/infernalis'

9 years agoMerge pull request #618 from yehudasa/wip-infernalis-fix
Sage Weil [Mon, 12 Oct 2015 17:06:08 +0000 (13:06 -0400)]
Merge pull request #618 from yehudasa/wip-infernalis-fix

radosgw_admin: skip log objects that start with obj_delete_at_hint

9 years agoradosgw_admin: skip log objects that start with obj_delete_at_hint
Yehuda Sadeh [Mon, 12 Oct 2015 16:13:25 +0000 (09:13 -0700)]
radosgw_admin: skip log objects that start with obj_delete_at_hint

when testing radosgw-admin log show --object, don't use these objects

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #616 from ceph/wip-buildpackages-centos
Loic Dachary [Sat, 10 Oct 2015 12:10:34 +0000 (14:10 +0200)]
Merge pull request #616 from ceph/wip-buildpackages-centos

buildpackages: use _get_version instead of os_version

9 years agobuildpackages: use _get_version instead of os_version
Loic Dachary [Sat, 10 Oct 2015 10:51:15 +0000 (12:51 +0200)]
buildpackages: use _get_version instead of os_version

os_version is from the remote and will be 7.1.23 for CentOS 7
instead of the expected 7.0 for all 7.* CentOS.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #614 from ceph/wip-sam-qa-fixes
Josh Durgin [Fri, 9 Oct 2015 23:24:36 +0000 (19:24 -0400)]
Merge pull request #614 from ceph/wip-sam-qa-fixes

Wip sam qa fixes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoradosbench: use pool config even if create_pool is false
Samuel Just [Thu, 8 Oct 2015 17:08:54 +0000 (10:08 -0700)]
radosbench: use pool config even if create_pool is false

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agodivergent_priors2: give divergent time to come up
Samuel Just [Thu, 1 Oct 2015 17:31:48 +0000 (10:31 -0700)]
divergent_priors2: give divergent time to come up

Fixes: #13322
Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoSpecified 'hammer' branch
Yuri Weinstein [Fri, 9 Oct 2015 20:28:18 +0000 (13:28 -0700)]
Specified 'hammer' branch

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 490dbb28ffa501d7041182332523eb5998d03777)

9 years agoMerge pull request #613 from ceph/wip-fix-f-h-x-branch
Josh Durgin [Fri, 9 Oct 2015 20:42:47 +0000 (16:42 -0400)]
Merge pull request #613 from ceph/wip-fix-f-h-x-branch

Specified 'firefly' branch

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoSpecified 'hammer' branch
Yuri Weinstein [Fri, 9 Oct 2015 20:28:18 +0000 (13:28 -0700)]
Specified 'hammer' branch

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
9 years agoMerge pull request #609 from dachary/wip-13376-buildpackages-upgrade
Loic Dachary [Fri, 9 Oct 2015 14:37:40 +0000 (16:37 +0200)]
Merge pull request #609 from dachary/wip-13376-buildpackages-upgrade

buildpackages: honour install priorities tags, branch, sha1

9 years agobuildpackages: enforce ceph-object-corpus canonical URL
Loic Dachary [Fri, 9 Oct 2015 09:57:40 +0000 (11:57 +0200)]
buildpackages: enforce ceph-object-corpus canonical URL

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agobuildpackages: walk the whole config tree to find sha1 to build
Loic Dachary [Fri, 9 Oct 2015 08:05:58 +0000 (10:05 +0200)]
buildpackages: walk the whole config tree to find sha1 to build

It is not enough to look for the first install task. In upgrade tests,
the install.upgrade task requires more packages to be built. In more
complicated tests using sequential and parallel tasks, the actual
install or install.upgrade task may be deeper in the config tree.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agobuildpackages: honour install priorities tags, branch, sha1
Loic Dachary [Tue, 6 Oct 2015 11:13:31 +0000 (13:13 +0200)]
buildpackages: honour install priorities tags, branch, sha1

The install config may have contradicting tag/branch and sha1.  When
suite.py prepares the jobs, it always overrides the sha1 with whatever
default is provided on the command line with --distro and what is found
in the gitbuilder. If it turns out that the tag or the branch in the
install config task is about another sha1, it will override anyway.

Instead of obtaining the tag, branch and sha1 directly from the
packaging.GitbuilderProject object, compute them from the returned
uri_reference data member. The uri_reference is used by the install task
to fetch packages in the gitbuilders and this is what buildpackages
needs to build.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agobuildpackages: branches are found in refs/remotes/origin
Loic Dachary [Fri, 9 Oct 2015 08:01:34 +0000 (10:01 +0200)]
buildpackages: branches are found in refs/remotes/origin

Note in refs/heads which is populated for local branches only and not
after a fresh clone.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agobuildpackages: do not override the sha1
Loic Dachary [Fri, 9 Oct 2015 08:01:05 +0000 (10:01 +0200)]
buildpackages: do not override the sha1

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agobuildpackages: allow for concurrent build if != sha1
Loic Dachary [Tue, 6 Oct 2015 21:08:56 +0000 (23:08 +0200)]
buildpackages: allow for concurrent build if != sha1

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agobuildpackages: prefer GitbuilderProject.os_{type,version} over config.
Loic Dachary [Tue, 6 Oct 2015 13:47:34 +0000 (15:47 +0200)]
buildpackages: prefer GitbuilderProject.os_{type,version} over config.

The config['os_type'] and config['os_version'] are not always set for a given
job (for instance, in the rbd suite). When a suite runs, it relies on
default values, depending on the target Operating System and internal,
hard coded values associating ubuntu to 14.04 etc.

Instead of using config['os_{type,version}'] use the GitbuilderProject
equivalent which is set with the appropriate defaults.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #589 from ceph/wip-ecpool-s3test
vasukulkarni [Wed, 7 Oct 2015 19:27:34 +0000 (12:27 -0700)]
Merge pull request #589 from ceph/wip-ecpool-s3test

s3tests using ec data pool for smoke

9 years agoMerge remote-tracking branch 'origin/wip-vstart-runner' into infernalis
Greg Farnum [Wed, 7 Oct 2015 17:55:36 +0000 (10:55 -0700)]
Merge remote-tracking branch 'origin/wip-vstart-runner' into infernalis

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agosmoke/basic/tasks/libcephfs: fix client debug override
Sage Weil [Wed, 7 Oct 2015 16:27:21 +0000 (12:27 -0400)]
smoke/basic/tasks/libcephfs: fix client debug override

Also debug mds

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Tue, 6 Oct 2015 20:49:46 +0000 (16:49 -0400)]
Merge remote-tracking branch 'gh/infernalis'

Conflicts:
suites/upgrade/hammer-x/point-to-point-x/point-to-point.yaml

9 years agoupgrade/hammer-x/point-to-point: whitelist wrongly marked me down
Sage Weil [Tue, 6 Oct 2015 20:46:50 +0000 (16:46 -0400)]
upgrade/hammer-x/point-to-point: whitelist wrongly marked me down

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #585 from dachary/wip-buildpackages-test
Loic Dachary [Mon, 5 Oct 2015 00:02:34 +0000 (02:02 +0200)]
Merge pull request #585 from dachary/wip-buildpackages-test

buildpackages: implicit for OpenStack

9 years agoMerge pull request #596 from ceph/wip-radosbench
Loic Dachary [Sun, 4 Oct 2015 23:57:04 +0000 (01:57 +0200)]
Merge pull request #596 from ceph/wip-radosbench

tasks/radosbench: wait just a bit longer

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoWhite listed WAR 'failed to encode' fixes #13349
Yuri Weinstein [Sat, 3 Oct 2015 15:27:39 +0000 (08:27 -0700)]
White listed WAR 'failed to encode' fixes #13349

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 37a881aee191038139b37153a25555fc6b7f8fed)

9 years agoMerge pull request #602 from ceph/wip13349
Yuri Weinstein [Sun, 4 Oct 2015 21:57:50 +0000 (14:57 -0700)]
Merge pull request #602 from ceph/wip13349

White listed WAR 'failed to encode' fixes #13349

9 years agoWhite listed WAR 'failed to encode' fixes #13349
Yuri Weinstein [Sat, 3 Oct 2015 15:27:39 +0000 (08:27 -0700)]
White listed WAR 'failed to encode' fixes #13349

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
9 years agoMerge pull request #549 from ceph/wip-krbd-fio
vasukulkarni [Fri, 2 Oct 2015 18:54:26 +0000 (11:54 -0700)]
Merge pull request #549 from ceph/wip-krbd-fio

Add rbd fio test to exercise block IO on all format/features

9 years agoupgrade/hammer-x/point-to-point: use different client for second rgw
Sage Weil [Fri, 2 Oct 2015 17:24:19 +0000 (13:24 -0400)]
upgrade/hammer-x/point-to-point: use different client for second rgw

Can't do 2 rgw's on the same client id.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit a0f0194ab2edec81f19b111b9317a5149defd4e9)
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
9 years agokrbd fio tests using sync engine for format 2 and features 1 and 2.
Vasu Kulkarni [Wed, 30 Sep 2015 18:50:06 +0000 (14:50 -0400)]
krbd fio tests using sync engine for format 2 and features 1 and 2.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agokrbd test using fio for format 2 and features 1 and 2.
Vasu Kulkarni [Wed, 30 Sep 2015 18:47:42 +0000 (14:47 -0400)]
krbd test using fio for format 2 and features 1 and 2.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agorbd fio tests using rbd engine, tests on clones as well using features 1 and 13.
Vasu Kulkarni [Wed, 30 Sep 2015 16:59:03 +0000 (12:59 -0400)]
rbd fio tests using rbd engine, tests on clones as well using features 1 and 13.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agorbd io tests using fio, various fio options can be specified in yaml
Vasu Kulkarni [Wed, 30 Sep 2015 05:07:47 +0000 (01:07 -0400)]
rbd io tests using fio, various fio options can be specified in yaml

test rbd or krbd using fio, can also run io on rbd clones if option is specified in yaml
various options like image-size, rbd format/features, fio io size, readwrite options can be provided in yaml.
check the docstring for exact usage.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
9 years agoMerge pull request #599 from ceph/wip-hammer-x
Yuri Weinstein [Fri, 2 Oct 2015 17:32:12 +0000 (10:32 -0700)]
Merge pull request #599 from ceph/wip-hammer-x

upgrade/hammer-x/point-to-point: use different client for second rgw

9 years agoupgrade/hammer-x/point-to-point: use different client for second rgw
Sage Weil [Fri, 2 Oct 2015 17:24:19 +0000 (13:24 -0400)]
upgrade/hammer-x/point-to-point: use different client for second rgw

Can't do 2 rgw's on the same client id.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotasks/cephfs: fix FuseMount bin path in vstart
John Spray [Fri, 2 Oct 2015 16:38:23 +0000 (17:38 +0100)]
tasks/cephfs: fix FuseMount bin path in vstart

FuseMount only uses the prefix for finding the 'ceph'
executable, which is in ./ for either cmake or
authtools, not ./src for cmake like other binaries.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: fix test_journal_migration
John Spray [Fri, 2 Oct 2015 16:37:44 +0000 (17:37 +0100)]
tasks/cephfs: fix test_journal_migration

It was trying to get the output file from
a different remote than the one used to
run the journal tool.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: move mds_scrub_checks
John Spray [Wed, 23 Sep 2015 10:21:15 +0000 (11:21 +0100)]
tasks/cephfs: move mds_scrub_checks

...into a CephFSTestCase.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: move journal migration test
John Spray [Wed, 23 Sep 2015 09:49:24 +0000 (10:49 +0100)]
tasks/cephfs: move journal migration test

...into a CephFSTestCase.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: extend vstart_runner's ctx&run
John Spray [Wed, 23 Sep 2015 12:01:14 +0000 (13:01 +0100)]
tasks/cephfs: extend vstart_runner's ctx&run

Sufficiently to enable using workunits.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add --interactive for vstart runner
John Spray [Tue, 25 Aug 2015 15:03:16 +0000 (16:03 +0100)]
tasks/cephfs: add --interactive for vstart runner

Just like interactive-on-error in teuthology.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: fix FuseMount._asok_path
John Spray [Tue, 22 Sep 2015 10:29:13 +0000 (11:29 +0100)]
tasks/cephfs: fix FuseMount._asok_path

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: remove a redundant sudo
John Spray [Mon, 24 Aug 2015 19:42:06 +0000 (20:42 +0100)]
tasks/cephfs: remove a redundant sudo

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: raise error on non-string stdins
John Spray [Mon, 24 Aug 2015 15:57:21 +0000 (16:57 +0100)]
tasks/cephfs: raise error on non-string stdins

Shouldn't be any from the fs tests that get run

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: warn if vstart_runner can't import mods
John Spray [Mon, 24 Aug 2015 15:24:48 +0000 (16:24 +0100)]
tasks/cephfs: warn if vstart_runner can't import mods

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: stop if needed binaries are absent
John Spray [Mon, 24 Aug 2015 15:20:46 +0000 (16:20 +0100)]
tasks/cephfs: stop if needed binaries are absent

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add instructions to vstart_runner
John Spray [Mon, 24 Aug 2015 14:54:34 +0000 (15:54 +0100)]
tasks/cephfs: add instructions to vstart_runner

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: updates for cmake environ
John Spray [Thu, 6 Aug 2015 09:20:34 +0000 (10:20 +0100)]
tasks/cephfs: updates for cmake environ

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add vstart runner script
John Spray [Mon, 20 Jul 2015 11:32:45 +0000 (12:32 +0100)]
tasks/cephfs: add vstart runner script

This is to allow running CephFSTestCase tests
against a vstart cluster, for much faster turnaround
during development than running teuthology against
built ceph packages.

Not everything will be runnable this way, but for
certain things like filesystem repair scenarios we
have everything we need within a vstart environment.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: mark some tests as @needs_trimming
John Spray [Tue, 28 Jul 2015 13:09:26 +0000 (14:09 +0100)]
tasks/cephfs: mark some tests as @needs_trimming

So that we can drop these tests when not running
client as root.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add needs_trimming decorator
John Spray [Tue, 28 Jul 2015 13:08:50 +0000 (14:08 +0100)]
tasks/cephfs: add needs_trimming decorator

For tests to advertise that they need the client
to be able to trim its cache (i.e. currently that
means requiring run as root)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: make FuseMount.teardown safer
John Spray [Tue, 28 Jul 2015 13:08:01 +0000 (14:08 +0100)]
tasks/cephfs: make FuseMount.teardown safer

(don't assume fuse_daemon exists)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: mark some tests as @long_running
John Spray [Mon, 27 Jul 2015 22:23:28 +0000 (23:23 +0100)]
tasks/cephfs: mark some tests as @long_running

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add @long_running decorator
John Spray [Mon, 27 Jul 2015 22:21:45 +0000 (23:21 +0100)]
tasks/cephfs: add @long_running decorator

A means for test cases to mark particular methods
as long running, so that the vstart runner can skip
them when running for developers.

This is not a scientific thing, anything that takes
more than about 2 minutes due to lots of iteration
or sleeps.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: cluster_down before fs rm
John Spray [Thu, 23 Jul 2015 14:55:28 +0000 (15:55 +0100)]
tasks/cephfs: cluster_down before fs rm

In teuthology this isn't needed because we join the
mds child processes after killing them.  In vstart
we're killing them asynchronously, so be a bit more
careful to ensure they can't re-insert themselves
to the mdsmap between our calling fail and our calling
fs rm.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: split up TestClientRecovery
John Spray [Thu, 23 Jul 2015 09:40:12 +0000 (10:40 +0100)]
tasks/cephfs: split up TestClientRecovery

...into the part that requires a network-isolated
client and the part that doesn't.

This happens to also be the part that won't work with
vstart vs. the part that will.  teuthology yaml will
still pick up and run both parts.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: make memstore dependency declarative
John Spray [Thu, 23 Jul 2015 09:38:48 +0000 (10:38 +0100)]
tasks/cephfs: make memstore dependency declarative

...instead of checking for it procedurally during
TestClusterFull.setUp

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: refine TestClientLimits.test_client_oldest_tid
John Spray [Thu, 23 Jul 2015 08:52:28 +0000 (09:52 +0100)]
tasks/cephfs: refine TestClientLimits.test_client_oldest_tid

* Instead of creating files in background, create
  them in foreground (simpler).
* Instead of creating max_request*2 files, just create
  max_requests plus a litle bit.
* Set max_requests to 1000 instead of 5000 to run a bit
  faster.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: fix race in TestStrays
John Spray [Wed, 22 Jul 2015 14:27:39 +0000 (15:27 +0100)]
tasks/cephfs: fix race in TestStrays

We weren't waiting for export dir to complete (the asok
just starts the process).  This wasn't noticeable when running
remotely due to latency between the test runner and the MDS,
but it shows up when running against a local vstart cluster.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: work around fuse weirdness
John Spray [Wed, 22 Jul 2015 13:03:42 +0000 (14:03 +0100)]
tasks/cephfs: work around fuse weirdness

I am seeing a strange thing where it seems like sometimes
a ls of /sys/fs/fuse/connections is returning empty when
connections do exist.  It is pretty easy to make this
a non-issue by waiting for "more conns than we started with"
instead of "list of conns is different", so do that.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: prefix override in FuseMount
John Spray [Wed, 22 Jul 2015 11:14:56 +0000 (12:14 +0100)]
tasks/cephfs: prefix override in FuseMount

For asok and invokation of ceph CLI.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: use stdin/stdout in Filesystem._read_data_xattr
John Spray [Wed, 22 Jul 2015 11:13:39 +0000 (12:13 +0100)]
tasks/cephfs: use stdin/stdout in Filesystem._read_data_xattr

...so that it doesn't rely on a temp local file and using
run.Raw(">") in commands.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: handle endpoint not connected
John Spray [Wed, 22 Jul 2015 10:08:47 +0000 (11:08 +0100)]
tasks/cephfs: handle endpoint not connected

Previously failure to stat mnt dir was interpreted
as being unmounted.  For "transport endpoint no connected"
error we do want to recognise that it is mounted, albeit
with no ceph-fuse process.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: use Filesystem.rados instead of direct CLI
John Spray [Wed, 22 Jul 2015 10:03:10 +0000 (11:03 +0100)]
tasks/cephfs: use Filesystem.rados instead of direct CLI

Because it's slicker and because I can wrap it for vstart.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add Filesystem.exists
John Spray [Wed, 22 Jul 2015 09:08:55 +0000 (10:08 +0100)]
tasks/cephfs: add Filesystem.exists

Use this during test setup to check whether
a filesystem is configured at all, before
trying to tear it down.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add Filesystem._prefix
John Spray [Tue, 21 Jul 2015 17:39:05 +0000 (18:39 +0100)]
tasks/cephfs: add Filesystem._prefix

So that my vstart subclass can put ./ before
all the commands.

One could set $PATH, but I like to unambiguously point
it at the local built binaries in case someone also
has some systemwide packages.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: use raw_cluster_cmd instead of manual "ceph"
John Spray [Tue, 21 Jul 2015 17:38:21 +0000 (18:38 +0100)]
tasks/cephfs: use raw_cluster_cmd instead of manual "ceph"

It's less repetitive, and I can override it for use with
vstart.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: add Filesystem.delete_all
John Spray [Tue, 21 Jul 2015 15:30:38 +0000 (16:30 +0100)]
tasks/cephfs: add Filesystem.delete_all

So that we can clear down filesysteems created by
someone other than ourselves (like vstart.sh)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: make Filesystem rados command overridable
John Spray [Tue, 21 Jul 2015 15:29:51 +0000 (16:29 +0100)]
tasks/cephfs: make Filesystem rados command overridable

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agotasks/cephfs: use raw_cluster_cmd in Filesystem
John Spray [Tue, 21 Jul 2015 07:29:25 +0000 (08:29 +0100)]
tasks/cephfs: use raw_cluster_cmd in Filesystem

...instead of manually invoking 'ceph' -- so that
it's easier to override this for vstart.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #595 from ceph/wip-quota
Loic Dachary [Fri, 2 Oct 2015 12:59:27 +0000 (14:59 +0200)]
Merge pull request #595 from ceph/wip-quota

log-whitelist 'reached quota' for librados test.sh

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotasks/radosbench: wait just a bit longer
Sage Weil [Fri, 2 Oct 2015 12:44:01 +0000 (08:44 -0400)]
tasks/radosbench: wait just a bit longer

A run failed due to thrashing.. missed by about 30s (the osd
eventually sent the last reply but we'd already timed out).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolog-whitelist 'reached quota' for librados test.sh
Sage Weil [Fri, 2 Oct 2015 12:33:46 +0000 (08:33 -0400)]
log-whitelist 'reached quota' for librados test.sh

A new test verifies that we are stopped by the pool quota (and get
the right error messages or block).  See ceph.git
32962740ce9211626d310a002b23afeb0d05b500.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #461 from ceph/wip-client-oldest-tid
Gregory Farnum [Fri, 2 Oct 2015 05:37:15 +0000 (22:37 -0700)]
Merge pull request #461 from ceph/wip-client-oldest-tid

cephfs/test_client_limits.py: update test_client_oldest_tid

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agorados/singleton-nomsgr/all/full-tiering: time out rados -p
Sage Weil [Thu, 1 Oct 2015 19:37:22 +0000 (15:37 -0400)]
rados/singleton-nomsgr/all/full-tiering: time out rados -p

We will hit a quota and block (not error out).

See #13283
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #592 from ceph/wip-13000-centos-activate
Loic Dachary [Thu, 1 Oct 2015 06:49:20 +0000 (08:49 +0200)]
Merge pull request #592 from ceph/wip-13000-centos-activate

ceph-deploy: always zap disk before creating an osd

10 years agoMerge pull request #580 from dachary/wip-13250-ceph-deploy-branch
Josh Durgin [Wed, 30 Sep 2015 23:45:30 +0000 (19:45 -0400)]
Merge pull request #580 from dachary/wip-13250-ceph-deploy-branch

ceph-deploy: fix ceph-deploy-branch config options

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agotasks/ceph_manager: %d -> %s
Sage Weil [Wed, 30 Sep 2015 18:58:32 +0000 (14:58 -0400)]
tasks/ceph_manager: %d -> %s

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoceph-deploy: always zap disk before creating an osd
Loic Dachary [Wed, 30 Sep 2015 13:37:37 +0000 (15:37 +0200)]
ceph-deploy: always zap disk before creating an osd

The existing logic is to ceph-deploy osd create --zap-disk which will
zap the data device before preparing it. However it will not zap the
journal device (see http://tracker.ceph.com/issues/13291).

If ceph-deploy osd create fails, a fall back will zap both the data
device and the journal and try prepare again. This could work if
the device preparation and activation was synchronous and catch all
errors that could be caused by an unclean journal device. However,
the activation is asynchronous and it is entirely possible for a device
to be prepared successfully and fail to activate in the background.

The data and journal device are always zapped before calling ceph-deploy
osd create. The logic is simpler and the overhead is low.

http://tracker.ceph.com/issues/13000 Fixes: #13000

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agorados/singleton-nomsgr/all/11429: blackhole osd.0 to close race
Sage Weil [Wed, 30 Sep 2015 18:42:05 +0000 (14:42 -0400)]
rados/singleton-nomsgr/all/11429: blackhole osd.0 to close race

Blackhole filestore ops so that we ensure it doesn't complete
the pg deletions before the restart function does a clean shutdown
etc.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoupgrade/hammer-x/tiering: fix upgrade sequence
Sage Weil [Wed, 30 Sep 2015 13:34:26 +0000 (09:34 -0400)]
upgrade/hammer-x/tiering: fix upgrade sequence

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotasks/ceph_manager: fix logging on failed pool property
Sage Weil [Wed, 30 Sep 2015 13:23:26 +0000 (09:23 -0400)]
tasks/ceph_manager: fix logging on failed pool property

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #591 from athanatos/wip-13234
Sage Weil [Wed, 30 Sep 2015 12:35:10 +0000 (08:35 -0400)]
Merge pull request #591 from athanatos/wip-13234

rados: add test for 13234.yaml

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorados: add test for 13234.yaml
Samuel Just [Wed, 30 Sep 2015 00:23:31 +0000 (17:23 -0700)]
rados: add test for 13234.yaml

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agos3tests using ec data pool
Vasu Kulkarni [Tue, 29 Sep 2015 16:52:34 +0000 (12:52 -0400)]
s3tests using ec data pool

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
10 years agoMerge pull request #586 from ceph/wip-mdscap
John Spray [Tue, 29 Sep 2015 09:08:20 +0000 (10:08 +0100)]
Merge pull request #586 from ceph/wip-mdscap

tasks/cephfs: mds allow

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #575 from ceph/wip-32bits-ceph-fuse
Gregory Farnum [Tue, 29 Sep 2015 05:19:28 +0000 (22:19 -0700)]
Merge pull request #575 from ceph/wip-32bits-ceph-fuse

suites/fs: test ceph-fuse with 32-bits ino_t

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agobuildpackages: implicit for OpenStack
Loic Dachary [Mon, 28 Sep 2015 20:46:10 +0000 (22:46 +0200)]
buildpackages: implicit for OpenStack

When using the teuthology-openstack command, buildpackages is implicit
and does not need to be included when running the test suite. Move the
stanza to the debug directory as a reminder when debuging.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agorados/singleton-nomsgr/all/11429: grep osd.0 only
Sage Weil [Mon, 28 Sep 2015 17:10:45 +0000 (13:10 -0400)]
rados/singleton-nomsgr/all/11429: grep osd.0 only

Restart can be slow enough that osd.1 and 2 finish deleting the
pgs.  Verifying one osd sees the instance is sufficient.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotasks/cephfs: mds allow
Sage Weil [Mon, 28 Sep 2015 16:38:04 +0000 (12:38 -0400)]
tasks/cephfs: mds allow

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge remote-tracking branch 'gh/wip-infernalis'
Sage Weil [Mon, 28 Sep 2015 14:32:04 +0000 (10:32 -0400)]
Merge remote-tracking branch 'gh/wip-infernalis'

10 years agoMerge pull request #583 from dachary/wip-buildpackages-flock
Loic Dachary [Mon, 28 Sep 2015 00:03:54 +0000 (02:03 +0200)]
Merge pull request #583 from dachary/wip-buildpackages-flock

buildpackages: flock must --close

10 years agoMerge pull request #584 from dachary/wip-buildpackages-centos-6
Loic Dachary [Mon, 28 Sep 2015 00:01:30 +0000 (02:01 +0200)]
Merge pull request #584 from dachary/wip-buildpackages-centos-6

buildpackages: user-data must be per os-type/os-version

10 years agobuildpackages: user-data must be per os-type/os-version
Loic Dachary [Sun, 27 Sep 2015 11:22:42 +0000 (13:22 +0200)]
buildpackages: user-data must be per os-type/os-version

CentOS 6.5 needs to install a package and reboot to grow the root file
system. Instead of assuming a common user-data.txt file can fit all
Operating Systems, make one user data per os-type/os-version combination.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoadd cache tiering test for hammer-x
Kefu Chai [Thu, 20 Aug 2015 14:49:44 +0000 (22:49 +0800)]
add cache tiering test for hammer-x

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
10 years agorados/singleton-nomsgr/all/11439: fix greps
Sage Weil [Sat, 26 Sep 2015 06:00:56 +0000 (02:00 -0400)]
rados/singleton-nomsgr/all/11439: fix greps

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agobuildpackages: flock must --close
Loic Dachary [Sat, 26 Sep 2015 13:20:19 +0000 (15:20 +0200)]
buildpackages: flock must --close

The process run by flock must not inherit the file descriptor because
this will cause the lock to be held forever should the command survive
the call to flock. This is for instance the case for the ssh-agent.

Signed-off-by: Loic Dachary <loic@dachary.org>