]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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>
10 years agotasks/cephfs: remove `config` from Filesystem cons
John Spray [Tue, 23 Dec 2014 16:11:12 +0000 (16:11 +0000)]
tasks/cephfs: remove `config` from Filesystem cons

This was only used in get_first_mon, which doesn't actually
need the parameter itself.  Makes it easier to casually
use Filesystem from any place with a ctx to hand.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: umount unused clients before running
John Spray [Fri, 19 Dec 2014 14:03:41 +0000 (14:03 +0000)]
tasks/cephfs: umount unused clients before running

When unused clients were mounted during an fs new,
they would end up in a state where they stalled
on subsequent attempts to umount them (ceph-fuse
stalls on exit if it can't terminate its mds_session)

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: move ROOT_INO into filesystem module
John Spray [Fri, 19 Dec 2014 13:44:20 +0000 (13:44 +0000)]
tasks/cephfs: move ROOT_INO into filesystem module

...so that other tests can get at it.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: be more precise in set_clients_block
John Spray [Thu, 18 Dec 2014 19:38:53 +0000 (19:38 +0000)]
tasks/cephfs: be more precise in set_clients_block

Instead of blocking the whole port range (which
might make OSDs running on that node collateral
damage), read the MDS's port out of the MDS map
and just block that.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: use set_conf() from test case class
John Spray [Thu, 18 Dec 2014 18:24:37 +0000 (18:24 +0000)]
tasks/cephfs: use set_conf() from test case class

...because this is the one that will store up
changes to roll back during teardown.

Doing this makes it easy to run lots of test cases
togeher in a single teuthology run, raher than
setting up/tearing down the ceph cluster for each
on.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: move common setUp/tearDown to parent
John Spray [Thu, 18 Dec 2014 13:03:40 +0000 (13:03 +0000)]
tasks/cephfs: move common setUp/tearDown to parent

Now that we have more of these cases, there was lots
of duplication in setup and teardown.  For some tests
the "reset everything" setup/teardown is overkill,
but it's harmless.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: move wait_until helpers to testcase
John Spray [Thu, 18 Dec 2014 12:50:16 +0000 (12:50 +0000)]
tasks/cephfs: move wait_until helpers to testcase

...so that other test cases can use them

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/ceph: update mds auth caps to 'allow *'
John Spray [Thu, 18 Dec 2014 18:29:53 +0000 (18:29 +0000)]
tasks/ceph: update mds auth caps to 'allow *'

Since the new 'tell' for the MDS was introduced,
caps have to have the '*' to permit running remote
administrative commands.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #283 from ceph/issue-10275
Zack Cerza [Thu, 8 Jan 2015 20:32:27 +0000 (13:32 -0700)]
Merge pull request #283 from ceph/issue-10275

Use qemu-kvm in the qemu task for rpm based systems.

10 years agoUse qemu-kvm in the qemu task for rpm based systems.
Andrew Schoen [Mon, 22 Dec 2014 16:51:25 +0000 (10:51 -0600)]
Use qemu-kvm in the qemu task for rpm based systems.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
10 years agoMerge pull request #280 from ceph/wip-10387-cleanup
Gregory Farnum [Thu, 8 Jan 2015 04:05:07 +0000 (20:05 -0800)]
Merge pull request #280 from ceph/wip-10387-cleanup

tasks/mds_flush: remove #10387 workaround

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #282 from ceph/wip-10469
Zack Cerza [Wed, 7 Jan 2015 17:10:28 +0000 (10:10 -0700)]
Merge pull request #282 from ceph/wip-10469

Inherit teuthology's log level

10 years agoInherit teuthology's log level
Zack Cerza [Wed, 7 Jan 2015 16:53:38 +0000 (09:53 -0700)]
Inherit teuthology's log level

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agotasks/mds_flush: remove #10387 workaround
John Spray [Wed, 7 Jan 2015 13:08:30 +0000 (13:08 +0000)]
tasks/mds_flush: remove #10387 workaround

Now that #10387 is fixed in master, we can tighten
up this test to ensure that the expected deletions
are happening.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #278 from ceph/wip-rm-tiobench
Sage Weil [Tue, 6 Jan 2015 16:25:47 +0000 (08:25 -0800)]
Merge pull request #278 from ceph/wip-rm-tiobench

#10152: drop tiobench tests

10 years agodrop tiobench tests
Ken Dreyer [Tue, 6 Jan 2015 15:59:14 +0000 (08:59 -0700)]
drop tiobench tests

The tiobench software has been abandoned upstream for years. Fedora and
Debian are no longer shipping the tiobench package, so we've had to
carry the package ourselves in the Ceph project, and we're trying to
slim down our dependencies where it makes sense to do so.

Nuke the tiobench tests.

http://tracker.ceph.com/issues/10152 Refs: #10152

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoRevert "Move output in task/s3readwrite"
Sage Weil [Mon, 29 Dec 2014 20:39:26 +0000 (12:39 -0800)]
Revert "Move output in task/s3readwrite"

This reverts commit 26a33c3a5aa2aedb52eb5ce140c76503f099b253.

This is tryign to create the archive dir on the remote host:

2014-12-29T12:15:30.213 INFO:teuthology.orchestra.run.plana31:Running: 'mkdir -p /var/lib/teuthworker/archive/sage-2014-12-29_11:40:52-rgw-next---basic-multi/683052'
2014-12-29T12:15:30.231 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/teuthology_master/teuthology/contextutil.py", line 28, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/var/lib/teuthworker/src/ceph-qa-suite_next/tasks/s3readwrite.py", line 241, in run_tests
    ctx.cluster.only(client).run(args=['mkdir', '-p', archive_dir])
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/cluster.py", line 64, in run
    return [remote.run(**kwargs) for remote in remotes]
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/remote.py", line 128, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/run.py", line 368, in run
    r.wait()
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/run.py", line 106, in wait
    exitstatus=status, node=self.hostname)
