Commit Graph

399 Commits

Author SHA1 Message Date
Sage Weil
e2602c549f mon: make 'mon {add,remove}_data_pool ...' take pool name or id
Take either a pool name or an id.  Fix up the tests accordingly.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-14 16:46:58 -07:00
Josh Durgin
10335883a9 qa: fix rbd cli tests checking size
b43bc1a0b0 changed the kilo prefix
from K to k in a few places.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-03 15:16:59 -07:00
Sage Weil
84c028674a rados: add 'tmap-to-omap' command
Explicitly convert tmap object data to omap keys.  Removes the old tmap
content at the same time.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-01 17:21:21 -07:00
Sage Weil
493427ddd6 Merge remote-tracking branch 'gh/next'
Conflicts:
	src/pybind/ceph_argparse.py
2013-09-26 18:24:40 -07:00
Dan Mick
1ba7e47c6a ceph_argparse.py, cephtool/test.sh: fix blacklist with no nonce
It's legal to give a CephEntityAddr to osd blacklist with no nonce,
so allow it in the valid() method; also add validation of any nonce
given that it's a long >= 0.

Also fix comment on CephEntityAddr type description in MonCommands.h,
and add tests for invalid nonces (while fixing the existing tests to remove
the () around expect_false args).

Fixes: #6425
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-09-26 18:06:30 -07:00
Gregory Farnum
881309db3f Merge pull request #606 from ceph/wip-6332
Reviewed-by: Sage Weil <sage@inktank.com>
2013-09-26 10:30:44 -07:00
Sage Weil
89482cac83 Merge remote-tracking branch 'gh/next' 2013-09-26 10:21:54 -07:00
Greg Farnum
ca97fae81f qa: update snaps workunits for allow_new_snaps flag
Test that it works in snaptest-0.sh, and set the flag in
all the snap workunits so they continue to function.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
2013-09-26 18:27:52 +02:00
Sage Weil
c8cae87e9e qa/workunits/mon/crush_ops.sh: fix test
Fix root.

Fixes: #6392
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-25 10:10:21 -07:00
Sage Weil
952b39d4c4 Merge remote-tracking branch 'gh/next'
Conflicts:
	src/osd/ReplicatedPG.cc
2013-09-24 21:46:47 -07:00
Sage Weil
3de32562b5 mon/OSDMonitor: fix 'ceph osd crush reweight ...'
The adjust method returns a count of adjusted items.

Add a test.

Fixes: #6382
Backport: dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-09-24 15:26:03 -07:00
Sage Weil
10363daddb Merge remote-tracking branch 'gh/next' 2013-09-23 09:50:10 -07:00
Joao Eduardo Luis
b1eeaddd5f qa: workunits: cephtool: check if 'heap' commands are parseable
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
2013-09-20 17:51:50 +01:00
Loic Dachary
bcc1680ad2 mon: fix inverted test in osd pool create
When using the properties key=value only, the test was inverted
and an attempt to obtain a substring at index string::npos throws
an exception.

Add variations of osd pool create to qa/workunits/mon/pool_ops.sh
to assert the problem has been fixed and all code paths are used.

