]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoMerge pull request #328 from ceph/wip-10736
Zack Cerza [Tue, 10 Feb 2015 17:56:06 +0000 (10:56 -0700)]
Merge pull request #328 from ceph/wip-10736

Created a new suite to test teuthology

10 years agoCreated a new suite to test teuthology
Andrew Schoen [Thu, 5 Feb 2015 22:03:13 +0000 (16:03 -0600)]
Created a new suite to test teuthology

This suite locks machines of varying distros and runs the 'tests' tasks
against them. This will test both vps locking / provisioning and
baremetal locking.

Also, we test the chef and install tasks with ubuntu and rhel.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #327 from ceph/wip-10702
Gregory Farnum [Tue, 10 Feb 2015 16:53:18 +0000 (08:53 -0800)]
Merge pull request #327 from ceph/wip-10702

tasks/cephfs: fix fuse force unmount

10 years agotasks/cephfs: fix fuse force unmount
John Spray [Tue, 10 Feb 2015 12:37:20 +0000 (12:37 +0000)]
tasks/cephfs: fix fuse force unmount

This was broken in the case of multiple
mounts, and in the case of stuck mounts.

Fixes: #10702
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoCorrected "branch" to be outside of the 'clients:' section
Yuri Weinstein [Mon, 9 Feb 2015 19:27:50 +0000 (11:27 -0800)]
Corrected "branch" to be outside of the 'clients:' section

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoMerge pull request #324 from dmick/master
Warren Usui [Sat, 7 Feb 2015 01:40:21 +0000 (17:40 -0800)]
Merge pull request #324 from dmick/master

tasks/calamari_setup: ice_setup 0.2.0 has added another prompt

10 years agotasks/calamari_setup: ice_setup 0.2.0 has added another prompt
Dan Mick [Fri, 6 Feb 2015 01:23:58 +0000 (17:23 -0800)]
tasks/calamari_setup: ice_setup 0.2.0 has added another prompt

Add an extra '\n' to the interaction string to answer it

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoextra_packages: stop trying to install libcephfs stuff
Greg Farnum [Thu, 5 Feb 2015 19:20:49 +0000 (11:20 -0800)]
extra_packages: stop trying to install libcephfs stuff

These package names all differ across distros, and they're included in
teuthology's install task anyway.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agooverrides/short_pg_log: 30/50 was too short, make 100/200
Samuel Just [Wed, 4 Feb 2015 22:22:19 +0000 (14:22 -0800)]
overrides/short_pg_log: 30/50 was too short, make 100/200

Signed-off-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #322 from ceph/wip-10753
Zack Cerza [Wed, 4 Feb 2015 22:02:10 +0000 (15:02 -0700)]
Merge pull request #322 from ceph/wip-10753

Add labels to a couple common task failures

10 years agoAdd labels to a couple common task failures
Andrew Schoen [Wed, 4 Feb 2015 21:42:40 +0000 (15:42 -0600)]
Add labels to a couple common task failures

The labels will help us quickly determine what the command was trying to
accomplish in log output.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #319 from athanatos/wip-min-size
Samuel Just [Mon, 2 Feb 2015 17:22:51 +0000 (09:22 -0800)]
Merge pull request #319 from athanatos/wip-min-size

Wip min size

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #304 from yuyuyu101/add-msgr-test
Haomai Wang [Mon, 2 Feb 2015 10:26:49 +0000 (18:26 +0800)]
Merge pull request #304 from yuyuyu101/add-msgr-test

rados: include msgr tests

10 years agoFixes http://tracker.ceph.com/issues/10652
Yuri Weinstein [Fri, 30 Jan 2015 22:48:14 +0000 (14:48 -0800)]
Fixes http://tracker.ceph.com/issues/10652

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agorados/thrash: add short_pg_log variant to encourage backfill
Samuel Just [Thu, 29 Jan 2015 18:47:49 +0000 (10:47 -0800)]
rados/thrash: add short_pg_log variant to encourage backfill

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agodo not try and install libcephfs-java via extra_packages
Greg Farnum [Wed, 28 Jan 2015 19:16:35 +0000 (11:16 -0800)]
do not try and install libcephfs-java via extra_packages