CommandFailedError: Command failed on plana31 with status 1: 'mkdir -p /var/lib/teuthworker/archive/sage-2014-12-29_11:40:52-rgw-next---basic-multi/683052'

...but it should only be on the local host.

10 years agoRevert "tasks/ceph_manager: dump raw cluster command at debug level"
Sage Weil [Tue, 23 Dec 2014 20:57:18 +0000 (12:57 -0800)]
Revert "tasks/ceph_manager: dump raw cluster command at debug level"

This reverts commit b0ebeba79cf349b9c5a6e387f8246d7b6d0ef576.

10 years agoMerge pull request #275 from ceph/wip-10404
Zack Cerza [Tue, 23 Dec 2014 18:37:19 +0000 (11:37 -0700)]
Merge pull request #275 from ceph/wip-10404

tasks/ceph_manager: debug raw command output

10 years agotasks/ceph_manager: dump raw cluster command at debug level
Sage Weil [Tue, 23 Dec 2014 18:28:22 +0000 (10:28 -0800)]
tasks/ceph_manager: dump raw cluster command at debug level

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #227 from ceph/wip-9881
Gregory Farnum [Mon, 22 Dec 2014 15:13:55 +0000 (07:13 -0800)]
Merge pull request #227 from ceph/wip-9881

#9881 MDS flush journal test

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agosuites/fs: hook in mds_flush
John Spray [Mon, 22 Dec 2014 09:43:37 +0000 (09:43 +0000)]
suites/fs: hook in mds_flush

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks: create mds_flush task
John Spray [Mon, 3 Nov 2014 15:38:57 +0000 (15:38 +0000)]
tasks: create mds_flush task

This tests:
 * The new 'flush journal' asok command
 * That the resulting on disk structures are as expected
 * That cephfs-journal-tool is happy with the result

