Commit Graph

655 Commits

Author SHA1 Message Date
Greg Farnum
afbc90b9a6 Merge remote-tracking branch 'origin/wip-full-msg' into greg-fs-testing
https://github.com/ceph/ceph-qa-suite/pull/786

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 16:06:45 -08:00
Greg Farnum
4169ca9434 Merge remote-tracking branch 'origin/wip-global-config' into greg-fs-testing
https://github.com/ceph/ceph-qa-suite/pull/784

Conflicts:
	tasks/cephfs/vstart_runner.py
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 16:06:02 -08:00
Greg Farnum
0e9b07f046 Merge remote-tracking branch 'origin/wip-14048' into greg-fs-testing
https://github.com/ceph/ceph-qa-suite/pull/767

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 15:53:47 -08:00
Greg Farnum
10d9fe1de6 Merge remote-tracking branch 'origin/wip-manila' into greg-fs-testing
https://github.com/ceph/ceph-qa-suite/pull/680

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 14:42:14 -08:00
Greg Farnum
617d8cce74 Merge remote-tracking branch 'origin/jewel-14254' into greg-fs-testing
https://github.com/ceph/ceph-qa-suite/pull/798

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 14:33:38 -08:00
Yan, Zheng
9b0e2a3ace tasks/cephfs: test for race between cap flush and clientreplay
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-15 13:49:19 +08:00
John Spray
500aac599d tasks/cephfs: override max_pgs_per_osd in TestVolumeClient
Because volume client cues its PG counts from the
mon pg warn max per osd setting, the teuthology template's
ultra-high 10000 setting causes problems.  Force it down
to the usual sensible default for this test.

Also update vstart_runner to populate ctx.daemons so that the test
can restart daemons the same way on vstart as in full blown teuthology.

For branch wip-manila

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
d1c3ef1fee tasks/cephfs: pg_num check in volume_client test
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
fb2e38f2df tasks/cephfs: fix raising from RemoteProcess.wait()
...in the case where we call wait() on an already-finished
process.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
55a04930e3 tasks/cephfs: fix vstart's LocalDaemon.proc
This class is meant to quack like a DaemonState,
so it needs to expose a .proc attribute.  This
was breaking TestDamageTable.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
5c525219c4 tasks/cephfs: fix wait in test_volume_client
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
627c33054c tasks/cephfs: add test_volume_client
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
523d84b5f0 tasks/cephfs: fix fuse killing in vstart
The "ps au" output was truncating lines which could cause
processes to get missed in some cases, like where there
is a long --client-mountpoint argument.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
cb699cccfe tasks/cephfs: write_n_mb optionally background
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
b94b35b68f tasks/cephfs: reset IDs of mounts between tests
because volumeclient test twiddles the IDs to
match the auth identities it creates.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
7a19b6dc0d tasks/cephfs: clear extra auth ids on test start
Because new volumeclient tests will be creating IDs
instead of modifying the default ones.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
addf313c24 tasks/cephfs: add test case auth_list helper
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
Gregory Farnum
3b37c245b3 Merge pull request #743 from ceph/wip-root-metadata
tasks/cephfs: add TestSessionMap.test_session_reject

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-14 10:37:04 -08:00
John Spray
b010b6fe35 tasks: add TestSessionMap.test_[mount|tell]_conn_close
To check that teardown is happening correctly when
sending commands to an MDS.

Fixes: #14048
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-13 09:29:08 +00:00
Jason Dillaman
608fb1f0e0 suites/rbd: avoid redundant helgrind tests
Allow rbd_fsx to accept an override for which valgrind tool to use.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-12 21:08:00 -05:00
John Spray
028a140acf tasks/cephfs: better message from test_full_fsync
When it gives an error from the unexpected place,
say so.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 15:15:10 +00:00
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
Samuel Just
7831ca1e44 Revert "pg: add test cases for pg list_missing on EC pool"
This reverts commit 6fb44db9cb.
2016-01-07 11:02:40 -08:00
Yan, Zheng
6082cb2b71 Merge pull request #785 from ceph/wip-14257
tasks/cephfs: fix wait_for_state timing
2016-01-07 22:22:32 +08:00
John Spray
58c13c1a28 tasks/cephfs: fix wait_for_state timing
Return actual elapsed wallclock time instead of
the number of times we polled.

Fixes: #14257
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-07 11:24:57 +00:00
John Spray
00f1523170 tasks/cephfs: update vstart_runner for teuthology change
Previously teuthology read test path from ctx.teuthology_config,
now it reads it from the global teuthology.config.config object.

This was breaking test_journal_migration because it uses tasks/workunit,
when run with vstart_runner.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-06 23:57:54 +00:00
Greg Farnum
eb1d4f607c Merge remote-tracking branch 'origin/jewel-14196' 2016-01-05 23:11:32 -08:00
Greg Farnum
8488a991a9 Merge remote-tracking branch 'origin/wip-13583' 2016-01-05 22:57:51 -08: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
Yan, Zheng
b2a304e651 tasks/cephfs: fix race in test_damage
When stray directory inodes are corrupted, MDS may go to damaged state
after becoming active. (MDCache::open_root/populate_mydir is called by
MDSRank::starting_done).

Fixes: #14196
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-04 20:42:35 +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
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
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
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
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
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
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
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