Commit Graph

1145 Commits

Author SHA1 Message Date
Greg Farnum
12a55d6b1a rstats: enable by default on client; move test workunit to its own dir
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-02-18 12:44:22 -08:00
Gregory Farnum
957c77d570 Merge pull request #7323 from ukernel/wip-client-dirsize
client: add option to control how directory size is calculated

This lets you disable rstats if your workload is unhappy about directories
changing size (eg, tar of recently-moved/created/untarred files).

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-02-18 12:47:05 -08:00
Sage Weil
adfc653ea0 Merge pull request #7218 from dachary/wip-13942-ceph-disk
ceph-disk: support bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-05 09:15:26 -05:00
Sage Weil
30ff251367 Merge pull request #7447 from liewegas/wip-parallel-rados-test
test: run rados api tests in parallel

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-04 08:38:09 -05:00
Loic Dachary
36656c8dc9 tests: ceph-disk tests pid files must exist
http://tracker.ceph.com/issues/13422 made it so ceph-osd won't start
unless the pidfile can be created successfully. The default location
being the current directory, ceph-osd must explicitly be told to write
in a directory where it has write permissions.

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 17:01:46 +07:00
Loic Dachary
c50f3b9f48 tests: ceph-disk qa workunit for bluestore
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 17:01:46 +07:00
Loic Dachary
65bc36e610 ceph-disk: bluestore prepare
Only support the block file for now. It is handled the same as the
journal, only with a different name (block) and it's own set of ptypes
depending on multipath or dmcrypt.

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 17:01:46 +07:00
Loic Dachary
ec4a28885a tests: generic ceph-disk qa check_osd_status
The helper function no longer has journal hardcoded.

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 14:38:08 +07:00
Loic Dachary
7f6295d21f ceph-disk: make all must setup.py install
Refactor the test / virtualenv setup in the same way it was done for
ceph-detect-init.

All shell tests use ceph-helpers.sh which is modified to add ceph-disk /
ceph-detect-init virtualenv/bin to the PATH to ensure the source version
is used even if ceph is installed.

See "ceph-detect-init: make all must setup.py install"

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 14:38:08 +07:00
Loic Dachary
c7fbe2124b tests: instructions to collect ceph-disk coverage
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 14:38:08 +07:00
Loic Dachary
5151063fda ceph-disk: refactor into a proper python module
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-04 14:36:37 +07:00
Sage Weil
2aeadc9acf Merge remote-tracking branch 'gh/jewel' 2016-02-03 09:46:47 -05:00
Sage Weil
93413b5f4f qa/workunits/rados/test.sh: bash
Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-02 17:45:55 -05:00
Sage Weil
15ea140b3b qa/workunits/objectstore/test_fuse.sh: fix root check
$EUID not defined everywhere.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 15:49:25 -05:00
Sage Weil
0819509c32 qa/workunits/rados/test.sh: run tests in parallel by default
Faster!  8 min vs the original 21 min on my vstart cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-02-01 11:26:00 -05:00
Sage Weil
50821fa296 Merge pull request #7248 from ukernel/jewel-14379
mon/MDSMonitor: add confirmation to "ceph mds rmfailed"

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2016-01-29 08:27:37 -05:00
Sage Weil
2d602dd84b qa/workunits/objectstore/test_fuse.sh: no bashism
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-29 08:06:38 -05:00
Greg Farnum
e3e1e3b61c Merge remote-tracking branch 'origin/jewel' 2016-01-28 21:28:37 -08:00
Gregory Farnum
5aef0189b6 Merge pull request #7262 from ukernel/jewel-14380
Be more careful about the "mds setmap" command to prevent breakage.

Reviewed-by: John Spray <john.spray@redhat.com>
2016-01-28 21:26:06 -08:00
Sage Weil
c3954e69bb qa/workunits/objectstore/test_fuse.sh: simple workunit test
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Yan, Zheng
8a6f1f7fba qa/workunits/fs/misc: Add a workunit for tar kernel Documents
the test fails if some files were changed while being archived

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-27 23:45:00 +08:00
Vikhyat Umrao
c00945eb8b cleanup: remove obsolete option "filestore_xattr_use_omap"
This patch does cleanup for option "filestore_xattr_use_omap",
as this option was removed in #7408.