Fixes: #9881
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #270 from ceph/wip-cot-rename
David Zafman [Fri, 19 Dec 2014 00:39:21 +0000 (16:39 -0800)]
Merge pull request #270 from ceph/wip-cot-rename

ceph_objectstore_tool: Changes for rename of binary ceph-objectstore-too...

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #271 from dachary/wip-cot-rename
David Zafman [Fri, 19 Dec 2014 00:08:16 +0000 (16:08 -0800)]
Merge pull request #271 from dachary/wip-cot-rename

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #263 from ceph/wip-calamari-nosetests
Dan Mick [Thu, 18 Dec 2014 23:48:55 +0000 (15:48 -0800)]
Merge pull request #263 from ceph/wip-calamari-nosetests

Add calamari-nosetests task and calamari suite (and remove obsolete calamari task)

10 years agoAdd calamari suite definitions.
Dan Mick [Wed, 22 Oct 2014 00:27:32 +0000 (17:27 -0700)]
Add calamari suite definitions.

Notes:
- very simple cluster configuration
- selects vps in the actual suite config files
- wheezy is currently disabled

Signed-off-by: Dan Mick <dan.mick@inktank.com>
10 years agoAdd calamari_nosetests task.
Dan Mick [Thu, 20 Nov 2014 05:54:44 +0000 (21:54 -0800)]
Add calamari_nosetests task.

Includes all accumulated review commentary and final 'yum clean all' fix.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoRemove obsolete tasks/calamari
Dan Mick [Wed, 26 Nov 2014 06:19:19 +0000 (22:19 -0800)]
Remove obsolete tasks/calamari

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoceph_objectstore_tool: fix pep8 errors
Loic Dachary [Thu, 18 Dec 2014 22:50:12 +0000 (23:50 +0100)]
ceph_objectstore_tool: fix pep8 errors

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: --op list now prints [pg,object]
Loic Dachary [Thu, 18 Dec 2014 22:12:48 +0000 (23:12 +0100)]
ceph_objectstore_tool: --op list now prints [pg,object]

The format of the output of --op list was changed to include the PG to
which the object belong. It simplifies the loop in
ceph_objectstore_tool.py.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agorados/singleton: debug watch-notify test
Sage Weil [Thu, 18 Dec 2014 23:33:57 +0000 (15:33 -0800)]
rados/singleton: debug watch-notify test

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #225 from ceph/wip-7317
Gregory Farnum [Thu, 18 Dec 2014 19:30:07 +0000 (11:30 -0800)]
Merge pull request #225 from ceph/wip-7317

#7317 Tests for ENOSPC and OSD epoch barrier handling

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #269 from ceph/wip-librados-debug
Sage Weil [Thu, 18 Dec 2014 15:05:50 +0000 (07:05 -0800)]
Merge pull request #269 from ceph/wip-librados-debug

rados/thrash: enable client debug for api tests

10 years agorados/thrash: enable client debug for api tests
Sage Weil [Thu, 18 Dec 2014 14:41:18 +0000 (06:41 -0800)]
rados/thrash: enable client debug for api tests

These will help catch watch/notify issues...

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agosuites/fs: hook in mds_full task
John Spray [Fri, 10 Oct 2014 13:29:41 +0000 (14:29 +0100)]
suites/fs: hook in mds_full task

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks: add mds_full task
John Spray [Thu, 2 Oct 2014 12:01:56 +0000 (13:01 +0100)]
tasks: add mds_full task

This is for exercising the CephFS behaviour
when the cluster becomes full.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: let get_config use non-mon services
John Spray [Mon, 15 Dec 2014 11:12:34 +0000 (11:12 +0000)]
tasks/cephfs: let get_config use non-mon services

Previously was always using the default values of things
so querying mon instead of the appropriate service
worked fine.  However, for things we might want to
update on a per-test basis we need to go ask the
correct service what the setting really is.