It's been added to the default install task, because the
package name varies across distros.

Fixes: #10510
Signed-off-by: Greg Farnum <greg@gregs42.com>
10 years agoMerge pull request #316 from ceph/wip-active-asok-10361
John Spray [Wed, 28 Jan 2015 13:59:48 +0000 (13:59 +0000)]
Merge pull request #316 from ceph/wip-active-asok-10361

mds_scrub_checks: only direct ops at the active MDS

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agorados: add size/min_size combinations to rados/thrash
Samuel Just [Fri, 14 Nov 2014 18:52:28 +0000 (10:52 -0800)]
rados: add size/min_size combinations to rados/thrash

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agofs: move into the ceph-fuse mount before doing a test
Greg Farnum [Tue, 27 Jan 2015 22:50:29 +0000 (14:50 -0800)]
fs: move into the ceph-fuse mount before doing a test

Fixes: #10465
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #312 from ceph/wip-prio-hb-pkts
Sage Weil [Tue, 27 Jan 2015 20:57:03 +0000 (12:57 -0800)]
Merge pull request #312 from ceph/wip-prio-hb-pkts

exercise osd heartbeat prioritization

10 years agoMerge pull request #296 from majianpeng/master
Sage Weil [Tue, 27 Jan 2015 20:56:31 +0000 (12:56 -0800)]
Merge pull request #296 from majianpeng/master

rados.py: Add write_fadvise_dontneed field

10 years agoMerge pull request #302 from ceph/wip-crush-tunables
Sage Weil [Tue, 27 Jan 2015 19:26:10 +0000 (11:26 -0800)]
Merge pull request #302 from ceph/wip-crush-tunables

ceph: set crush tunables

10 years agorados: exercise a few different crush tunable profiles
Sage Weil [Tue, 27 Jan 2015 19:25:12 +0000 (11:25 -0800)]
rados: exercise a few different crush tunable profiles

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds_scrub_checks: only direct ops at the active MDS
Greg Farnum [Tue, 27 Jan 2015 19:14:46 +0000 (11:14 -0800)]
mds_scrub_checks: only direct ops at the active MDS

Change the config option from mds_id to mds_rank to reflect the
fact that it's the rank we want to make use of (and will continue
to want when we're doing stuff like force exporting from one rank
to another).

Fixes: #10361
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge remote-tracking branch 'origin/next'
Josh Durgin [Tue, 27 Jan 2015 17:37:19 +0000 (09:37 -0800)]
Merge remote-tracking branch 'origin/next'

10 years agoMerge pull request #315 from ceph/wip-10577
Josh Durgin [Tue, 27 Jan 2015 00:09:33 +0000 (16:09 -0800)]
Merge pull request #315 from ceph/wip-10577

Added "branch: dumpling" to fix #10577

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoAdded "branch: dumpling" to fix #10577
Yuri Weinstein [Tue, 27 Jan 2015 00:00:46 +0000 (16:00 -0800)]
Added "branch: dumpling" to fix #10577

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoceph: set crush tunables
Sage Weil [Mon, 19 Jan 2015 15:58:39 +0000 (07:58 -0800)]
ceph: set crush tunables

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #314 from ceph/wip-wait-for-failure
Zack Cerza [Mon, 26 Jan 2015 19:26:14 +0000 (12:26 -0700)]
Merge pull request #314 from ceph/wip-wait-for-failure

ceph: test pg removal interruption; add ceph daemon failur einjection support

10 years agosuites/rbd: add copy-on-read tests
Josh Durgin [Sat, 24 Jan 2015 05:55:39 +0000 (21:55 -0800)]
suites/rbd: add copy-on-read tests

