Kefu Chai
fc43ae1724
qa/standalone: s/delete_erasure_pool/delete_erasure_coded_pool/
...
it's a regression introduced by ac56a202
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-03-01 19:09:31 +08:00
Kefu Chai
ac56a202fd
qa/standalone: extract delete_pool()
...
some tests, like osd-backfill-stats.sh are using delete_pool(), but
they don't have this function defined. and this function is defined
in standalone tests separately, so would be simpler if we can
consolidate them in ceph-helper.sh.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-28 15:40:28 +08:00
Josh Durgin
d1ca620698
mon/OSDMonitor: fix min_size default for replicated pools
...
This was accidentally changed to 0 by using the config value
directly in 582e567c93
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2018-02-23 00:39:13 -05:00
David Zafman
33e747724a
osd: Add new snapset_inconsistency error check
...
Includes new test case
Caused by: 5f58301a13
This changed attr consistency checking to exclude system keys,
which required snapset to be handled just like object info.
Fixes: http://tracker.ceph.com/issues/22996
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-02-15 09:03:49 -08:00
Patrick Donnelly
46c25abd1c
test/encoding: refactor to avoid escaping shell magic
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-07 18:03:05 -08:00
Kefu Chai
4233cc02d4
Merge pull request #19651 from yanghonggang/master
...
mon/OSDMonitor.cc: fix expected_num_objects interpret error
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-26 14:34:11 +08:00
Yang Honggang
c24f2baec9
mon/OSDMonitor.cc: fix expected_num_objects interpret error
...
Fixes: http://tracker.ceph.com/issues/22530
Signed-off-by: Yang Honggang <joseph.yang@xtaotech.com>
2018-01-21 21:00:17 -05:00
David Zafman
7ccb7b7023
Merge pull request #19850 from dzafman/wip-calc-stats
...
osd/PG: re-write of _update_calc_stats and improve pg degraded state
Fixes: http://tracker.ceph.com/issues/20059
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-01-16 11:58:49 -08:00
Kefu Chai
7aba57b9b4
Merge pull request #18191 from hjwsm1989/osd-mark-down
...
qa/standalone/osd/osd-mark-down: create pool to get updated osdmap faster
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-15 11:09:02 +08:00
David Zafman
88ce0c1a91
test: Verify stat calculations during backfill
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-14 18:17:23 -08:00
David Zafman
f5af1af6d3
test: Verify stat calculations during recovery
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-14 18:17:23 -08:00
David Zafman
aeba36a660
ceph-helpers.sh: Add flush_pg_stats() to wait_for_clean() to make it reliable
...
osd-scrub-repair.sh: Fixes for omap keys landing on different OSDs due to flush
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-14 18:17:23 -08:00
Igor Fedotov
1653bcca3e
qa/standalone/scrub/osd-scrub-repair.sh: remove extents flag from object_info_t
...
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-01-08 20:10:16 +03:00
Kefu Chai
e7097593a7
qa/standalone: remove osd-map-max-advance related tests
...
this setting was removed in 8967b73
Fixes: http://tracker.ceph.com/issues/22596
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-01-06 19:40:15 +08:00
Sage Weil
f33ab7e03a
Merge remote-tracking branch 'gh/mimic-dev1'
2017-12-20 15:08:30 -06:00
Sage Weil
06b7707cee
Merge pull request #19456 from liewegas/wip-22373
...
qa/standalone/ceph-helpers: pass --verbose to ceph-disk
2017-12-19 11:55:07 -06:00
Kefu Chai
2ceff9eb4e
qa/stanalone: pass options using --<option-name>=<value>
...
not "--<option-name> <value>', otherwise `ceph-authtool` would error
out:
$ CEPH_ARGS='--osd-map-max-advance 1000' bin/ceph-authtool --gen-print-key
bin/ceph-authtool: unexpected '1000'
usage: ceph-authtool keyringfile [OPTIONS]...
....
but using the syntax of `--<option-name>=<value>', it works:
$ CEPH_ARGS='--osd-map-max-advance=1000' bin/ceph-authtool --gen-print-key
AQBAhTNamf5+ABAASkAp/6IGq7LkUTEOMp/fgw==
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-15 16:19:15 +08:00
Kefu Chai
4e621762ed
qa/standalone/ceph-helpers.sh: silence ceph-disk DEPRECATION_WARNING
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-12-13 19:42:50 +08:00
Sage Weil
86dc162686
qa/standalone/ceph-helpers: pass --verbose to ceph-disk
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-12-12 12:56:45 -06:00
Sage Weil
4389b55435
Merge remote-tracking branch 'gh/mimic-dev1'
2017-12-11 22:27:35 -06:00
David Zafman
c4602c9ac8
test: ceph_objectstore_tool.py: Perform dump-import
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-08 18:50:04 -08:00
David Zafman
a8b8d541dd
ceph-objectstore-tool: Add option "dump-import" to examine an export
...
Fixes: http://tracker.ceph.com/issues/22086
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-12-06 17:30:47 -08:00
Sage Weil
c6529ad93e
qa/standalone/ceph-helpers.sh: fix full ratio ordering
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-11-29 16:07:12 -06:00
David Zafman
f94322066f
Merge pull request #18449 from dzafman/wip-zafman-misc
...
mark_unfound_lost fix and some other minor changes
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-10-27 10:21:25 -07:00
xie xingguo
f82228c4af
osd/osd_type.cc: dump extents map object_info_t
...
which is good for bug hunting and diagnosing.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-10-24 11:46:23 +08:00
David Zafman
f918b1fac1
test: Remove bogus check in ceph_objectstore_tool.py
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-18 18:07:23 -07:00
David Zafman
69b5fc54fe
test: Cleanup test-erasure-eio.sh code
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-18 11:12:14 -07:00
David Zafman
c2572bee3c
test: Add replicated recovery/backfill test
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-18 11:12:14 -07:00
David Zafman
bb2bcb95f5
osd: Add new UnfoundBackfill and UnfoundRecovery pg transitions
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-18 11:01:39 -07:00
David Zafman
b9de5eec26
test: Test case that reproduces tracker 18162
...
recover_replicas: object added to missing set for backfill, but is not in recovering, error!
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-18 10:58:23 -07:00
huangjun
ee618a38a9
qa/standalone/osd/osd-mark-down: create pool to get updated osdmap faster
...
Mon send osdmap to random osds after we mark osd down, the down osd
may use more than $sleep time to get updated osdmap if there is no
osd ping between osds. So create pool after setup cluster.
Signed-off-by: huangjun <huangjun@xsky.com>
2017-10-09 22:19:29 +08:00
Sage Weil
96ddf5c3a0
Merge pull request #17708 from liewegas/wip-pg
...
osd: initial minimal efforts to clean up PG interface
2017-10-08 21:47:49 -05:00
Sage Weil
b6a5c09dba
ceph-objectstore-tool: remove rm-past-intervals op
...
The OSD doesn't rebuild this on demand anymore.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-06 13:08:18 -05:00
Sage Weil
886606bfd7
qa/standalone/scrub/osd-scrub-repair.sh: drop omap_digest flag
...
This is no longer set if we are backed by bluestore, which we are by
default. See be078c8b7b
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-10-06 19:25:40 +08:00
Sage Weil
eaa350be95
Merge pull request #18094 from xiexingguo/wip-tracker-21618
...
qa/standalone/scrub/osd-scrub-repair.sh: add extents flag into object_info_t
Reviewed-by: Sage Weil <sage@redhat.com>
2017-10-05 11:14:01 -05:00
Sage Weil
15b63d6795
qa/standalone/scrub/osd-scrub-repair: no -y to diff
...
With -y you can't see the entire line when it is long, which is
needed to identify the diff failure in
http://tracker.ceph.com/issues/21618
Instead, let the interactive user specify the option if they want it.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-03 14:35:35 -05:00
xie xingguo
2470ab4aba
qa/standalone/scrub/osd-scrub-repair.sh: add extents flag into object_info_t
...
Introduced-by: https://github.com/ceph/ceph/pull/15199
Fixes: http://tracker.ceph.com/issues/21618
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-10-03 21:14:53 +08:00
Kefu Chai
3dfe209499
Merge pull request #17955 from asomers/bin_bash2
...
test: fix bash path in shebangs (part 2)
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-30 12:13:35 +08:00
David Zafman
2f466f8b26
Merge pull request #17920 from dzafman/wip-21382
...
Erasure code recovery should send additional reads if necessary
Fixes: http://tracker.ceph.com/issues/21382
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-29 09:04:43 -07:00
David Zafman
1235810c2a
osd: Allow recovery to send additional reads
...
For now it doesn't include non-acting OSDs
Added test for this case
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-09-28 23:31:18 -07:00
David Zafman
f92aa6c824
test: Allow modified options to existing setup functions
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-09-28 23:31:18 -07:00
David Zafman
43e3206de2
test: Use feature to get last array element
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-09-28 23:31:18 -07:00
Alan Somers
d1cbb90daa
scripts: fix bash path in shebangs (part 2)
...
/bin/bash is a Linuxism. Other operating systems install bash to
different paths. Use /usr/bin/env in shebangs to find bash.
Signed-off-by: Alan Somers <asomers@gmail.com>
2017-09-25 17:20:40 -06:00
Sage Weil
ec2bdbc44c
qa/standalone/scrub/osd-scrub-snaps: adjust test for lack of snapdir objects
...
The head_exists stuff is totally gone; those test failures go away.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-22 17:49:19 -04:00
Kefu Chai
73d4afbf8c
Merge pull request #17747 from tchaikov/wip-qa
...
qa/standalone: respect $TEMPDIR
Reviewed-by: David Zafman <dzafman@redhat.com>
2017-09-20 23:08:47 +08:00
Kefu Chai
f27251432a
Merge pull request #17785 from dzafman/wip-add-repair
...
test: Fix ceph-objectstore-tool usage check
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-20 12:35:16 +08:00
Sage Weil
6767f841e5
Merge pull request #17427 from liewegas/wip-pg-num-limits
...
mon/OSDMonitor: implement cluster pg limit
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-09-19 12:57:10 -05:00
David Zafman
0364ae104a
test: Fix ceph-objectstore-tool usage check
...
Caused by: c7b7a1f04f
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-09-18 15:29:22 -07:00
Kefu Chai
085778b80a
Merge pull request #17703 from dzafman/wip-misc
...
Erasure code read test and code cleanup
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-09-15 19:54:58 +08:00
Kefu Chai
279d2980fa
qa/standalone/ceph-helpers.sh: pass btrfs subvolume options the right way
...
with the latest btrfs-progs, it complains with
$ sudo btrfs subvolume list . -t
btrfs subvolume list: too many arguments
so, we need to pass `-t` right after `list` subcommand.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-09-15 12:19:50 +08:00