Fixes: #14356
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2016-01-22 18:01:09 +05:30
Yan, Zheng
8af0758638 qa/workunits/cephtool/test.sh: update test for "ceph mds setmap"
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-20 11:47:24 +08:00
Yan, Zheng
02d15bb434 mon/MDSMonitor: Add confirmation to "ceph mds rmfailed"
Fixes: #14379
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-20 10:47:13 +08:00
Josh Durgin
65a3fde9ab Merge remote-tracking branch 'origin/jewel' 2016-01-19 13:44:31 -08:00
Gregory Farnum
ea3fd2e58d Merge pull request #6496 from ceph/wip-fs-snaptests
qa/workunits/snaps: move snap tests into fs sub-directory

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-19 11:38:15 -08:00
Jason Dillaman
bb4d7a721c qa: disable rbd/qemu-iotests test case 055 on RHEL/CentOS
Fixes: #14385
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-18 15:58:43 -05:00
Ved-vampir
300c2f773b Compressor: compressor plugins unit tests
Signed-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
2016-01-14 19:04:19 -05:00
Sage Weil
b8bc25b0f0 Merge pull request #7087 from H3C/wip-yrf-cephdf
mon: add RAW USED column to ceph df detail

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-14 19:00:16 -05:00
Greg Farnum
ee757a966a Merge branch 'greg-fs-testing' 2016-01-14 10:27:17 -08:00
Greg Farnum
7d52372ae7 fsx: checkout old version until it compiles properly on miras
I sent a patch to xfstests upstream at
http://article.gmane.org/gmane.comp.file-systems.fstests/1665, but
until that's fixed we need a version that works in our test lab.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-01-14 10:26:43 -08:00
Greg Farnum
11cd84ca71 Merge branch 'wip-13569' of git://github.com/ukernel/ceph into greg-fs-testing
https://github.com/ceph/ceph/pull/6463

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-14 10:26:21 -08:00
Mykola Golub
cf5649047f tests: improve rbd-nbd tests
- cleanup on a test failure;
- minimize interference with other processes (tests) that are
  run concurrently;
- use xmlstarlet when parsing rbd output;
- add exit status test.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-01-13 13:07:42 +02:00
Sage Weil
d93d92a7f4 Merge pull request #7085 from tchaikov/wip-11692
config: complains when a setting is not tracked

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-12 21:26:24 -05:00
Ruifeng Yang
2b597ae6d4 mon: add a column 'RAW USED' for ceph df detail
Signed-off-by: Ruifeng Yang <yangruifeng.09209@h3c.com>
2016-01-12 22:08:47 +08:00
Loic Dachary
756b8e6015 ceph-disk: deactivate must unmap dmcrypted journal
If the journal is not unmapped, ceph-disk destroy will fail to zap the
corresponding devices because it is still held by devicemapper.

A consequence of this modification is that

   ceph-disk activate --dmcrypt --reactivate

no longer works from the command line, because it does not map the
dmcrypted journal. The --reactivate option is added to activate-journal
which will map both the journal and the data devices, if necessary.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-01-06 11:13:16 +01:00
Loic Dachary
798ae1a944 tests: update ceph-disk workunit debug reminders
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-01-06 11:13:16 +01:00
Josh Durgin
0bdc26ea89 Merge remote-tracking branch 'origin/jewel' 2016-01-05 11:42:09 -08:00
Jason Dillaman
089673a59c qa/workunits/rbd: import_export should use clean temp space
Fixes: #14237
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-05 12:50:23 -05:00
Josh Durgin
089e1a2baf Merge remote-tracking branch 'origin/jewel' 2016-01-04 17:59:52 -08:00
Jason Dillaman
70a1392920 qa/workunits/rbd: rbd-nbd test should use sudo for map/unmap ops
Fixes: #14221
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-04 12:03:45 -05:00
Sage Weil
45024464fe qa/workunits/rados/test_rados_tool.sh: fix path
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-03 13:05:22 -05:00
Sage Weil
1097bd256e qa/workunits/rados/test_rados_tool: adapt to new buffer hexdump
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-02 21:14:35 -05:00
Sage Weil
37c6390a77 qa/workunits/cephtool/test.sh: leave sortbitwise set
New backends don't work if it's off.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-01 13:09:17 -05:00
Kefu Chai
6a59aae076 config: complains when a setting is not tracked
* not all config items are tracked, so it does not take any effect after
  we sucessfully changed them using "ceph tell <daemon> injectargs  --foo-bar 15',
  as shown by the command output:
    $daemon: foo_bar = '15'
  if foo-bar happens to be the one not tracked by any components in <daemon>.
  in this fix, the message of
    $daemon: foo_bar = '15' (unchangeable)
  is returned instead. nevertheless, the config is still updated. as
  "ceph daemon <daemon> config show | grep foo_bar" shows:
    "foo_bar": "15"
  this helps user to understand that the setting is not dynamically
  changeable.
* update the test accordingly

Fixes: #11692
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-12-31 00:35:58 +08:00
Jason Dillaman
8e095dedfa qa/workunits: merge_diff shouldn't attempt to use striping v2
Fixes: #14165
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-23 12:54:47 -05:00
Josh Durgin
09a3f69e6f Merge remote-tracking branch 'origin/jewel' 2015-12-21 16:59:51 -08:00
Loic Dachary
fd7fe8c497 tests: ceph-disk workunit increase verbosity
So that reading the teuthology log is enough in most cases to figure out
the cause of the error.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-21 11:31:25 +01:00
Sage Weil
3aa9eb3518 Merge pull request #6900 from liewegas/wip-13988
mon: fix reuse of osd ids (clear osd info on osd deletion)

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-18 15:07:49 -05:00
Jason Dillaman
69bcac513a qa/workunits/rbd: use --object-size instead of --order
Fixes: #14106
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 03:03:20 -05:00