Willem Jan Withagen
9ff401e65b
/workunits/cephtool/test.sh: Be more liberal in testing health-output.
...
Sometimes I get output like:
HEALTH_ERR 2 pgs stuck unclean; Full ratio(s) out of order
Which goes away over time. So it is a transit issue
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-18 13:43:54 +02:00
David Zafman
3becdd3138
test: Test health check output for full ratios
...
Test out of order ratios summary and details
Test various full osd conditions summary and details
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-17 13:02:57 -07:00
David Zafman
a5731076ad
osd: Handle backfillfull_ratio just like nearfull and full
...
Add BACKFILLFULL as a local OSD cur_state
Notify monitor of this new fullness state
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-17 08:00:24 -07:00
David Zafman
e927cd2cf2
test: Fix intended test flow and restore nearfull-ratio
...
This is inconsequential but seems to have always been wrong since original
commit 6cafb0e3e0
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-17 07:58:30 -07:00
John Spray
0cb0c494d9
Merge pull request #13466 from jcsp/wip-cephfs-ecoverwrites
...
Add test for is_hacky_ecoverwrites in cephfs pool checks
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-15 19:44:00 +01:00
Kefu Chai
8442cbb521
Merge pull request #14468 from tchaikov/wip-show-me-fake-plugin
...
qa/workunits/ceph-helpers: display rejected string
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-13 22:24:03 +08:00
Mykola Golub
bf52a2a53b
qa/workunits/rbd: diff.sh failed removing nonexistent file
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-12 16:22:43 +02:00
Mykola Golub
9a80faa546
Merge pull request #14460 from dillaman/wip-qa-rbd-cli
...
qa/workunits: corrected issues with RBD cli test
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-12 15:44:25 +03:00
Kefu Chai
6cb4503a40
qa/workunits/ceph-helpers: do not error out if is_clean
...
it would be a race otherwise, because we cannot be sure that the cluster
pgs are not all clean or not when run_osd() returns, but we can be sure
that they are expected to active+clean after a while. that's what
wait_for_clean() does.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-12 17:32:44 +08:00
Kefu Chai
0196e154ed
qa/workunits/ceph-helpers: display rejected string
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-12 16:34:51 +08:00
Jason Dillaman
15e5b8e3dc
qa/workunits: corrected issues with RBD cli test
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-04-11 11:18:29 -04:00
Ricardo Dias
b844f58481
qa/workunits/rbd: cli testing of rbd trash commands
...
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-04-11 12:09:41 +01:00
Sage Weil
7e547a10b1
Merge pull request #13073 from chardan/jfw-wip-15475-admin_heap_command
...
osd: add "heap *" admin command
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-04-10 16:24:14 -05:00
Mykola Golub
712e7e9677
Merge pull request #14401 from dillaman/wip-rbd-import-fixes
...
rbd: correct issues with image importing
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-10 22:23:53 +03:00
Sage Weil
175e33bd5b
Merge pull request #14130 from liewegas/wip-json-slash
...
common/escape: do not escape / in json
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
2017-04-08 13:21:44 -05:00
Sage Weil
6db1193906
qa/workunits/cephtool/test.sh: handle non-escaped-/ json
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-08 14:19:00 -04:00
Jason Dillaman
a5d0d0ca08
qa/workunits: partial revert of commit 5b486d9
...
Testing for disk usage and diff extents for a sparsely written
imported RBD image cannot generically be handled across different
OSD object stores and RBD image features.
The only alternatives would include grepping the rbd CLI
debug log for specific invocations of aio_write or mocking
the rbd CLI for unit testing.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-04-07 21:06:37 -04:00
John Spray
f452256ff0
test: test cephfs pool ops with ec overwrites
...
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-04 11:32:53 +01:00
Ning Yao
5b486d9628
test: add test for rbd import,import-diff,copy with sparse-size option
...
Signed-off-by: Ning Yao <yaoning@unitedstack.com>
2017-04-04 03:18:52 +00:00
Jesse Williamson
fc4a4aa686
osd: heap profiling cleanups in response to review notes, build fixes.
...
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-04-03 01:12:29 -07:00
Jesse Williamson
23c0264e4d
osd: Add test for admin heap profiling command.
...
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-03-31 01:22:59 -07:00
Sage Weil
accfd6ce88
qa/workunits/cephtool/test.sh: test_auth_profiles must include mgr
...
For 'pg ...' commands
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:26 -04:00
Sage Weil
83b19dd1f1
qa/workunits/ceph-helpers: start and stop mgr daemons
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-29 11:39:25 -04:00
Willem Jan Withagen
0a91b76f2f
test: use gsed on FreeBSD for inplace editting
...
- FreeBSD sed(1) requires a extension on -i
so replace the usuage with GNU sed: gsed
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-03-19 18:02:26 +01:00
Sage Weil
03287f7d22
qa/workunits/cephtool/test.sh: change [near]full_ratio tests
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-06 16:42:34 -05:00
Sage Weil
ef6da79502
Merge pull request #13379 from jecluis/wip-mon-luminous-features
...
mon: enable luminous monmap feature on full quorum
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-06 10:46:08 -06:00
Kefu Chai
f903f2f3fd
Merge pull request #13228 from trociny/wip-qa-rbd_mirror-opts
...
qa/workunits/rbd: tweak rbd-mirror config to spead up testing
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-03-06 12:07:23 +08:00
Joao Eduardo Luis
23740119c6
mon: test 'mon feature' cli
...
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2017-03-02 17:32:35 +00:00
Joao Eduardo Luis
3cabcb7d51
qa/workunits/ceph-helpers: add wait_for_quorum()
...
Takes optional timeout and desired quorum size
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2017-03-02 17:32:34 +00:00
Dongsheng Yang
064b23df85
qa: rbd: rename the copy.sh to generic.sh
...
The copy.sh is not only testing the rbd copy, but also
others such as rbd ls, rbd remove. Then rename it to generic.sh
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:10:59 +08:00
Dongsheng Yang
4447340e8d
qa: add a test for rbd rm NOT_EXIST
...
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-23 11:10:59 +08:00
Dongsheng Yang
3d26d932af
librbd: remove header when id missing
...
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-21 19:17:26 +08:00
Vikhyat Umrao
90144aa64c
auth: 'ceph auth import -i' overwrites caps, if caps are not specified
...
in given keyring file, should alert user and should not allow this import.
Because in 'ceph auth list' we keep all the keyrings with caps and importing
'client.admin' user keyring without caps locks the cluster with error[1]
because admin keyring caps are missing in 'ceph auth'.
[1] Error connecting to cluster: PermissionDeniedError
Fixes: http://tracker.ceph.com/issues/18932
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2017-02-20 03:48:31 +05:30
Dongsheng Yang
4ee764f9e1
qa/workunit/rbd: import_export.sh: add image priorities exporting and importing test cases.
...
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-19 20:42:03 +08:00
Dongsheng Yang
55edd81658
qa/workunit/rbd: add test case for --import/export-format in import_export.sh
...
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-02-19 20:42:03 +08:00
Jason Dillaman
2c2b7abf93
Merge pull request #13482 from idryomov/wip-qa-krbd-data-pool
...
qa: add workunit to test krbd data-pool support
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-02-18 09:00:59 -05:00
Kefu Chai
8ae48637f7
qa/workunits/objectstore/test_fuse.sh: enable experimental features
...
so we can test bluestore
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 11:23:41 +08:00
Dan Mick
6582f42dfd
qa/workunits/objectstore/test_fuse.sh: use portable function decl
...
function f() is illegal in strict POSIX shells, like dash, which is
the default /bin/sh on Ubuntu
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-02-17 11:18:20 +08:00
Dan Mick
ce5d375e61
qa/workunits/objectstore/test_fuse.sh: allow failure
...
This script currently has a syntax error, but still exits with
success, which is hiding that failure. Expose it by allowing
the 'sudo' exit code to be the script's exit code.
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-02-17 11:18:20 +08:00
Ilya Dryomov
4db31d53d9
qa: add workunit to test krbd data-pool support
...
This is based on a script that I've been using for a while for basic
smoke testing. The matrix has exploded with the addition of data-pool
and now it's primarily a data-pool test fixture that takes minutes to
run, so turning it into a workunit.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-02-16 22:42:46 +01:00
Kefu Chai
f91fa5ae96
Merge pull request #13406 from vumrao/wip-vumrao-18486
...
osd/Pool: Disallow enabling 'hashpspool' option to a pool without '--yes-i-really-mean-it'
Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-16 12:48:20 +08:00
Jason Dillaman
63eae97afc
qa/workunits/rbd: resolve potential rbd-mirror race conditions
...
Fixes: http://tracker.ceph.com/issues/18935
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-02-14 15:58:31 -05:00
Vikhyat Umrao
3715362883
osd/Pool: Disallow enabling 'hashpspool' option to a pool without
...
'--yes-i-really-mean-it'
Fixes: http://tracker.ceph.com/issues/18468
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2017-02-14 04:09:32 +05:30
Jason Dillaman
e95fe0dfad
Merge pull request #13229 from trociny/wip-18335
...
rbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-02-11 09:29:23 -05:00
Kefu Chai
787f6ac699
qa/workunits/rados/test.sh: print test name when it fails
...
we have
2017-02-04T16:15:46.090 INFO:tasks.workunit.client.0.mira032.stdout:error in 22088
2017-02-04T16:15:46.092 INFO:tasks.workunit.client.0.mira032.stderr:bash: line 1: 22092 Alarm clock ceph_test_rados_api_aio 2>&1
2017-02-04T16:15:46.096 INFO:tasks.workunit.client.0.mira032.stderr: 22093 Done | tee ceph_test_rados_api_aio.log
2017-02-04T16:15:46.099 INFO:tasks.workunit.client.0.mira032.stderr: 22094 Done | sed "s/^/ api_aio: /"
2017-02-04T16:15:46.102 INFO:tasks.workunit.client.0.mira032.stderr:+
if a unittest in rados/test.sh fails in teuthology.log, but it would
be desirable to have the failed test name in the line of "error in
22088".
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-10 23:54:29 +08:00
Sage Weil
8226159e7c
mon: prevent sortbitwise flag from being unset
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-02-07 14:00:32 -05:00
Mykola Golub
596e5ea8a5
rbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly
...
Fixes: http://tracker.ceph.com/issues/18335
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-02-04 15:40:51 +01:00
Kefu Chai
389bd00da3
tests: ceph-helpers.sh reduce get_timeout_delays() verbosity
...
`set +o` prints out the full command line which is echoed if "xtrace" is
enabled. this increases the verbosity of get_timeout_delays().
in this change, we follow the way of kill_daemons() to kill the extra
output. see aefcf6d
.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-04 17:10:49 +08:00
Mykola Golub
58798be83a
qa/workunits/rbd: tweak rbd-mirror config to spead up testing
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-02-02 08:45:19 +01:00
Mykola Golub
93f7b5ef3f
Merge pull request #13158 from dillaman/wip-18594
...
qa: integrate OpenStack 'gate-tempest-dsvm-full-devstack-plugin-ceph'
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-02-02 08:27:49 +02:00