Commit Graph

4859 Commits

Author SHA1 Message Date
John Spray
aafa06eb9d tasks/cephfs: generate mount paths on the fly
...because new tests that modify the client ID will
get confused about whether they're mounted or not, otherwise.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 14:04:05 +00:00
John Spray
acff449c04 tasks/cephfs: support mount_path in Mount subclasses
For e.g. volumeclient guests that want to mount
a subpath.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 13:26:58 +00:00
John Spray
26423e9574 tasks/cephfs: fix wait in assert_cluster_log
I had the monc tick interval wrong.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:58:01 +00:00
John Spray
a6970271be tasks/cephfs: fixes to FuseMount
This was getting stressed in new ways by
TestSessionMap.test_session_reject, which
has a mount that fails initially.

Two changes here:
 * Raise CommandFailedError instead of RuntimeError when
   a mount fails (i.e. catch process termination instead
   of timing out on /sys/ population)
 * Generalise error handling on umount, so that we only
   raise the exception on an umount failure if the mount
   appears to really not be unmounted.  There is some
   EINVAL corner case that was getting triggered by the test.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:58:01 +00:00
John Spray
141de6e1b4 tasks/cephfs: add TestSessionMap.test_session_reject
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:58:01 +00:00
John Spray
3b9b68b176 tasks/cephfs: add assert_cluster_log
For capturing the cluster log and asserting
that we see a particular expected message.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:58:00 +00:00
John Spray
d8106fa9e1 tasks: add run_ceph_w to CephManager
Analogous to raw_cluster_command, but instead
of calling blocking CLI command we're invoking
the -w mode.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:58:00 +00:00
John Spray
8b5edd4fe9 tasks/cephfs: new hooks for auth keys and config
Used when configuring clients with dynamically
generated auth keys, and pointing them at mount paths.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:57:33 +00:00
David Zafman
7d2bbc900d Merge pull request #775 from ceph/wip-stat-error
repair_test: Add whitelist item for new stat error message
2016-01-04 15:25:27 -08:00
Sage Weil
926a8cbb2a tasks/osd_recovery: fewer objects in test_incomplete_pgs
Otherwise we risk filling up a (fast) disk.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-02 09:29:28 -05:00
Sage Weil
04e41a608b rados: 5m radosbench (not 10m)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-01 09:35:31 -05:00
Sage Weil
6110421bce rados: run radosbench for 10m (not 15m)
Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-30 09:43:59 -05:00
Sage Weil
07232b1e2b rados/singleton/all/pg-removal-interruption: ensure osd.0 is marked down
We were waiting for teh dameon to fail, not for the mons to notice,
which meant that after we restart the daemon the next tell could
try to talk to the old osd.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-24 09:57:52 -05:00
Josh Durgin
c7cd4f744b rbd: increase length of non-valgrind fsx workloads
New lab machines make these run much faster. These should take ~1-1.5 hours now.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 16:59:46 -08:00
Josh Durgin
ef25ba3920 rbd: add helgrind to valgrind subsuite
This checks locking problems. This can be a separate facet for
workunits, but for now it requires a manual 2nd configuration for
rbd_fsx.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 16:59:46 -08:00
Josh Durgin
888ff87da0 rbd: add a couple new workunits
for rbd-nbd and the journalling cli

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 16:59:46 -08:00
Josh Durgin
8bd0b9dabf rbd: add some workloads with journalling enabled
Separating features into its own facet would be good,
but requires changing some of the tests a bit.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 16:59:46 -08:00
Josh Durgin
5864d56592 rbd: only test on xfs
btrfs is not recommended for production

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 16:59:46 -08:00
Sage Weil
7f446f1a2d Merge remote-tracking branch 'gh/jewel' 2015-12-23 17:07:41 -05:00
Sage Weil
179ff64277 Merge pull request #755 from guangyy/wip-13441-test
pg: add test cases for pg list_missing on EC pool
2015-12-23 17:06:39 -05:00
Josh Durgin
6953166aee Merge pull request #777 from ceph/wip-radosbench
rados: run radosbench for 15m instead of 30m

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-23 14:06:10 -08:00
Sage Weil
e2f9cedd64 rados: run radosbench for 15m instead of 30m
The smithi disks fill after about 20m.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-23 17:00:05 -05:00
Sage Weil
0af7305542 Merge remote-tracking branch 'gh/jewel' 2015-12-22 17:02:43 -05:00
Josh Durgin
94aaecbd93 Merge pull request #774 from ceph/wip-radostool
suites/rados/singleton/all/radostool: whitelist quota error

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-22 13:55:23 -08:00
Sage Weil
2b4e9497b2 suites/rados/singleton/all/radostool: whitelist quota error
The test sets and hits a quota; whitelist the message

Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-22 16:49:57 -05:00
Josh Durgin
b78dd035ff Merge pull request #772 from ceph/wip-14113-jewel
suites/rbd: disable pool validation for pool snaps test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-18 08:44:01 -08:00
Jason Dillaman
46dddfc54b suites/rbd: disable pool validation for pool snaps test
Fixes: #14113
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 02:31:07 -05:00
Loic Dachary
686d6e9c0b Merge pull request #769 from dachary/wip-buildpackages-centos-7.1
buildpackages: support CentOS 7.1 and CentOS 7.2
2015-12-17 10:35:20 +01:00
Loic Dachary
834a38cf90 buildpackages: support CentOS 7.1 and CentOS 7.2
Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-17 10:31:37 +01:00
Sage Weil
0dba0e19e8 Merge remote-tracking branch 'gh/jewel' 2015-12-16 13:04:07 -05:00
David Zafman
a204f6f932 repair_test: Add whitelist item for new stat error message
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-12-15 17:43:48 -08:00
Loic Dachary
ac45601950 Merge pull request #764 from dachary/wip-buildpackages-log
buildpackages: log the output of make
2015-12-12 14:43:47 +01:00
Loic Dachary
64d8a586f7 buildpackages: no need to sudo in bootcmd
Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-12 14:27:55 +01:00
Loic Dachary
0c1e7f1f6b buildpackages: log the output of make
Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-12 14:03:57 +01:00
yuriw
d4d3787609 Suites/jewel in the smithi lab will be on centos 7.1
Signed-off-by: yuriw <yuri.weinstein@gmail.com>
2015-12-11 10:29:39 -08:00
Loic Dachary
f19a519b8e Merge pull request #756 from dachary/wip-13624-workunit-git
workunits: fetch from --ceph-git-url
2015-12-11 12:27:18 +01:00
Loic Dachary
a5ce9c2926 Merge pull request #758 from dreamhost/wip-openstack-dhc
Fix runs on OpenStack clusters like DreamHost Compute

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-11 08:04:52 +01:00
Robin H. Johnson
ebf8508c08 buildpackages: pkgrepo host also needs user-data setup.
The packages repo host fails in environments where networking setup is
needed in VMs. Use the same user-data as the buildhosts to ensure this
is the case.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-12-10 22:58:09 -08:00
Robin H. Johnson
89bde0b8fe buildpackages: copy teuthology user-data.txt changes
7b27e1db7: openstack: support /etc/network/intefaces injection
2358562cf: ensure VMs always have /etc/hosts set up
4378a505d: always allow unsigned deb packages
50b2db521: openstack: encode instance name with the full IP
6e828a33b: openstack: add 8.8.8.8 as a last resort resolver

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-12-10 22:58:04 -08:00
Robin H. Johnson
3c6954642a
buildpackages: catch instance creation failure.
Split the sleep from the server creation, so we catch 'server create'
failures (eg due to quota):
> Quota exceeded for cores: Requested 16, but already used 10 of 20 cores
> (HTTP 403) (Request-ID: req-6467934e-db50-4479-995c-4d44dedf553a)

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-12-10 11:55:53 -08:00
Robin H. Johnson
0240f57643
buildpackages: Be robust about addresses
OpenStack could tell us the VM has multiple networks, and offers no
guarantee about the order of addresses either (the old code failed if
the v4 IP was first).