Needed for osd_mon_report_interval_max in the ENOSPC
testing.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: enable osd epoch get from mounts
John Spray [Tue, 28 Oct 2014 17:12:02 +0000 (17:12 +0000)]
tasks/cephfs: enable osd epoch get from mounts

Using new hooks for #7317

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/mds_client_limits: fix initial rm -rf
John Spray [Mon, 15 Dec 2014 19:48:23 +0000 (19:48 +0000)]
tasks/mds_client_limits: fix initial rm -rf

This was previously a no-op because it was trying
to delete "*" instead of *

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/kclient: add 'debug' option
John Spray [Tue, 28 Oct 2014 17:06:56 +0000 (17:06 +0000)]
tasks/kclient: add 'debug' option

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/cephfs: enable kclient for mds_* tasks
John Spray [Mon, 15 Sep 2014 22:41:34 +0000 (23:41 +0100)]
tasks/cephfs: enable kclient for mds_* tasks

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #268 from ceph/wip-kcephfs-inline
John Spray [Thu, 18 Dec 2014 11:28:39 +0000 (11:28 +0000)]
Merge pull request #268 from ceph/wip-kcephfs-inline

kcephfs: test inline data

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoceph_objectstore_tool: Changes for rename of binary ceph-objectstore-tool
David Zafman [Wed, 17 Dec 2014 01:04:09 +0000 (17:04 -0800)]
ceph_objectstore_tool: Changes for rename of binary ceph-objectstore-tool

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agokcephfs: test inline data
Sage Weil [Wed, 17 Dec 2014 23:20:20 +0000 (15:20 -0800)]
kcephfs: test inline data

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #257 from ceph/wip-fs-creation
John Spray [Wed, 17 Dec 2014 11:37:09 +0000 (11:37 +0000)]
Merge pull request #257 from ceph/wip-fs-creation

Fix PG counts and refactor FS creation during setup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #266 from ceph/wip-9892-2
Alfredo Deza [Tue, 16 Dec 2014 21:20:48 +0000 (16:20 -0500)]
Merge pull request #266 from ceph/wip-9892-2

radosgw-admin: wait before trimming usage

10 years agoradosgw-admin: wait before trimming usage
Yehuda Sadeh [Mon, 27 Oct 2014 16:49:51 +0000 (09:49 -0700)]
radosgw-admin: wait before trimming usage

Fixes: #9892
Need to wait through the usage interval before trimming usage, otherwise we might not
remove all pending usage info.

Backport: dumpling, firefly, giant

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit dd09ecbfab8a659f3faaf879a52849caab5e8e8e)

10 years agoMerge pull request #265 from ceph/wip-test-huge-tickets
Sage Weil [Sun, 14 Dec 2014 17:44:26 +0000 (09:44 -0800)]
Merge pull request #265 from ceph/wip-test-huge-tickets

krbd: add huge_tickets workunit

10 years agokrbd: add huge_tickets workunit
Ilya Dryomov [Sat, 13 Dec 2014 10:26:38 +0000 (13:26 +0300)]
krbd: add huge_tickets workunit

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
10 years agoMerge pull request #260 from ceph/wip-mds-readonly
Gregory Farnum [Thu, 11 Dec 2014 04:39:52 +0000 (20:39 -0800)]
Merge pull request #260 from ceph/wip-mds-readonly

tasks: add test case for readonly MDS

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #264 from ceph/wip-wn
Samuel Just [Wed, 10 Dec 2014 18:19:18 +0000 (10:19 -0800)]
Merge pull request #264 from ceph/wip-wn

tasks/watch_notify_same_primary: fix test for new watch/notify

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agotasks/watch_notify_same_primary: fix test for new watch/notify
Sage Weil [Wed, 10 Dec 2014 16:00:36 +0000 (08:00 -0800)]
tasks/watch_notify_same_primary: fix test for new watch/notify