http://tracker.ceph.com/issues/6357 fixes #6357

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-09-20 00:33:13 +02:00
Gary Lowell
33671f3554 Merge branch 'next' 2013-09-18 09:11:02 +00:00
Gregory Farnum
383d8a199e Merge pull request #580 from ceph/wip-6033-redirects
Reviewed-by: Sage Weil <sage@inktank.com>
2013-09-10 15:49:50 -07:00
Greg Farnum
ab2506dbfa test: update cache test since OSDs support redirects
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-09-10 15:33:50 -07:00
Joao Eduardo Luis
3bc618b7b4 qa: workunits: mon: crush_ops: test 'ceph osd crush move'
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-09-10 00:29:19 +01:00
Sage Weil
6a4f4f0d7a Merge remote-tracking branch 'gh/wip-6047'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-09-04 10:43:04 -07:00
Greg Farnum
13aac48f25 workunits: add a test for caching redirects
This may need to change since it exploits some of the loose
consistency we currently have with caching pools, but for now
it checks that the Objecter does what we want.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-30 14:06:33 -07:00
Greg Farnum
3516996bb3 mon/OSDMonitor: 'osd tier {set,remove}-overlay <pool> [tierpool]'
Also prevent 'osd tier remove ...' if the tierpool is the current overlay.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-30 14:06:33 -07:00
Greg Farnum
efb7ab2ae4 qa/workunits/cephtool/test.sh: test osd tier CLI
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-30 14:06:33 -07:00
Joao Eduardo Luis
b2b0f202ea qa: workunits: mon: test snaps ops using rbd.
Regression test for #6047

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
2013-08-29 00:48:34 +01:00
Sandon Van Ness
40f43a028e QA: Compile fsstress if missing on machine.
Some distro's have a lack of ltp-kernel packages and all we need is
fstress. This just modified the shell script to download/compile
fstress from source and copy it to the right location if it doesn't
currently exist where it is expected. It is a very small/quick
compile and currently only SLES and debian do not have it already.

Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-08-22 19:52:16 -07:00
Sandon Van Ness
4b97fcb5c1 QA: Compile fsstress if missing on machine.
Some distro's have a lack of ltp-kernel packages and all we need is
fstress. This just modified the shell script to download/compile
fstress from source and copy it to the right location if it doesn't
currently exist where it is expected. It is a very small/quick
compile and currently only SLES and debian do not have it already.

Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-08-22 19:44:40 -07:00
Sage Weil
895d531cc9 cls/hello: hello, world rados class
Simple example of a rados class doing read, write, and read/modify/write
methods.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-15 17:21:29 -07:00
Li Wang
24ec3201ed Ceph-qa: change the fsx.sh to support hole punching test
This patch change the fsx.sh to pull better fsx.c from xfstests site
to support hole punching test.

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Signed-off-by: Li Wang <liwang@ubuntukylin.com>
2013-08-14 22:50:56 -07:00
Sage Weil
90ccd2676a qa/workunits/fs/multiclient_sync_read_eof.py
Simple test to verify clients behave at EOF.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-13 21:28:35 -07:00
Sage Weil
d5aa3a90a5 Merge remote-tracking branch 'gh/wip-5648-c'
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-09 09:41:41 -07:00
Sage Weil
0c1fd629fa qa/workunits/cephtool/test.sh: test set/unset of all osd flags
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-07 08:35:48 -07:00
Joao Eduardo Luis
258135b9ad qa: workunits: mon: workunit to stress the monitor's caps
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-08-06 14:01:48 -07:00
Sage Weil
db27c3f5a3 qa/workunits/cephtool/test.sh: add tests for 'pg dump ...'
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-05 13:06:42 -07:00
Dan Mick
6dd4ff8371 cephtool/test.sh, rest/test.py: add tell command tests
Also add HTTP method to test.py output

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-05 11:21:19 -07:00
Dan Mick
55095d56ea cephtool/test.sh: add a few tests for invalid command args
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-08-05 11:20:41 -07:00
Sage Weil
e5d9ac64df qa/workunits/cephtool/test_daemon.sh: we should error on bad command
See #5872.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-04 15:24:59 -07:00
Dan Mick
bbd558ada5 Merge branch 'wip-5815' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-31 23:01:03 -07:00
David Zafman
317d698235 Merge branch 'wip-5784' into next
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-07-31 21:25:20 -07:00
Dan Mick
c9e8ff2bf1 rest/test.py: retry mds setmap in case epoch has changed
Loop 10 times retrying mds dump/getmap/setmap.

Fixes: #5815
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Dan Mick
dc1d95d713 rest/test.py: expect_nofail() to allow examination of reason
Also remove unused MyException

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Sage Weil
b4ed4e2ebd qa/workunits/cephtool/test_daemon.sh: sudo
Fixes: #5814
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-31 13:46:12 -07:00
David Zafman
c48644d811 qa: Add workunit that hangs for manual thrasher testing
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-07-31 12:04:23 -07:00
Sage Weil
e70e08c060 cephtool/test.sh: add tests for mon daemon command
[Also move into a separatate test script; validate result -sage]

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-30 23:04:41 -07:00
Dan Mick
47d0937ccb rest/test.py: earlier versions of requests.py don't quote ' ' in params
requests 0.12.1 handles queryparams in the URL with embedded
spaces; requests 0.8.2 does not.  Avoid the issue by quoting the
URL into expect().

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-25 21:41:32 -07:00
Dan Mick
fe2019cc97 rest/test.py: cope with older requests.py versions
Older requests.py didn't have r.json (or r.json()); avoid by
decoding the json myself

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-24 16:09:13 -07:00
Dan Mick
1579c344fe rest/test.py: osd lspools should be a 'GET'
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-24 11:56:20 -07:00
Dan Mick
e4d0eeefa2 mon: "mds stat" must open/close section around dump_info
dump_info() got a new field outside the mdsmap section; it's ok for
the overall "report", but not for "mds stat".  Add an enclosing section
in "mds stat".  Fix test to expect new level.

Fixes: #5718
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-23 14:03:52 -07:00
Sage Weil
e0709ef5ed Merge remote-tracking branch 'gh/next' into next 2013-07-23 11:23:24 -07:00
Sage Weil
7b3b989311 qa/workunits/suites/fsync-tester.sh: lsof at end
Trying to track down occasional EBUSY on umount at end of test.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-23 08:43:01 -07:00
Sage Weil
3f31540448 qa/workunits/rest/test: cluster_down/up are now idempotent
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-22 21:04:01 -07:00
Sage Weil
3dec530de6 qa/workunits/mon/caps.sh: clean up users; rename
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-19 22:32:23 -07:00