]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agocommon/ConfUtils: implement trim helpers using boost 28634/head
Kefu Chai [Wed, 19 Jun 2019 10:07:07 +0000 (18:07 +0800)]
common/ConfUtils: implement trim helpers using boost

remove unused trim_whitespace() and its tests. as it is not used anymore

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/workunits: add auth caps allow command case
Gu Zhongyan [Tue, 6 Mar 2018 07:40:21 +0000 (15:40 +0800)]
qa/workunits: add auth caps allow command case

this case introduces multiple quotes in caps line
it will trigger the bug like http://tracker.ceph.com/issues/22227

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
6 years agoauth/KeyRing: escape quotes around commands
Kefu Chai [Tue, 18 Jun 2019 14:02:57 +0000 (22:02 +0800)]
auth/KeyRing: escape quotes around commands

so the exported auth can be re-imported.

Fixes: http://tracker.ceph.com/issues/22227
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agosrc/: parser returns up to one error
Kefu Chai [Tue, 18 Jun 2019 12:59:17 +0000 (20:59 +0800)]
src/: parser returns up to one error

since config parser bails out at seeing the first error, there is no
need to offer the interfaces to report multiple errors.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agosrc: use spirit based ceph.conf parser
Kefu Chai [Sun, 16 Jun 2019 10:08:50 +0000 (18:08 +0800)]
src: use spirit based ceph.conf parser

before this change, the ceph.conf parser was implemented using a
hand-written state machine. which works fine. but it's hard to
understand and hence difficult to maintain.

in this change, it's rewritten using boost::spirit. which well, is also
a state machine under the hood, but the declarative pattern matching
rules help the human readers to understand the machinary.

before this change, the state machine is able to skip the lines with
invalid syntax and spit a warning message for each of them. after this
change, the parser will just bail out when it fails to match the rules.

and the line continuation marker, i.e., "\" is simply skipped, so it's
allowed to have nothing after the backslash in the value of key-value
pair.

changes are listed as following:

* invalid UTF-8 key/value is now treated as an error
* backslash at the very end is now allowed
* repeated settings are tolerated, and no warnings will be printed.
  the last one wins. before this change, we will print out warning
  messages at seeing lines with duplicated keys.
* malformed section header is now an error
* a setting line which does not parse is now an error
* unmatched quotes in setting value is now an error
* "\" following an empty line is allowed now.
* the format of error message is changed, so the cli test is updated
  accordingly.
* [global] section is not added by default. unless there is a single
  line in the conf file. this is only for the convenience of testing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28707 from majianpeng/perf-async-msgr-remove-unsued-header
Kefu Chai [Mon, 24 Jun 2019 02:58:34 +0000 (10:58 +0800)]
Merge pull request #28707 from majianpeng/perf-async-msgr-remove-unsued-header

test/crimson/perf_async_msgr: remove unsued header file.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson/perf_async_msgr: remove unsued header file. 28707/head
Jianpeng Ma [Thu, 20 Jun 2019 02:26:59 +0000 (10:26 +0800)]
test/crimson/perf_async_msgr: remove unsued header file.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #28684 from tchaikov/wip-silence-warnings
Kefu Chai [Sun, 23 Jun 2019 02:13:01 +0000 (10:13 +0800)]
Merge pull request #28684 from tchaikov/wip-silence-warnings

src/: silence GCC warnings

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #28677 from liewegas/wip-recovery-nvme
Kefu Chai [Sat, 22 Jun 2019 17:56:42 +0000 (01:56 +0800)]
Merge pull request #28677 from liewegas/wip-recovery-nvme

osd: add hdd and ssd variants for osd_recovery_max_active

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
6 years agoMerge pull request #17619 from liuchang0812/wip-ec-below-min-size
Kefu Chai [Sat, 22 Jun 2019 04:58:55 +0000 (12:58 +0800)]
Merge pull request #17619 from liuchang0812/wip-ec-below-min-size