It now checks for 'notify1' and 'notify2' strings, allowing it to work
on both old and new versions of rados watch command.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotasks: add test case for readonly MDS
Yan, Zheng [Fri, 5 Dec 2014 14:01:13 +0000 (22:01 +0800)]
tasks: add test case for readonly MDS

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Tue, 9 Dec 2014 20:38:54 +0000 (12:38 -0800)]
Merge remote-tracking branch 'gh/next'

Conflicts:
machine_types/vps.yaml

10 years agoMerge pull request #261 from ceph/wip-10223
Loic Dachary [Mon, 8 Dec 2014 20:27:37 +0000 (21:27 +0100)]
Merge pull request #261 from ceph/wip-10223

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

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoFixes #10269 http://tracker.ceph.com/issues/10269
Yuri Weinstein [Mon, 8 Dec 2014 19:12:04 +0000 (11:12 -0800)]
Fixes #10269 http://tracker.ceph.com/issues/10269

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoradosgw_admin: test full sync using existing tests
Josh Durgin [Sat, 6 Dec 2014 05:04:08 +0000 (21:04 -0800)]
radosgw_admin: test full sync using existing tests

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #259 from ceph/wip-10223
Yuri Weinstein [Thu, 4 Dec 2014 22:50:48 +0000 (14:50 -0800)]
Merge pull request #259 from ceph/wip-10223

Changed workloads in 2-workload to run in parallel

10 years agoChanged workloads in 2-workload to run in parallel
Yuri Weinstein [Thu, 4 Dec 2014 22:48:23 +0000 (14:48 -0800)]
Changed workloads in 2-workload to run in parallel

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoMerge pull request #212 from ceph/wip-9117-wusui
Zack Cerza [Wed, 3 Dec 2014 21:17:26 +0000 (14:17 -0700)]
Merge pull request #212 from ceph/wip-9117-wusui

Move output in task/s3readwrite

10 years agoUpdate vps.yaml
Yuri Weinstein [Tue, 2 Dec 2014 17:25:00 +0000 (09:25 -0800)]
Update vps.yaml

See http://tracker.ceph.com/issues/10178

10 years agoUpdate vps.yaml
Yuri Weinstein [Tue, 2 Dec 2014 17:24:11 +0000 (09:24 -0800)]
Update vps.yaml

10 years agotasks/ceph: move FS creation inside Filesystem
John Spray [Tue, 2 Dec 2014 13:28:08 +0000 (13:28 +0000)]
tasks/ceph: move FS creation inside Filesystem

Leave the legacy handling out in cephfs_setup, move
the filesystem creation stuff into Filesystem.  I
anticipate this being the right place for it if/when
we have tests that want to do 'fs rm' 'fs new' type
cycles within themselves.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotasks/ceph: conservative PG count in FS pools
John Spray [Tue, 2 Dec 2014 13:30:06 +0000 (13:30 +0000)]
tasks/ceph: conservative PG count in FS pools

This was tripping over the recent commit 42c85e80
in Ceph master, which tightens the limits on
acceptable PG counts per OSD, and was making
teuthology runs fail due to never going clean.

Rather than put in a new hardcoded count, infer
it from config.  Move some code around so that
the ceph task can get at a Filesystem object
to use in FS setup (this already has conf-getting
methods).

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #249 from ceph/wip-9557
John Spray [Tue, 2 Dec 2014 10:50:31 +0000 (10:50 +0000)]
Merge pull request #249 from ceph/wip-9557

tasks: add mds_auto_repair

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agotasks: add mds_auto_repair
Yan, Zheng [Thu, 20 Nov 2014 06:55:39 +0000 (14:55 +0800)]
tasks: add mds_auto_repair

New CephFS tests for MDS's auto repair functions. (So far the only
test case is verify/repair backtrace on fetch dirfrag)

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMove output in task/s3readwrite
Warren Usui [Tue, 21 Oct 2014 20:56:46 +0000 (13:56 -0700)]
Move output in task/s3readwrite