Add as a facet of librbd tests, since they all use cloning, and to a
couple tests with thrashing.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agosuites/rbd: split qemu and librbd tests
Josh Durgin [Sat, 24 Jan 2015 05:50:01 +0000 (21:50 -0800)]
suites/rbd: split qemu and librbd tests

qemu tests take a long time. We'll want to test more combinations of
options with librbd directly.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agosuites/rbd: Add rbd api tests with exclusive locking features
Josh Durgin [Sat, 24 Jan 2015 00:02:22 +0000 (16:02 -0800)]
suites/rbd: Add rbd api tests with exclusive locking features

Keep testing the old, non-default features in a renamed yaml file.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #303 from ceph/wip-10388
Gregory Farnum [Sat, 24 Jan 2015 01:10:06 +0000 (17:10 -0800)]
Merge pull request #303 from ceph/wip-10388

tasks/mds_flush: use new stray/purge perfcounters

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agorados/singleton: test interrupted pg removal
Sage Weil [Fri, 23 Jan 2015 23:43:01 +0000 (15:43 -0800)]
rados/singleton: test interrupted pg removal

Inject osd failure during pg removal.  Verify the OSD successfully
recovers.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds_flush: fix the flush test output expectations
Greg Farnum [Fri, 23 Jan 2015 23:24:02 +0000 (15:24 -0800)]
mds_flush: fix the flush test output expectations

Fixes: #10620
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoceph: no need to stop() before restart()
Sage Weil [Fri, 23 Jan 2015 23:21:31 +0000 (15:21 -0800)]
ceph: no need to stop() before restart()

restart() will stop if the daemon is running.  This will get rid of the
spurious error

2015-01-23 15:19:36,828.828 ERROR:tasks.ceph.osd.0:tried to stop a non-running daemon

when the daemon isn't already running.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoceph: add wait_for_failure command
Sage Weil [Fri, 23 Jan 2015 23:20:50 +0000 (15:20 -0800)]
ceph: add wait_for_failure command

Expect and then ignore a daemon failure.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agosamba: run only on ubuntu until #10627 is resolved
Greg Farnum [Fri, 23 Jan 2015 22:49:34 +0000 (14:49 -0800)]
samba: run only on ubuntu until #10627 is resolved

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 1dcff968a4fc359086723e8a3cb941051297f14a)

10 years agosamba: run only on ubuntu until #10627 is resolved
Greg Farnum [Fri, 23 Jan 2015 22:49:34 +0000 (14:49 -0800)]
samba: run only on ubuntu until #10627 is resolved

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #277 from ceph/wip-9780-9781
Samuel Just [Thu, 22 Jan 2015 00:51:28 +0000 (16:51 -0800)]
Merge pull request #277 from ceph/wip-9780-9781

ceph-objectstore-tool import/export and related fixes

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agosuites/rados: exercise heartbeat prioritization
Sage Weil [Wed, 21 Jan 2015 22:13:24 +0000 (14:13 -0800)]
suites/rados: exercise heartbeat prioritization

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoFormatting changes
David Zafman [Fri, 16 Jan 2015 19:21:49 +0000 (11:21 -0800)]
Formatting changes

10 years agoFix wrapped line
David Zafman [Wed, 14 Jan 2015 22:38:53 +0000 (14:38 -0800)]
Fix wrapped line