osd: allow EC PGs to do recovery below min_size

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28697 from cbodley/wip-qa-rgw-swift-skip-client
Casey Bodley [Fri, 21 Jun 2019 19:52:36 +0000 (15:52 -0400)]
Merge pull request #28697 from cbodley/wip-qa-rgw-swift-skip-client

qa/rgw: fix swift warning message

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoqa/rgw: fix swift warning message 28697/head
Casey Bodley [Fri, 21 Jun 2019 19:18:55 +0000 (15:18 -0400)]
qa/rgw: fix swift warning message

  File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/swift.py", line 245, in task
    log.warning('Swift tests cannot run on rhel 7.6+, skipping client {client}'.format(client))
KeyError: 'client'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28657 from dillaman/wip-40435
Mykola Golub [Fri, 21 Jun 2019 17:24:52 +0000 (20:24 +0300)]
Merge pull request #28657 from dillaman/wip-40435

rbd: use the ordered throttle for the export action

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #28567 into master
Sage Weil [Fri, 21 Jun 2019 13:38:39 +0000 (08:38 -0500)]
Merge PR #28567 into master

* refs/pull/28567/head:
Revert "mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num"

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28674 from tchaikov/wip-doc/crimson
Kefu Chai [Fri, 21 Jun 2019 11:18:11 +0000 (19:18 +0800)]
Merge pull request #28674 from tchaikov/wip-doc/crimson

doc/dev: add crimson.rst

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #28462 from myoungwon/wip-doc-dedup
Kefu Chai [Fri, 21 Jun 2019 11:13:44 +0000 (19:13 +0800)]
Merge pull request #28462 from myoungwon/wip-doc-dedup

doc: add a deduplication document

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26251 from majianpeng/add-new-op-create
Kefu Chai [Fri, 21 Jun 2019 08:10:37 +0000 (16:10 +0800)]
Merge pull request #26251 from majianpeng/add-new-op-create

os/objectstore: add new op OP_CREATE for create a new object.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc: add a deduplication document 28462/head
myoungwon oh [Fri, 7 Jun 2019 10:07:05 +0000 (19:07 +0900)]
doc: add a deduplication document

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
6 years agodoc/dev: add crimson.rst 28674/head
Kefu Chai [Thu, 20 Jun 2019 11:27:09 +0000 (19:27 +0800)]
doc/dev: add crimson.rst

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest: Replace deprecated TYPED_TEST_CASE with TYPED_TEST_SUITE 28684/head
Adam C. Emerson [Tue, 18 Jun 2019 17:08:18 +0000 (13:08 -0400)]
test: Replace deprecated TYPED_TEST_CASE with TYPED_TEST_SUITE

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorgw: Fix pessimizing move
Adam C. Emerson [Mon, 17 Jun 2019 17:50:57 +0000 (13:50 -0400)]
rgw: Fix pessimizing move

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoclient,rbd,mon: Fix signed compare warnings
Adam C. Emerson [Mon, 17 Jun 2019 17:50:07 +0000 (13:50 -0400)]
client,rbd,mon: Fix signed compare warnings

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agotest/simple_spin: Explicitly wait for futures from async
Adam C. Emerson [Thu, 2 May 2019 18:18:55 +0000 (14:18 -0400)]
test/simple_spin: Explicitly wait for futures from async

Rather than count on implicitly blocking destruct.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoOSD: Initialize pool and recovery_state in the order they are defined
Adam C. Emerson [Thu, 2 May 2019 16:48:44 +0000 (12:48 -0400)]
OSD: Initialize pool and recovery_state in the order they are defined

Currently we call get_pool on the PeeringState before the PeeringState
has been initialized.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorbd: Remove unused capture
Adam C. Emerson [Thu, 2 May 2019 16:42:27 +0000 (12:42 -0400)]
rbd: Remove unused capture

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoimmutable_object_cache: Remove unused capture
Adam C. Emerson [Thu, 2 May 2019 16:41:48 +0000 (12:41 -0400)]
immutable_object_cache: Remove unused capture

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoimmutable_object_cache: Remove pessimizing moves
Adam C. Emerson [Thu, 2 May 2019 16:41:16 +0000 (12:41 -0400)]
immutable_object_cache: Remove pessimizing moves

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoosd: add hdd and ssd variants for osd_recovery_max_active 28677/head
Sage Weil [Thu, 20 Jun 2019 15:50:13 +0000 (10:50 -0500)]
osd: add hdd and ssd variants for osd_recovery_max_active

