Sage Weil
ea5b054e65
qa/workunits/cephtool/test.sh: adjust watch test
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-01 22:22:24 -04:00
Sage Weil
99d96c3c09
Merge pull request #15294 from liewegas/wip-osd-tree
...
osd: 'osd tree in|out|up|down' to filter tree results
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-30 08:22:35 -05:00
Sage Weil
0027a3b9be
mon: add up|down|in|out filters to 'osd tree'
...
For example, 'ceph osd tree down' will show *just* down OSDs and their
ancestors. \o/
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-30 08:21:16 -04:00
Sage Weil
3118d9a154
osd: replace require_*_osds flags with require_osd_release field
...
- OSDMap encode and decode translate between the flags and int
representations.
- OSDMap::Incremental only does decode; we do not expect to ever encode
an incremental osdmap for an old osd that sets any of these flags.
- the 'osd set' command still lets you set the jewel and kraken flags,
but not luminous.
- OSDMap::apply_incremental handles the conversion of legacy require flags
to the new field if the jewel or kraken flags have to be set before
starting the osd upgrade.
- clear out the legacy flags when we make the luminous transition only;
until then we keep using the old flag in the encoded and decoded version
(although the require_osd_release field will be accurate in memory in all
cases).
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-29 21:33:17 -04:00
liuchang0812
b0af39713b
test/cephtool: convert FS_NAME to local variable
...
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-05-26 10:27:26 +08:00
liuchang0812
5680936878
tool/ceph: create "tell x help" command
...
Fixes: http://tracker.ceph.com/issues/19885
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-05-26 10:27:26 +08:00
Yuri Weinstein
25b8e0f63f
Merge pull request #15146 from tchaikov/wip-split-test-tiering
...
qa: split test_tiering into smaller pieces
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-25 13:43:53 -07:00
Sage Weil
b24fa931b2
mon/MgrMonitor: add 'mgr dump [epoch]' command
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-18 12:05:13 -04:00
Kefu Chai
a4a72a9f7b
qa: split test_tiering into smaller pieces
...
so we can debug them individually if anything goes wrong
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-18 13:58:05 +08:00
Sage Weil
f08de01c58
mon/OSDMonitor: 'osd set-require-min-compat-client ...'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-09 11:32:56 -05:00
Willem Jan Withagen
59238fb1db
qa/workunits/ceph-helpers.sh: Improve test_mon_pg() by starting healthy
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-04-20 15:47:01 -07:00
Willem Jan Withagen
e07f9ccb13
qa/workunits/ceph-helpers.sh: introduce (and use) wait_for_health
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-20 15:39:34 -07:00
David Zafman
1810a17e23
mon: Fix incorrect health output and test code to match
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-20 15:39:34 -07:00
David Zafman
86fea9d539
/workunits/cephtool/test.sh: Improve testing of health-output.
...
Instead of 9ff401e65b1a66a320953aeef8ab65b6f1fb6f10 use regex to handle:
HEALTH_ERR 2 pgs stuck unclean; Full ratio(s) out of order
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-20 15:39:33 -07:00
David Zafman
1474d0f233
test: Fix test_admin_heap_profiler() and enable it
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-20 15:39:33 -07:00
David Zafman
84f2182881
cephtool/test.sh: Get socket for whichever environment this test is running
...
Need sudo for qa suite runs
Fixes: http://tracker.ceph.com/issues/19698
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-04-20 15:39:09 -07:00
Josh Durgin
4315221179
osd,OSDMonitor: try to protect against ec overwrites with filestore
...
This isn't perfect, but it's better than nothing. Prevent enabling the
allow_ec_overwrites flag if any of a sample of pgs in the pool map to
osds using filestore. This mainly protects filestore-only clusters
from enabling it.
If a filestore osd is started later, warn in the cluster log when it
gets a pg with ec overwrites enabled.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2017-04-19 17:45:43 -07:00
Josh Durgin
a219319137
qa/tasks/rados: test sparse reads with ec overwrites
...
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2017-04-19 17:45:43 -07:00
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
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
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
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
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
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
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
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
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
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
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
John Spray
48adc77476
Merge pull request #12825 from stiopaa1/r11124_refuseToDoFsNew
...
mon/MDSMonitor.cc:refuse fs new on pools with obj
Reviewed-by: John Spray <john.spray@redhat.com>
2017-01-27 17:35:38 +01:00
Sage Weil
9080596335
Merge pull request #9348 from LiumxNL/fix-mksnap
...
mon/OSDMonitor: make snaps on tier pool should not be allowed
2017-01-25 06:35:36 -06:00
Michal Jarzabek
052c3d3f68
mon/MDSMonitor.cc:refuse fs new on pools with obj
...
Fixes: http://tracker.ceph.com/issues/11124
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2017-01-23 19:48:53 +00:00
Mingxin Liu
0de7ac79b5
test: cannot create pool snap on tier
...
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
2017-01-22 01:26:43 +08:00
Brad Hubbard
1e8e754007
config: Improve warning for unobserved value
...
When a variable is not being observed we currently mark it
"unchangable". This can be misleading so try something hopefully a
little more informative.
Fixes: http://tracker.ceph.com/issues/18424
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-01-10 15:35:19 +10:00
Sage Weil
bc197d75cc
Merge pull request #12451 from liewegas/wip-osd-on-applied
...
osd: never send rados ack (only commit)
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-12-29 12:43:01 -06:00
Sage Weil
f706819d6a
Merge pull request #12403 from liewegas/wip-mon-mgr-cleanups
...
mon: clean up some osdmon/pgmon interactions
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-12-29 09:38:59 -06:00
Sage Weil
265c2ff446
qa/workunits: remove crash_replay_interval tests
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-29 10:30:39 -05:00
Sage Weil
88ae4bb067
mon/OSDMonitor: ceph osd pool get/set crush_rule by name
...
This means users don't have to manually translate a rule
they just created to a ruleset ID in order to map a pool
to it.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-27 11:02:19 -05:00
Sage Weil
88d85ad726
mon/PGMap: remove CATEGORY column from 'df detail'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-27 11:02:19 -05:00
Sage Weil
904913b37f
mon/OSDMonitor: remove 'osd thrash' command
...
This is a dev hack to generate a bunch of bogus osdmaps. The maps are
all screwed up anyway (e.g., invalid addrs) and this is minimally useful.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-18 23:11:56 -05:00
Kefu Chai
36bf16d073
Merge pull request #11293 from liewegas/wip-mon-markout
...
mon: preserve osd weight when marking osd out, then in
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-11 22:00:39 +08:00
Kefu Chai
37f3897c55
Merge pull request #11702 from wjwithagen/wip-wjw-freebsd-cephtool-test
...
qa/workunits/cephtool/test.sh: FreeBSD has no distro.
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-10 10:18:23 +08:00
Sage Weil
73a2c11e94
mon/OSDMonitor: remember old weight on 'osd out'
...
If we have an OSD with a weight that's not 1.0 and mark it out,
we should restore the same weight when we mark it back in. We
already do this when an OSD is automatically marked out, just
not when it is explicitly marked out.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-07 11:28:43 -05:00
Willem Jan Withagen
e1993eab6d
qa/workunits/cephtool/test.sh: FreeBSD has no distro.
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-11-02 14:37:32 +01:00
David Zafman
b4c080b1b4
test.sh: Make check for flags more robust
...
Low space broke test, saw "flags nearfull,pauserd,pausewr...."
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-10-27 22:42:11 -07:00