10 years agoFix objectstore name changed to keyvaluestore
David Zafman [Thu, 8 Jan 2015 20:02:53 +0000 (12:02 -0800)]
Fix objectstore name changed to keyvaluestore

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: Fix Thrasher kill_osd() to ignore pool going away
David Zafman [Mon, 15 Dec 2014 18:06:02 +0000 (10:06 -0800)]
ceph_manager: Fix Thrasher kill_osd() to ignore pool going away

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: Thrasher fixes to run() calls to set check_status = False
David Zafman [Mon, 12 Jan 2015 23:29:31 +0000 (15:29 -0800)]
ceph_manager: Thrasher fixes to run() calls to set check_status = False

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: Re-enable Thrasher ceph-objectstore-tool testing
David Zafman [Fri, 24 Oct 2014 03:28:28 +0000 (20:28 -0700)]
ceph_manager: Re-enable Thrasher ceph-objectstore-tool testing

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: In Thrasher randomly remove past intervals
David Zafman [Mon, 20 Oct 2014 22:03:54 +0000 (15:03 -0700)]
ceph_manager: In Thrasher randomly remove past intervals

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: In Thrasher disable ceph_objectstore_tool tests if old release missing...
David Zafman [Thu, 23 Oct 2014 17:45:09 +0000 (10:45 -0700)]
ceph_manager: In Thrasher disable ceph_objectstore_tool tests if old release missing command

Require ceph-objectstore-tool to be available on all OSD nodes
Log a message when tool is not available

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #308 from ceph/wip-10579
Gregory Farnum [Wed, 21 Jan 2015 15:08:45 +0000 (07:08 -0800)]
Merge pull request #308 from ceph/wip-10579

suites/fs: isolate quota task

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agosuites/fs: isolate quota task
John Spray [Wed, 21 Jan 2015 14:39:47 +0000 (14:39 +0000)]
suites/fs: isolate quota task

Quota script is moved out of fs/misc so that kclient
doesn't try to run it.  Update cfuse suite to find
the new location, and only enable quota for this
one script rather than enabling across
all misc tests.

Fixes: #10579
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agorados: include msgr tests
Haomai Wang [Tue, 20 Jan 2015 17:04:28 +0000 (01:04 +0800)]
rados: include msgr tests

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agotasks/mds_flush: use new stray/purge perfcounters
John Spray [Mon, 19 Jan 2015 21:32:50 +0000 (21:32 +0000)]
tasks/mds_flush: use new stray/purge perfcounters

Where previously we only tracked RADOS-level delete
ops during deletion, now also verify that they
correspond to the right number of MDS-level purge
operations.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #285 from ceph/wip-9883
John Spray [Mon, 19 Jan 2015 21:20:11 +0000 (21:20 +0000)]
Merge pull request #285 from ceph/wip-9883

tasks/mds_journal_repair: create new test

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agotasks/mds_journal_repair: add test_table_tool
John Spray [Wed, 14 Jan 2015 13:09:51 +0000 (13:09 +0000)]
tasks/mds_journal_repair: add test_table_tool

Explicit test of the tool's various modes, to
complement the places it's used in other tests.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/mds_journal_repair: create new test
John Spray [Fri, 19 Dec 2014 13:49:07 +0000 (13:49 +0000)]
tasks/mds_journal_repair: create new test

This tests the new #9883 repair functionality
where we selectively scrape dentries out of
the journal while the MDS is offline.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #298 from ceph/wip-bi-sharding-3
Alfredo Deza [Mon, 19 Jan 2015 17:17:27 +0000 (12:17 -0500)]
Merge pull request #298 from ceph/wip-bi-sharding-3

Wip bi sharding 3

10 years agoMerge pull request #300 from ceph/restore_giant-x_on_master
Yuri Weinstein [Fri, 16 Jan 2015 22:45:13 +0000 (14:45 -0800)]
Merge pull request #300 from ceph/restore_giant-x_on_master

Restored giant-x suite on master

10 years agoMerge pull request #301 from ceph/restore_giant-x_on_next
Yuri Weinstein [Fri, 16 Jan 2015 22:45:00 +0000 (14:45 -0800)]
Merge pull request #301 from ceph/restore_giant-x_on_next

Restore giant x on next

10 years agoRestored giant-x on next
Yuri Weinstein [Fri, 16 Jan 2015 19:48:53 +0000 (14:48 -0500)]
Restored giant-x on next