Semi-arbitrarily set the SSD max to 10 (instead of 3).  This should be
tuned based on some real data.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28676 from tchaikov/wip-stop.sh-with-crimson
Kefu Chai [Thu, 20 Jun 2019 19:55:05 +0000 (03:55 +0800)]
Merge pull request #28676 from tchaikov/wip-stop.sh-with-crimson

stop.sh: add --crimson option

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28204 from dzafman/wip-39555
Neha Ojha [Thu, 20 Jun 2019 18:12:10 +0000 (11:12 -0700)]
Merge pull request #28204 from dzafman/wip-39555

mon: Improve health status for backfill_toofull and recovery_toofull

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #28663 into master
Patrick Donnelly [Thu, 20 Jun 2019 18:09:37 +0000 (11:09 -0700)]
Merge PR #28663 into master

* refs/pull/28663/head:
cephfs-shell: use consistent naming for paths
cephfs-shell: remove unnecessary instances of to_bytes
cephfs-shell: refactor list_items
pybind/cephfs: improve user-friendliness of DirResult
pybind/cephfs: avoid unicode check

Reviewed-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #28561 into master
Patrick Donnelly [Thu, 20 Jun 2019 18:09:01 +0000 (11:09 -0700)]
Merge PR #28561 into master

* refs/pull/28561/head:
vstart_runner: upgrade the check for commands to be run as another user
vstart_runner: split unicode arguments into lists

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28049 from theanalyst/rgw-lc-bl-fix
Casey Bodley [Thu, 20 Jun 2019 17:30:51 +0000 (13:30 -0400)]
Merge pull request #28049 from theanalyst/rgw-lc-bl-fix

rgw_lc: use a new bl while encoding RGW_ATTR_LC

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #28276 from liuchang0812/multi-site-request-forward
Casey Bodley [Thu, 20 Jun 2019 17:23:47 +0000 (13:23 -0400)]
Merge pull request #28276 from liuchang0812/multi-site-request-forward

rgw: forwarded some requests to master zone

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26167 from yaozongyou/rgw-lc-add-more-check
Casey Bodley [Thu, 20 Jun 2019 17:15:57 +0000 (13:15 -0400)]
Merge pull request #26167 from yaozongyou/rgw-lc-add-more-check

rgw: check lc objs not empty after fetching

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #26538 from zhangsw/feature-rgw-object-lock
Casey Bodley [Thu, 20 Jun 2019 17:14:51 +0000 (13:14 -0400)]
Merge pull request #26538 from zhangsw/feature-rgw-object-lock

rgw: add S3 object lock feature to support object worm

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26351 from linuxbox2/wip-rgw-gcretire
Casey Bodley [Thu, 20 Jun 2019 17:13:57 +0000 (13:13 -0400)]
Merge pull request #26351 from linuxbox2/wip-rgw-gcretire

rgw: perfcounters: add gc retire counter

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #28527 from tianshan/fix_ret
Casey Bodley [Thu, 20 Jun 2019 17:12:33 +0000 (13:12 -0400)]
Merge pull request #28527 from tianshan/fix_ret

rgw: fix miss get ret in STSService::storeARN

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
6 years agoMerge pull request #28327 from linuxbox2/wip-rgw-email
Casey Bodley [Thu, 20 Jun 2019 17:12:10 +0000 (13:12 -0400)]
Merge pull request #28327 from linuxbox2/wip-rgw-email

rgw: conditionally allow non-unique email addresses

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28308 from joke-lee/usage_dump
Casey Bodley [Thu, 20 Jun 2019 17:11:28 +0000 (13:11 -0400)]
Merge pull request #28308 from joke-lee/usage_dump