The s3readwrite.py task formerly wrote too much output while excuting.
It now saves the data on the local machine in either the archive
directory or in /tmp if no archive directory is specified.
The new file contains a client name and timestamp in its name.
Once all processing has completed, that file is saved locally.

Fixes: 9117
Signed-off-by: Warren Usui <warren.usui@inktank.com>
10 years agoUpdate vps.yaml
Yuri Weinstein [Wed, 26 Nov 2014 17:17:49 +0000 (09:17 -0800)]
Update vps.yaml

Fixed syntax

10 years agoUpdate vps.yaml
Yuri Weinstein [Wed, 26 Nov 2014 17:17:09 +0000 (09:17 -0800)]
Update vps.yaml

Fixed syntax

10 years agoFix fro #10178
Yuri Weinstein [Tue, 25 Nov 2014 16:35:58 +0000 (08:35 -0800)]
Fix fro #10178

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoFix for #10178
Yuri Weinstein [Tue, 25 Nov 2014 16:30:44 +0000 (08:30 -0800)]
Fix for #10178

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoMerge pull request #244 from dachary/wip-objectstore-tool
David Zafman [Thu, 20 Nov 2014 23:40:54 +0000 (15:40 -0800)]
Merge pull request #244 from dachary/wip-objectstore-tool

add erasure coded pool tests to objectstore tool

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: minor fixes
David Zafman [Thu, 20 Nov 2014 00:43:23 +0000 (16:43 -0800)]
ceph_objectstore_tool: minor fixes

Remove development comment
nullfd isn't used anymore
s/log.errors/log.error/

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: fix flake8 issues
David Zafman [Thu, 20 Nov 2014 17:39:50 +0000 (09:39 -0800)]
ceph_objectstore_tool: fix flake8 issues

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: add assert so that teuthology knows when this test fails
David Zafman [Thu, 20 Nov 2014 00:40:15 +0000 (16:40 -0800)]
ceph_objectstore_tool: add assert so that teuthology knows when this test fails

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: skip unused osds
Loic Dachary [Wed, 19 Nov 2014 18:03:57 +0000 (19:03 +0100)]
ceph_objectstore_tool: skip unused osds

When the number of objects is low, some OSDs may not be used at all.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: run tests on erasure coded pools
Loic Dachary [Wed, 19 Nov 2014 18:02:11 +0000 (19:02 +0100)]
ceph_objectstore_tool: run tests on erasure coded pools

Create an erasure coded pool and run tests on it. The list of PGs is
adapted to contain the shard id.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: only run get/set bytes for replicated pools
Loic Dachary [Wed, 19 Nov 2014 18:00:53 +0000 (19:00 +0100)]
ceph_objectstore_tool: only run get/set bytes for replicated pools

It needs to be adapted to run with erasure coded pools.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: use CephManager::get_pool_dump
Loic Dachary [Wed, 19 Nov 2014 22:17:03 +0000 (23:17 +0100)]
ceph_objectstore_tool: use CephManager::get_pool_dump

Instead of custom made get_pool_id function.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: add pgnum option
Loic Dachary [Wed, 19 Nov 2014 17:54:02 +0000 (18:54 +0100)]
ceph_objectstore_tool: add pgnum option

Instead of hardcoding 12 use a configuration option that defaults to
12. It is handy during development to lower the number to 4 and speed up
the test cycle.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: encapsulate into a function
Loic Dachary [Wed, 19 Nov 2014 12:44:38 +0000 (13:44 +0100)]
ceph_objectstore_tool: encapsulate into a function

Move code out of the task into function. Also remove the "REP" specifics
from helper functions that could also be used for erasure coded pools.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: add hinfo_key tests for erasure coded objects
Loic Dachary [Mon, 17 Nov 2014 16:33:56 +0000 (17:33 +0100)]
ceph_objectstore_tool: add hinfo_key tests for erasure coded objects

