Commit Graph

1123 Commits

Author SHA1 Message Date
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
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
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
Kefu Chai
9d874f1d34 Merge pull request #6945 from jcsp/wip-blacklist-clear
mon: add `osd blacklist clear`

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2015-12-17 22:17:26 +08:00
Sage Weil
4060d21ede Merge pull request #6202 from cxwshawn/wip-ful-fix
rados: implement rm --force option to force remove when full

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-12-17 08:58:53 -05:00
John Spray
42389742c2 mon: add osd blacklist clear
This is just like 'blacklist rm' except it removes
everything.  Useful if you've got a whole bunch of
things in your blacklist and you don't want to wait
for N "blacklist rm" commands to run.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-16 12:02:36 +00:00
wuxiangwei
4bf6fbf21a rbd: specify pool name for rbd admin socket commands
Add the pool name for a given rbd imgae when executing rbd admin socket
commands in case there are more than one images with the same name in
different pools.

Signed-off-by: Xiangwei Wu wuxiangwei@h3c.com
2015-12-15 08:28:41 -05:00
Jason Dillaman
00cfe4efac tests: new integration test for validating new RBD pools
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 17:49:55 -05:00
Xiaowei Chen
db525ef8c9 rados: implement rm --force option to force remove when full.
librados extend remove interface, add flags parameter, and use
            this extended interface to implement force remove when cluster full.
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
2015-12-11 03:26:45 -05:00
Loic Dachary
c6cdc33432 tests: verify it is possible to reuse an OSD id
When an OSD id is removed via ceph osd rm, it will be reused by the next
ceph osd create command. Verify that and OSD reusing such an id
successfully comes up.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-10 20:46:23 +01:00
Loic Dachary
5876829dc7 tests: kill_daemons uses TERM instead of KILL
When called to teardown a test, kill_daemon should use KILL to ensure
all leftovers are removed as quickly as possible to leave a clean state
for the next test. However, when kill_daemons is called to shutdown a
given daemon from within a test, it should use TERM by default so the
daemon has time to notify the MON that it goes down. For instance, if
KILLing an OSD, the mon will still report it as being up although the
calling function probably expects that it will be marked out.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-10 17:34:32 +01:00
Loic Dachary
99bcc7cf16 tests: --osd-scrub-load-threshold=2000 for more consistency
In a test environment, consistency is more important than
performances. Effectively disable the test that would postpone a scrub
depending on the load average. It is assumed that a machine with a load
average higher than 2000 won't be useable anyway.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-09 11:48:45 +01:00
Josh Durgin
caedebded5 Merge pull request #6837 from dreamhost/wip-test-cephtool-filenames
qa/workunits/cephtool/test.sh: false positive fail on /tmp/obj1.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-07 15:52:47 -08:00
Robin H. Johnson
cd0c13bbf0 qa/workunits/cephtool/test.sh: false positive fail on /tmp/obj1.
If /tmp/obj1 happened to exist already, and was not writable by the
testing user, then this test failed!

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-12-07 15:27:12 -08:00
Douglas Fuller
9af8d6f03b qa/krbd: Expunge generic/247
xfstests generic/247 exercises XFS DIO and AIO to detect races. Some
races apparently exist in the XFS code as this is a known issue within
XFS. Expunge this test because it is not specifically relevant to krbd
and not a specific krbd issue.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2015-12-07 09:24:33 -08:00
Josh Durgin
9e07b8afdf Merge pull request #6665 from trociny/wip-librbd-journal
rbd: journal: configuration via conf, cli, api and some fixes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-04 09:20:03 -08:00
Sage Weil
c3e3ee05d8 Merge pull request #5953 from guangyy/wip-13121
osd: support pool level recovery_priority and recovery_op_priority

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-12-04 10:09:13 -05:00
Mykola Golub
5622d3ff7d rbd: alow to specify options for created journal
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
e8a584ffc1 rbd: add new journal rbd commands
Also, extend 'rbd info' to output journal spec if journaling is enabled.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Loic Dachary
ed6792ba06 Merge pull request #6748 from liewegas/wip-fix-cephtool
qa/workunits/cephtool/test.sh: no ./

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-03 15:23:44 +01:00
Guang Yang
ba346bf432 qa: add a test for the recovery_priority/recovery_op_priority pool settings.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2015-12-03 02:16:52 +00:00
Jason Dillaman
1786fa8aa9 Merge pull request #6657 from kylinstorage/wip-rbd-nbd
rbd-nbd: network block device (NBD) support for RBD 

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-12-02 10:38:54 -05:00
Sage Weil
35403da171 qa/workunits/cephtool/test.sh: no ./
Introduced by 1ace4d03b2

Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-01 08:14:53 -05:00
Xinze Chi
ce2d3c73ba test: add pg_scrub for ceph-helpers.sh
Signed-off-by: Xinze Chi <xinze@xsky.com>
2015-12-01 11:10:10 +08:00
Loic Dachary
2af7c9f719 Merge pull request #6724 from dachary/wip-13592-test-auto-repair
tests: fix race condition testing auto scrub

Reviewed-by: Xinze Chi <xinze@xsky.com>
2015-11-29 17:01:14 +01:00