rgw: usage dump_unsigned instead dump_int

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28172 from joke-lee/rgw-sts-bad-token
Casey Bodley [Thu, 20 Jun 2019 17:10:31 +0000 (13:10 -0400)]
Merge pull request #28172 from joke-lee/rgw-sts-bad-token

rgw: fix rgw crash and set correct error code

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
6 years agovstart_runner: upgrade the check for commands to be run as another user 28561/head
Rishabh Dave [Thu, 20 Jun 2019 16:05:38 +0000 (21:35 +0530)]
vstart_runner: upgrade the check for commands to be run as another user

Rectify the condition that checks if command to be issued as another
user using sudo is issued as a single argument after "-c".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28539 from dillaman/wip-40072
Mykola Golub [Thu, 20 Jun 2019 16:02:14 +0000 (19:02 +0300)]
Merge pull request #28539 from dillaman/wip-40072

librbd: improve journal performance to match expected degradation

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agostop.sh: add --crimson option 28676/head
Kefu Chai [Thu, 20 Jun 2019 14:15:18 +0000 (22:15 +0800)]
stop.sh: add --crimson option

so we can pkill crimson-osd if this option is specified

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28655 from dengchj/multisite_doc
Casey Bodley [Thu, 20 Jun 2019 13:36:34 +0000 (09:36 -0400)]
Merge pull request #28655 from dengchj/multisite_doc

doc: fixed --read-only argument value in multisite doc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #28194 into master
Patrick Donnelly [Thu, 20 Jun 2019 13:27:04 +0000 (06:27 -0700)]
Merge PR #28194 into master

* refs/pull/28194/head:
test_volume_client: declare only one default for python version
test_volume_client: don't shadow class variable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: use consistent naming for paths 28663/head
Patrick Donnelly [Wed, 19 Jun 2019 19:46:26 +0000 (12:46 -0700)]
cephfs-shell: use consistent naming for paths

And some small changes to make some commands take variable arguments and fix
defaults.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: remove unnecessary instances of to_bytes
Patrick Donnelly [Wed, 19 Jun 2019 04:12:33 +0000 (21:12 -0700)]
cephfs-shell: remove unnecessary instances of to_bytes

cephfs binding already automatically converts paths and some arguments to
bytes.

Fixes: http://tracker.ceph.com/issues/40455
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: refactor list_items
Patrick Donnelly [Wed, 19 Jun 2019 03:57:29 +0000 (20:57 -0700)]
cephfs-shell: refactor list_items

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/cephfs: improve user-friendliness of DirResult
Patrick Donnelly [Wed, 19 Jun 2019 03:50:28 +0000 (20:50 -0700)]
pybind/cephfs: improve user-friendliness of DirResult

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/cephfs: avoid unicode check
Patrick Donnelly [Wed, 19 Jun 2019 03:38:26 +0000 (20:38 -0700)]
pybind/cephfs: avoid unicode check

py3 does not have the unicode built-in. Instead, simply try to do the encoding
and catch failures appropriately. If it quacks like a duck...