When an hinfo_key attribute is found, assume an erasure coded object and
verify set-attr/get-attr works as expected by removing its content and
restoring it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: keep all json object representation
Loic Dachary [Mon, 17 Nov 2014 16:31:13 +0000 (17:31 +0100)]
ceph_objectstore_tool: keep all json object representation

For erasure coded pools to be tested, the json object representation
must be preserved for all PG because they are all different. The
internal representation is changed from

   db[name]["pgid"] = pg
   db[name]["json"] = objjson

to a per pg map:

   db[name].setdefault("pg2json", {})[pg] = objjson

and the rest of the code is modified to adapt accordingly.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_objectstore_tool: tests only needs 1 machine
Loic Dachary [Fri, 14 Nov 2014 10:24:54 +0000 (11:24 +0100)]
ceph_objectstore_tool: tests only needs 1 machine

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: add pool type constants
Loic Dachary [Wed, 19 Nov 2014 17:14:52 +0000 (18:14 +0100)]
ceph_manager: add pool type constants

The osd dump command displays pool types using numerics instead of
symbolic names. Create constants in the CephManager class to use instead
of numbers.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: fix typo in get_pgid docstring
Loic Dachary [Wed, 19 Nov 2014 17:14:25 +0000 (18:14 +0100)]
ceph_manager: fix typo in get_pgid docstring

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: factorize with get_pool_dump
Loic Dachary [Wed, 19 Nov 2014 17:13:28 +0000 (18:13 +0100)]
ceph_manager: factorize with get_pool_dump

Replace code that duplicates get_osd_dump_json with a call to the
function.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: factorize with get_osd_dump_json
Loic Dachary [Wed, 19 Nov 2014 17:12:17 +0000 (18:12 +0100)]
ceph_manager: factorize with get_osd_dump_json

Replace code that duplicates get_osd_dump_json with a call to the
function.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #243 from ceph/wip-10057-next
Sage Weil [Thu, 20 Nov 2014 18:18:27 +0000 (10:18 -0800)]
Merge pull request #243 from ceph/wip-10057-next

ms die on skipped message = false for all krbd, kclient tasks

10 years agoMerge pull request #240 from ceph/wip-10057
Sage Weil [Thu, 20 Nov 2014 18:18:12 +0000 (10:18 -0800)]
Merge pull request #240 from ceph/wip-10057

ms die on skipped message = false for all krbd, kclient tasks

10 years agoceph_manager: add get_pool_dump to return the json pool dump
Loic Dachary [Wed, 19 Nov 2014 17:10:38 +0000 (18:10 +0100)]
ceph_manager: add get_pool_dump to return the json pool dump

Get the part of ceph osd dump specific to the pool given in argument.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoceph_manager: add get_osd_dump_json to get the full output
Loic Dachary [Wed, 19 Nov 2014 17:08:46 +0000 (18:08 +0100)]
ceph_manager: add get_osd_dump_json to get the full output

Converts ceph osd dump_json into a python object.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #197 from ceph/wip-calateuth-wusui
Zack Cerza [Wed, 19 Nov 2014 20:59:01 +0000 (13:59 -0700)]
Merge pull request #197 from ceph/wip-calateuth-wusui

Wip calateuth wusui

10 years agoFurther changes for calamari_setup.py
Warren Usui [Tue, 4 Nov 2014 22:07:07 +0000 (14:07 -0800)]
Further changes for calamari_setup.py

Made suggestions from code reviews.
Added no_epel option.
Merged Dan Mick's changes that add the ability to get
iceballs from http URL.
Remove duplicate assignment and added some log.debugs

Signed-off-by: Warren Usui <warren.usui@inktank.com>
10 years agoAdd calamari_setup
Warren Usui [Fri, 17 Oct 2014 02:20:42 +0000 (19:20 -0700)]
Add calamari_setup

Calamari_setup can be used to set up a calamari gui for manual testing,
or be run in a suite to test the calamari setup and calamari ceph
installation code.

Fixes: 9759
Signed-off-by: Warren Usui <warren.usui@inktank.com>