Signed-off-by: Yuri Weinstein <yuriw@magna002.ceph.redhat.com>
10 years agoRestored giant-x suite on master
Yuri Weinstein [Fri, 16 Jan 2015 19:46:16 +0000 (14:46 -0500)]
Restored giant-x suite on master

Signed-off-by: Yuri Weinstein <yuriw@magna002.ceph.redhat.com>
10 years agoMerge pull request #288 from dmick/master
Andrew Schoen [Thu, 15 Jan 2015 22:01:30 +0000 (16:01 -0600)]
Merge pull request #288 from dmick/master

Tweaks to calamari-setup

10 years agoradosgw_admin: don't use boto for testing 301 responses
Yehuda Sadeh [Wed, 14 Jan 2015 23:10:23 +0000 (15:10 -0800)]
radosgw_admin: don't use boto for testing 301 responses

boto follows up on the redirects. Switched to using httplib2 for sending
this request.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: set default region and zone to all clients
Yehuda Sadeh [Tue, 13 Jan 2015 21:53:40 +0000 (13:53 -0800)]
rgw: set default region and zone to all clients

Otherwise it's going to use zone 'default' for client.0, not as expected. Also
add region configuration to task.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #291 from dachary/wip-10018-scrub
Loic Dachary [Wed, 14 Jan 2015 08:29:19 +0000 (09:29 +0100)]
Merge pull request #291 from dachary/wip-10018-scrub

add erasure code repair / scrub tests (take 2)

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agotest: add write_fadvise_dontneed.yaml to test write_fadvise_dontneed.
Jianpeng Ma [Wed, 14 Jan 2015 05:34:25 +0000 (13:34 +0800)]
test: add write_fadvise_dontneed.yaml to test write_fadvise_dontneed.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agorados.py: Add write_fadvise_dontneed field
Jianpeng Ma [Wed, 14 Jan 2015 03:36:25 +0000 (11:36 +0800)]
rados.py: Add write_fadvise_dontneed field

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agorepair_test: hinfo_key error injection
Loic Dachary [Fri, 21 Nov 2014 15:43:29 +0000 (16:43 +0100)]
repair_test: hinfo_key error injection

Add a function dedicated to erasure coded pools tests, similar to
repair_test_1. Add a corrupter that removes the hinfo_key from the object.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: add ceph-objectstore-tool wrapper
Loic Dachary [Fri, 21 Nov 2014 15:38:54 +0000 (16:38 +0100)]
ceph_manager: add ceph-objectstore-tool wrapper

Add the CephManager.objectstore_tool method to encapsulate a call to
ceph-objectstore-tool. The wrapper can convert an object name into the
PG id and figure out the primary OSD. The designated OSD is stopped
before running the command and restarted afterwards.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: add object helpers
Loic Dachary [Fri, 21 Nov 2014 15:36:59 +0000 (16:36 +0100)]
ceph_manager: add object helpers

Add CephManager.methods to get information regarding the pools and PGs
used to store a given object.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agorepair_test: rework indentation to make it pep8 clean
Loic Dachary [Fri, 21 Nov 2014 14:52:25 +0000 (15:52 +0100)]
repair_test: rework indentation to make it pep8 clean

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agorepair_test: rework to remove levels of indirection
Loic Dachary [Fri, 21 Nov 2014 15:13:26 +0000 (16:13 +0100)]
repair_test: rework to remove levels of indirection

The commit is large but does not introduce any semantic change and
consists primarily in code moving around, re-indented and removed.

Replace functions generating functions by functions and sequentially
iterating over a list of functions with a sequential call to the
functions.

Replace the setup/teardown with an equivalent using a with
statement and the ceph_manager.pool method.

Replace inline code with a call to ceph_manager.wait_for_all_up