(Note that cython apparently cheats and allows the unicode check but this is
simpler.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28638 into master
Patrick Donnelly [Thu, 20 Jun 2019 13:08:47 +0000 (06:08 -0700)]
Merge PR #28638 into master

* refs/pull/28638/head:
qa: elide python version config
cephfs-shell: assert python3

Reviewed-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28498 from kamoltat/wip-mgr-progress-add-event-osd-marked-in
Kefu Chai [Thu, 20 Jun 2019 09:30:17 +0000 (17:30 +0800)]
Merge pull request #28498 from kamoltat/wip-mgr-progress-add-event-osd-marked-in

mgr/progress: Add recovery event when OSD marked in

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #28564 from ceph/store_statfs-log
Kefu Chai [Thu, 20 Jun 2019 09:26:30 +0000 (17:26 +0800)]
Merge pull request #28564 from ceph/store_statfs-log

log: fix store_statfs log line

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28621 from Aran85/fix-ec-rf
Kefu Chai [Thu, 20 Jun 2019 09:21:38 +0000 (17:21 +0800)]
Merge pull request #28621 from Aran85/fix-ec-rf

osd: accident of rollforward may need to mark pglog dirty

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28656 from dvanders/zstd-upgrade
Kefu Chai [Thu, 20 Jun 2019 09:19:09 +0000 (17:19 +0800)]
Merge pull request #28656 from dvanders/zstd-upgrade

zstd: upgrade to v1.4.0

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest_volume_client: declare only one default for python version 28194/head
Rishabh Dave [Sat, 18 May 2019 14:05:42 +0000 (16:05 +0200)]
test_volume_client: declare only one default for python version

Fixes: http://tracker.ceph.com/issues/40460
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agovstart_runner: split unicode arguments into lists
Rishabh Dave [Fri, 14 Jun 2019 18:14:25 +0000 (23:44 +0530)]
vstart_runner: split unicode arguments into lists

Split not just string arguments but also unicode arguments into lists.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28570 from xiexingguo/wip-objecter-direct-spgid
Xie Xingguo [Thu, 20 Jun 2019 03:15:44 +0000 (11:15 +0800)]
Merge pull request #28570 from xiexingguo/wip-objecter-direct-spgid

osdc/Objecter: _calc_target - inline spgid

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc: fixed --read-only argument value in multisite doc 28655/head
Chenjiong Deng [Wed, 19 Jun 2019 10:17:43 +0000 (18:17 +0800)]
doc: fixed --read-only argument value in multisite doc

Fixes: https://tracker.ceph.com/issues/40458
Signed-off-by: Chenjiong Deng <dengchenjiong@umcloud.com>
6 years agoMerge pull request #28568 from xiexingguo/wip-off-by-one-max-osd
Xie Xingguo [Thu, 20 Jun 2019 02:41:21 +0000 (10:41 +0800)]
Merge pull request #28568 from xiexingguo/wip-off-by-one-max-osd

mon/OSDMonitor: fix off-by-one when updating new_last_in_change

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28629 from xiexingguo/wip-osd-df-by-pool-name
Xie Xingguo [Thu, 20 Jun 2019 02:40:40 +0000 (10:40 +0800)]
Merge pull request #28629 from xiexingguo/wip-osd-df-by-pool-name

mgr, osd: 'osd df' by pool

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomon: Improve health status for backfill_toofull and recovery_toofull 28204/head
David Zafman [Wed, 22 May 2019 01:29:30 +0000 (18:29 -0700)]
mon: Improve health status for backfill_toofull and recovery_toofull

Treat backfull_toofull as a warning condition because it can resolve itself.
Includes test case for PG_BACKFILL_FULL
Includes test case for recovery_toofull / PG_RECOVERY_FULL

Fixes: https://tracker.ceph.com/issues/39555
Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoqa: elide python version config 28638/head
Patrick Donnelly [Tue, 18 Jun 2019 22:14:22 +0000 (15:14 -0700)]
qa: elide python version config

This test doesn't actually use the config and cephfs-shell is py3 only.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: assert python3
Patrick Donnelly [Tue, 18 Jun 2019 22:11:58 +0000 (15:11 -0700)]
cephfs-shell: assert python3

There's little reason to support this new tool with python2.

Fixes: http://tracker.ceph.com/issues/40418
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28553 from trociny/wip-40071
Jason Dillaman [Thu, 20 Jun 2019 00:21:37 +0000 (20:21 -0400)]
Merge pull request #28553 from trociny/wip-40071

librbd: mirror image enable/disable should enable/disable journaling

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28627 from trociny/wip-40409
Jason Dillaman [Wed, 19 Jun 2019 20:58:44 +0000 (16:58 -0400)]
Merge pull request #28627 from trociny/wip-40409

journal: properly advance read offset after skipping invalid range

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28460 from tchaikov/wip-cmake-detect-libnl
Kefu Chai [Wed, 19 Jun 2019 16:36:53 +0000 (00:36 +0800)]
Merge pull request #28460 from tchaikov/wip-cmake-detect-libnl

cmake: rewrite Findgenl to support components argument

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agorbd: use the ordered throttle for the export action 28657/head
Jason Dillaman [Wed, 19 Jun 2019 15:09:54 +0000 (11:09 -0400)]
rbd: use the ordered throttle for the export action

This allows exports to STDOUT to use multiple concurrent operations
and also fixes a potential race condition with concurrent callbacks
and file seeking.

Fixes: http://tracker.ceph.com/issues/40435
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agozstd: compat with v1.4.0 28656/head
Dan van der Ster [Wed, 19 Jun 2019 14:57:13 +0000 (16:57 +0200)]
zstd: compat with v1.4.0

In zstd d8e215cbee03b038fffe74aebad63b625c42f23c
ZSTD_compress_generic() is renamed to ZSTD_compressStream2().

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
6 years agolibrbd: tweaks to improve throughput for journaled IO 28539/head
Jason Dillaman [Thu, 13 Jun 2019 19:22:54 +0000 (15:22 -0400)]
librbd: tweaks to improve throughput for journaled IO

Increase the per-object append flush bytes to 1MiB to mimic the 16MiB
in-memory writeback cache. Finally, default enable the new journal
writethrough until flush option.

Performance results comparing no journal, pre-change, and post-change:

no journal original modified
4K 40310.84 7223.73 27427.27
32K 21530.37 3256.39 10284.05
256K 3159.67 564.73 1627.16
4M 223.03 48.03 91.91

Fixes: http://tracker.ceph.com/issues/40072
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new rbd_journal_object_writethrough_until_flush option
Jason Dillaman [Wed, 12 Jun 2019 17:36:24 +0000 (13:36 -0400)]
librbd: new rbd_journal_object_writethrough_until_flush option

When set to true, the journal will not attempt to batch appends until
after it receives the the first flush request from the user.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agojournal: support dynamically updating recorder flush options
Jason Dillaman [Thu, 13 Jun 2019 00:06:11 +0000 (20:06 -0400)]
journal: support dynamically updating recorder flush options

Default to disabling writeback-style append flushes unless overridden
by a call to 'set_append_batch_options'.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agojournal: fix broken append batching implementation
Jason Dillaman [Thu, 13 Jun 2019 14:21:33 +0000 (10:21 -0400)]
journal: fix broken append batching implementation

The original flush_interval/bytes/age batching options no longer
actually do anything. Integrate these better with the max in-flight
AIO handling.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agozstd: upgrade to v1.4.0
Dan van der Ster [Wed, 19 Jun 2019 13:58:13 +0000 (15:58 +0200)]
zstd: upgrade to v1.4.0

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
6 years agoMerge pull request #28631 from cbodley/wip-17882
Casey Bodley [Wed, 19 Jun 2019 13:32:18 +0000 (09:32 -0400)]
Merge pull request #28631 from cbodley/wip-17882

qa/rgw: extra s3tests tasks use rgw endpoint configuration

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agodebian/control: remove "libnl-3-dev" from build dependencies 28460/head
Kefu Chai [Sun, 9 Jun 2019 09:33:19 +0000 (17:33 +0800)]
debian/control: remove "libnl-3-dev" from build dependencies

what we need is "libnl-genl-3-dev", libnl-3-dev should be a dependency
of "libnl-genl-3-dev". the only reason we would have added it, is if
the package maintainer of "libnl-genl-3-dev" fails to do so. and
the packages of "libnl-genl-3-dev" on both debian and ubuntu just look
correct in this perspective.

so let's remove this.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: rewrite Findgenl to support components argument
Kefu Chai [Sun, 9 Jun 2019 09:12:27 +0000 (17:12 +0800)]
cmake: rewrite Findgenl to support components argument

* rename genl to nl:
  "genl" is not very specific without more context. and libnl is actually
  a library suite. so it would be better if we can rename the library to
  be found to "libnl", and by following the naming convention of CMake,
  in this change, Findgenl.cmake is renamed to Findnl.cmake
* Findnl.cmake: support the component argument, in our specific case,
  what we want is "libnl-genl" library, which is one of the libraries
  offered by libnl. so let's just make it a component.
* Findnl.cmake: should pass the names of the required variables instead of
  their values to `find_package_handle_standard_args()`. before this
  change, we pass `GENL_LIBRARIES` to this function. it was correct at the
  first glance. but it is not able to handle the case where case where
  libnl-genl is not installed. so the fix is to pass all the names of
  required library paths to this function. in this change, their name
  are concatenated to a single variable -- `nl_LIBRARIES`, and the
  value of this variable is passed to
  `find_package_handle_standard_args()`. and the error message would
  be more specific this way if libnl-genl is not found:
    Could NOT find nl (missing: nl_genl_LIBRARY)
* Findnl.cmake: add nl::<component> as imported library, it helps the
  consumer of these libraries to import them -- no need to
  specify the `target_include_directories()` separately anymore.
* move the find_package() code to where it is used. it helps to improve
  the readability.
* remove `HAVE_GENL` variable: it's not used anywhere.
* drop the messages of "Not using foobar", they do not help.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agojournal: improve logging on recorder append path
Jason Dillaman [Thu, 13 Jun 2019 13:45:32 +0000 (09:45 -0400)]
journal: improve logging on recorder append path

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agomgr/dashboard: Ensure E2E tests can be run independently (#28592)
Lenz Grimmer [Wed, 19 Jun 2019 13:07:39 +0000 (15:07 +0200)]
mgr/dashboard: Ensure E2E tests can be run independently (#28592)

mgr/dashboard: Ensure E2E tests can be run independently

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nathan Weinberg <nweinber@redhat.com>
Reviewed-by: Rafael Quintero <rquinter@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #28453 into master
Sage Weil [Wed, 19 Jun 2019 12:59:45 +0000 (07:59 -0500)]
Merge PR #28453 into master

* refs/pull/28453/head:
qa/valgrind.supp: be slightly less specific on suppression
msg/async, v2: make the reset_recv_state() unconditional.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agotest_volume_client: don't shadow class variable
Rishabh Dave [Thu, 6 Jun 2019 09:02:04 +0000 (14:32 +0530)]
test_volume_client: don't shadow class variable

Name class and instance variables differently so that the latter doesn't
shadow the former.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28566 from liewegas/wip-40377
Kefu Chai [Wed, 19 Jun 2019 12:15:18 +0000 (20:15 +0800)]
Merge pull request #28566 from liewegas/wip-40377

osd: copy (don't move) pg list when sending beacon

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/rgw: update default port in perl workunits 28631/head
Casey Bodley [Tue, 18 Jun 2019 16:44:19 +0000 (12:44 -0400)]
qa/rgw: update default port in perl workunits

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoqa/rgw: extra s3tests tasks use rgw endpoint configuration
Casey Bodley [Tue, 18 Jun 2019 13:07:33 +0000 (09:07 -0400)]
qa/rgw: extra s3tests tasks use rgw endpoint configuration

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agojournal: properly advance read offset after skipping invalid range 28627/head
Mykola Golub [Tue, 18 Jun 2019 09:24:28 +0000 (12:24 +0300)]
journal: properly advance read offset after skipping invalid range

Fixes: https://tracker.ceph.com/issues/40409
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #28212 into master
Patrick Donnelly [Wed, 19 Jun 2019 01:31:29 +0000 (18:31 -0700)]
Merge PR #28212 into master

* refs/pull/28212/head:
mds: trim cache during standby replay

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #28551 into master
Patrick Donnelly [Wed, 19 Jun 2019 01:30:25 +0000 (18:30 -0700)]
Merge PR #28551 into master

* refs/pull/28551/head:
mds: don't mark cap NEEDSNAPFLUSH if client has no pending capsnap

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28545 into master
Patrick Donnelly [Wed, 19 Jun 2019 01:28:51 +0000 (18:28 -0700)]
Merge PR #28545 into master

* refs/pull/28545/head:
client: set snapdir's link count to 1

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #28496 from ifed01/wip-ifed-fix-40080
Kefu Chai [Tue, 18 Jun 2019 15:31:40 +0000 (23:31 +0800)]
Merge pull request #28496 from ifed01/wip-ifed-fix-40080

os/bluestore: fix duplicate allocations in bmap allocator

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28509 from tchaikov/wip-mon_clean_pg_upmaps_per_chunk
Kefu Chai [Tue, 18 Jun 2019 15:31:13 +0000 (23:31 +0800)]
Merge pull request #28509 from tchaikov/wip-mon_clean_pg_upmaps_per_chunk

common/options: make mon_clean_pg_upmaps_per_chunk unsigned

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28418 from xiexingguo/wip-kick-recovery-priority
Kefu Chai [Tue, 18 Jun 2019 15:29:42 +0000 (23:29 +0800)]
Merge pull request #28418 from xiexingguo/wip-kick-recovery-priority

osd: give recovery ops initialized by client op a higher priority

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25395 from rzarzynski/wip-build-compiletest_cxx11_client
Kefu Chai [Tue, 18 Jun 2019 15:12:35 +0000 (23:12 +0800)]
Merge pull request #25395 from rzarzynski/wip-build-compiletest_cxx11_client

tests: introduce compiletest_cxx11_client for C++11 conformity.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #28229 into master
Sage Weil [Tue, 18 Jun 2019 15:02:40 +0000 (10:02 -0500)]
Merge PR #28229 into master

* refs/pull/28229/head:
os/bluestore: do garbage collection if blob count is too high.
common/perf_conters: make dump_formatted_xxx funcs as const.
os/bluestore: store extents for GC within WriteContext.
os/bluestore: GC class, make some members local.
os/bluestore: vector -> interval set in GC to track extents to collect.
tests/store_test: many-many spanning blobs test case

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28630 into master
Sage Weil [Tue, 18 Jun 2019 14:58:22 +0000 (09:58 -0500)]
Merge PR #28630 into master

* refs/pull/28630/head:
os/bluestore: fix duplicative and misleading debug in KernelDevice::open().

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agomgr/dashboard: Ensure E2E tests can be run independently 28592/head
Patrick Nawracay [Mon, 17 Jun 2019 09:36:53 +0000 (11:36 +0200)]
mgr/dashboard: Ensure E2E tests can be run independently

Introduces the PageHelper.

- Reads class attributes from Helpers to reduce boilerplace code for
  navigation.
- The PageHelper is supposed to be the new class for code that's reused
  across all Helpers for page related code.
- The Helper class is by now meant to be used for non-page specific
  helper code, like used in the `checkConsole` method.
- The Helper class will act as central registry to enable all other
  tests to use helper functions of all derived PageHelper tests.

  Example:

  `Helper.pools.create('foobar', ...);`

Fixes: http://tracker.ceph.com/issues/40397
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoos/bluestore: fix duplicative and misleading debug in KernelDevice::open(). 28630/head
Radoslaw Zarzynski [Tue, 18 Jun 2019 12:36:30 +0000 (14:36 +0200)]
os/bluestore: fix duplicative and misleading debug in KernelDevice::open().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agomgr, osd: 'ceph osd df' by pool 28629/head
xie xingguo [Tue, 18 Jun 2019 12:05:31 +0000 (20:05 +0800)]
mgr, osd: 'ceph osd df' by pool

Our test admin has been asking for this for the past few years:-)
Besides, this is also useful for operating on large Ceph clusters with
mutliple storage pools possibly spanning over all osds.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agomgr/dashboard: Update translations (#28059)
Lenz Grimmer [Tue, 18 Jun 2019 11:20:20 +0000 (13:20 +0200)]
mgr/dashboard: Update translations (#28059)

mgr/dashboard: Update translations

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoqa/workunits/rbd: tweak mirror tests 28553/head
Mykola Golub [Tue, 18 Jun 2019 11:04:59 +0000 (12:04 +0100)]
qa/workunits/rbd: tweak mirror tests

(after "image mirror disable" started to disable journaling)

Signed-off-by: Mykola Golub <mgolub@suse.com>