For now, take the first listed network, and the first listed IPv4
address therein. Comments contain more detailed examples of possible
output from openstack tool.

Also remove the need for using jq to parse the output.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-12-10 11:55:49 -08:00
Loic Dachary
78bb60341e Merge pull request #757 from dachary/wip-dummy
Revert "dummy: only use the user playbook"
2015-12-08 01:48:26 +01:00
Loic Dachary
d0280d7910 Revert "dummy: only use the user playbook"
This reverts commit a016f29e21.
2015-12-08 01:47:09 +01:00
Gregory Farnum
da8a891b74 Merge pull request #744 from ceph/wip-inode-claim
tasks/cephfs: add TestJournalRepair.test_table_tool_take_inos

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-12-06 21:10:10 -08:00
Gregory Farnum
5e714c69d5 Merge pull request #703 from ceph/wip-layout-restrict
tasks/cephfs: test for auth caps pool-setting restriction

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-12-06 21:05:55 -08:00
Gregory Farnum
c619c161af Merge pull request #728 from ceph/wip-snap-strays
tasks/cephfs: cover snaps in test_strays
2015-12-06 21:04:30 -08:00
Gregory Farnum
543d48db5c Merge pull request #709 from ceph/wip-scrub-basic
tasks/cephfs: add TestForwardScrub
2015-12-06 21:01:53 -08:00
Loic Dachary
b0a770a3e7 workunit: fetch from --ceph-git-url
The commit from which workunits are fetched must be retrieved
from --ceph-git-url via teuth_config.get_ceph_git_url() instead of
assuming it is available via git://git.ceph.com/ceph.git.

Using git://git.ceph.com/ceph.git is convenient because it supports git
archive. In the general case, some git servers such as github do not
support git archive and a full git clone must be done instead.

Although it would be possible to

    git clone --branch=master --depth=1 --single-branch

to reduce the amount of data being retrieved, it would require a

    git fetch origin SHA1

but git version >= 1.7 do not support fetching a commit.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-06 13:23:14 +01:00
Loic Dachary
28dc5c0c33 workunit: keep the path to the list of tests in a variable
Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-06 13:07:13 +01:00
Loic Dachary
7de33f082e workunit: allow tag to override sha1
The sha1 for the workunit task is always set by the suite.py task. The
tag must be checked before the sha1 othewise it cannot be used to
override the sha1.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-06 12:34:59 +01:00