It makes it easier to modify the tests, for instance to create erasure
coded pools and tests specific to them.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: rework indentation to make it pep8 clean
Loic Dachary [Fri, 21 Nov 2014 14:58:27 +0000 (15:58 +0100)]
ceph_manager: rework indentation to make it pep8 clean

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: fix docstring typo
Loic Dachary [Thu, 20 Nov 2014 12:55:18 +0000 (13:55 +0100)]
ceph_manager: fix docstring typo

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: define pool context
Loic Dachary [Thu, 20 Nov 2014 12:54:11 +0000 (13:54 +0100)]
ceph_manager: define pool context

To create a pool before running a code bloc and remove it after.

   with manager.pool("mypool"):
        mytest..

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #290 from ceph/revert-250-wip-10018-scrub
David Zafman [Tue, 13 Jan 2015 19:14:14 +0000 (11:14 -0800)]
Merge pull request #290 from ceph/revert-250-wip-10018-scrub

Revert "add erasure code repair / scrub tests"

10 years agoRevert "add erasure code repair / scrub tests"
David Zafman [Tue, 13 Jan 2015 19:12:25 +0000 (11:12 -0800)]
Revert "add erasure code repair / scrub tests"

10 years agoMerge pull request #286 from ceph/wip-10261-wusui
Warren Usui [Tue, 13 Jan 2015 18:57:31 +0000 (10:57 -0800)]
Merge pull request #286 from ceph/wip-10261-wusui

Calamari_setup now allows > 1 mon.

10 years agoMerge pull request #250 from dachary/wip-10018-scrub
Loic Dachary [Tue, 13 Jan 2015 18:44:22 +0000 (19:44 +0100)]
Merge pull request #250 from dachary/wip-10018-scrub

add erasure code repair / scrub tests

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agorepair_test: hinfo_key error injection
Loic Dachary [Fri, 21 Nov 2014 15:43:29 +0000 (16:43 +0100)]
repair_test: hinfo_key error injection

Add a function dedicated to erasure coded pools tests, similar to
repair_test_1. Add a corrupter that removes the hinfo_key from the object.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: add ceph-objectstore-tool wrapper
Loic Dachary [Fri, 21 Nov 2014 15:38:54 +0000 (16:38 +0100)]
ceph_manager: add ceph-objectstore-tool wrapper

Add the CephManager.objectstore_tool method to encapsulate a call to
ceph-objectstore-tool. The wrapper can convert an object name into the
PG id and figure out the primary OSD. The designated OSD is stopped
before running the command and restarted afterwards.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: add object helpers
Loic Dachary [Fri, 21 Nov 2014 15:36:59 +0000 (16:36 +0100)]
ceph_manager: add object helpers

Add CephManager.methods to get information regarding the pools and PGs
used to store a given object.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agorepair_test: rework indentation to make it pep8 clean
Loic Dachary [Fri, 21 Nov 2014 14:52:25 +0000 (15:52 +0100)]
repair_test: rework indentation to make it pep8 clean

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agorepair_test: rework to remove levels of indirection
Loic Dachary [Fri, 21 Nov 2014 15:13:26 +0000 (16:13 +0100)]
repair_test: rework to remove levels of indirection

The commit is large but does not introduce any semantic change and
consists primarily in code moving around, re-indented and removed.

Replace functions generating functions by functions and sequentially
iterating over a list of functions with a sequential call to the
functions.

Replace the setup/teardown with an equivalent using a with
statement and the ceph_manager.pool method.

Replace inline code with a call to ceph_manager.wait_for_all_up

It makes it easier to modify the tests, for instance to create erasure
coded pools and tests specific to them.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: rework indentation to make it pep8 clean
Loic Dachary [Fri, 21 Nov 2014 14:58:27 +0000 (15:58 +0100)]
ceph_manager: rework indentation to make it pep8 clean

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: fix docstring typo
Loic Dachary [Thu, 20 Nov 2014 12:55:18 +0000 (13:55 +0100)]
ceph_manager: fix docstring typo

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: define pool context
Loic Dachary [Thu, 20 Nov 2014 12:54:11 +0000 (13:54 +0100)]
ceph_manager: define pool context

To create a pool before running a code bloc and remove it after.

   with manager.pool("mypool"):
        mytest..

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoFix objectstore name changed to keyvaluestore
David Zafman [Thu, 8 Jan 2015 20:02:53 +0000 (12:02 -0800)]
Fix objectstore name changed to keyvaluestore

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: Fix Thrasher kill_osd() to ignore pool going away
David Zafman [Mon, 15 Dec 2014 18:06:02 +0000 (10:06 -0800)]
ceph_manager: Fix Thrasher kill_osd() to ignore pool going away

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: Thrasher fixes to run() calls to set check_status = False
David Zafman [Fri, 24 Oct 2014 04:49:03 +0000 (21:49 -0700)]
ceph_manager: Thrasher fixes to run() calls to set check_status = False

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: Re-enable Thrasher ceph-objectstore-tool testing
David Zafman [Fri, 24 Oct 2014 03:28:28 +0000 (20:28 -0700)]
ceph_manager: Re-enable Thrasher ceph-objectstore-tool testing

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: In Thrasher randomly remove past intervals
David Zafman [Mon, 20 Oct 2014 22:03:54 +0000 (15:03 -0700)]
ceph_manager: In Thrasher randomly remove past intervals

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_manager: In Thrasher disable ceph_objectstore_tool tests if old release missing...
David Zafman [Thu, 23 Oct 2014 17:45:09 +0000 (10:45 -0700)]
ceph_manager: In Thrasher disable ceph_objectstore_tool tests if old release missing command

Require ceph-objectstore-tool to be available on all OSD nodes
Log a message when tool is not available

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agotasks/calamari_setup: build ice-tools virtualenv if building iceball
Dan Mick [Tue, 13 Jan 2015 03:42:19 +0000 (19:42 -0800)]
tasks/calamari_setup: build ice-tools virtualenv if building iceball

ice-tools needs a virtualenv populated to properly run to build
an iceball; add the commands to do that.  Also remove the built
iceball when the task exits.

Fixes: #10523
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agotasks/calamari_setup: remove HTTP-downloaded iceball, if any
Dan Mick [Tue, 13 Jan 2015 00:36:53 +0000 (16:36 -0800)]
tasks/calamari_setup: remove HTTP-downloaded iceball, if any

Fixes: #10522
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agotasks/calamari_setup: use ice_version to completely specify iceball
Dan Mick [Tue, 13 Jan 2015 00:36:14 +0000 (16:36 -0800)]
tasks/calamari_setup: use ice_version to completely specify iceball

Previously, the task would search for the lexicographically-greatest
filename matching ICE-*.tar.gz; now it builds a specific name
ICE-{ice_version}-{ice_distro}.tar.gz

Fixes: #10521
Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agofs: enable client quota on cfuse_workunit_misc
Greg Farnum [Mon, 12 Jan 2015 19:22:06 +0000 (11:22 -0800)]
fs: enable client quota on cfuse_workunit_misc

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoCalamari_setup now allows > 1 mon.
Warren Usui [Sat, 10 Jan 2015 00:10:11 +0000 (16:10 -0800)]
Calamari_setup now allows > 1 mon.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Fixes: #10261
10 years agoMerge pull request #279 from ceph/wip-cephfs-cleanup
John Spray [Fri, 9 Jan 2015 14:42:42 +0000 (14:42 +0000)]
Merge pull request #279 from ceph/wip-cephfs-cleanup

Assorted cleanup in the CephFS tests

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agotasks/mds_auto_repair: remove unneeded log settings
John Spray [Thu, 18 Dec 2014 19:39:44 +0000 (19:39 +0000)]
tasks/mds_auto_repair: remove unneeded log settings

The small segments and small segment limit
were used when doing a hacky flush by doing
IO and waiting: now that we have the explicit
'flush journal' asok in use, we can just use
a normal journal configuration.

Signed-off-by: John Spray <john.spray@redhat.com>