]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agocephfs: Switch MIN/MAX for std::min/max and use intarith templates 19911/head
Adam C. Emerson [Thu, 11 Jan 2018 03:24:17 +0000 (22:24 -0500)]
cephfs: Switch MIN/MAX for std::min/max and use intarith templates

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #19913 from adamemerson/wip-minimax-rados
Sage Weil [Sat, 13 Jan 2018 15:56:28 +0000 (09:56 -0600)]
Merge pull request #19913 from adamemerson/wip-minimax-rados

rados: Prefer templates to macros

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19914 from tchaikov/wip-cmake-check-boost-in-src
Sage Weil [Sat, 13 Jan 2018 15:56:08 +0000 (09:56 -0600)]
Merge pull request #19914 from tchaikov/wip-cmake-check-boost-in-src

cmake: check version of boost in src/boost

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #19926 from batrick/i22527
Sage Weil [Sat, 13 Jan 2018 15:55:12 +0000 (09:55 -0600)]
Merge pull request #19926 from batrick/i22527

mon: revert mds metadata argument name change

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19903 from dillaman/wip-librbd-op-features
Mykola Golub [Sat, 13 Jan 2018 02:13:49 +0000 (04:13 +0200)]
Merge pull request #19903 from dillaman/wip-librbd-op-features

librbd: add preliminary support for new operation feature bit

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #19793 from badone/wip-blocking-deep-scrub
Yuri Weinstein [Fri, 12 Jan 2018 22:47:30 +0000 (14:47 -0800)]
Merge pull request #19793 from badone/wip-blocking-deep-scrub

ceph.in: Add blocking mode for scrub and deep-scrub

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #19910 from jdurgin/wip-21897
Yuri Weinstein [Fri, 12 Jan 2018 22:46:26 +0000 (14:46 -0800)]
Merge pull request #19910 from jdurgin/wip-21897

config: lower default omap entries recovered at once

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #19894 into master
Patrick Donnelly [Fri, 12 Jan 2018 22:37:39 +0000 (14:37 -0800)]
Merge PR #19894 into master

* refs/pull/19894/head:
cmake: link against ceph-common instead of common

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19920 into master
Patrick Donnelly [Fri, 12 Jan 2018 22:37:32 +0000 (14:37 -0800)]
Merge PR #19920 into master

* refs/pull/19920/head:
client: fix cap revoke race
client: release revoking Fc after invalidate cache

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19885 into master
Patrick Donnelly [Fri, 12 Jan 2018 22:37:25 +0000 (14:37 -0800)]
Merge PR #19885 into master

* refs/pull/19885/head:
qa: increase osd count for ec testing
qa: add missing openstack configs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agorados: Switch MIN/MAX for std::min/max and use intarith templates 19913/head
Adam C. Emerson [Thu, 11 Jan 2018 03:24:46 +0000 (22:24 -0500)]
rados: Switch MIN/MAX for std::min/max and use intarith templates

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #19900 from dillaman/wip-rbd-lock-list
Mykola Golub [Fri, 12 Jan 2018 19:31:54 +0000 (21:31 +0200)]
Merge pull request #19900 from dillaman/wip-rbd-lock-list

rbd: adjusted "lock list" JSON and XML formatted output

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #19933 from qrGitHub/wip-rgw-useless-line4
Casey Bodley [Fri, 12 Jan 2018 18:17:48 +0000 (13:17 -0500)]
Merge pull request #19933 from qrGitHub/wip-rgw-useless-line4

rgw: drop redundant RGW_OP_STAT_OBJ check

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agorbd: adjusted "lock list" JSON and XML formatted output 19900/head
Jason Dillaman [Wed, 10 Jan 2018 19:46:07 +0000 (14:46 -0500)]
rbd: adjusted "lock list" JSON and XML formatted output

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: operations should return -EROFS if disabled 19903/head
Jason Dillaman [Fri, 12 Jan 2018 15:46:33 +0000 (10:46 -0500)]
librbd: operations should return -EROFS if disabled

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: retrieve the op features on image refresh
Jason Dillaman [Fri, 5 Jan 2018 18:54:24 +0000 (13:54 -0500)]
librbd: retrieve the op features on image refresh

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: track new operation features within image
Jason Dillaman [Fri, 5 Jan 2018 02:50:02 +0000 (21:50 -0500)]
librbd: track new operation features within image

This will initially be utilized to restrict older clients from
performing operations against an image if (1) it doesn't
support the new feature bit, or (2) doesn't support the specific
enabled op feature.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoinclude: Add templates along side macros in intarith 19905/head
Adam C. Emerson [Wed, 10 Jan 2018 22:06:53 +0000 (17:06 -0500)]
include: Add templates along side macros in intarith

The macros can be removed later.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: drop redundant RGW_OP_STAT_OBJ check 19933/head
Bingyin Zhang [Fri, 12 Jan 2018 06:26:30 +0000 (14:26 +0800)]
rgw: drop redundant RGW_OP_STAT_OBJ check

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
7 years agodoc/man: Add '--block' option for ceph command 19793/head
Brad Hubbard [Fri, 12 Jan 2018 02:47:36 +0000 (12:47 +1000)]
doc/man: Add '--block' option for ceph command

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #19886 from liu-chunmei/fix_dpdk_worker_references_issue
Haomai Wang [Fri, 12 Jan 2018 02:38:30 +0000 (10:38 +0800)]
Merge pull request #19886 from liu-chunmei/fix_dpdk_worker_references_issue

osd: fix dpdk worker references issue

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agorbd: hide implicit / non-mutable features from the CLI help
Jason Dillaman [Fri, 5 Jan 2018 16:31:37 +0000 (11:31 -0500)]
rbd: hide implicit / non-mutable features from the CLI help

The layering and data-pool features are enabled automatically
when striping or a data pool is specified, respectively. For
the 'rbd feature XYZ' command, hide all non-mutable features.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agomon: revert mds metadata argument name change 19926/head
Patrick Donnelly [Thu, 11 Jan 2018 22:46:32 +0000 (14:46 -0800)]
mon: revert mds metadata argument name change

Partial revert of PR #18512: d1877b68d90163897245a9801cff0ea419ff28e4

Fixes: http://tracker.ceph.com/issues/22527
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge branch 'wip-names!-in!-space!' of git://github.com/adamemerson/ceph
Sage Weil [Thu, 11 Jan 2018 21:53:55 +0000 (15:53 -0600)]
Merge branch 'wip-names!-in!-space!' of git://github.com/adamemerson/ceph

Reviewed-by: Jesse Williamson <jwilliamson@suse.de>
# Conflicts:
# src/cls/rbd/cls_rbd.cc
# src/cls/rbd/cls_rbd_types.cc

7 years agoMerge pull request #19099 from ifed01/wip-ifed-faster-pglog
Sage Weil [Thu, 11 Jan 2018 21:50:52 +0000 (15:50 -0600)]
Merge pull request #19099 from ifed01/wip-ifed-faster-pglog

osd: eliminate ineffective container operations

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19180 from theanalyst/tools/rados-omap-clear
Sage Weil [Thu, 11 Jan 2018 21:50:12 +0000 (15:50 -0600)]
Merge pull request #19180 from theanalyst/tools/rados-omap-clear

tools: rados add a cli option to clear omap keys

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19872 from tchaikov/wip-random_shuffle
Sage Weil [Thu, 11 Jan 2018 21:49:31 +0000 (15:49 -0600)]
Merge pull request #19872 from tchaikov/wip-random_shuffle

osd: s/random_shuffle()/shuffle()/

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #19881 from liewegas/wip-kill-crush-location
Sage Weil [Thu, 11 Jan 2018 21:48:29 +0000 (15:48 -0600)]
Merge pull request #19881 from liewegas/wip-kill-crush-location

ceph-crush-location: remove

Reviewed-by: Wido den Hollander <wido@widodh.nl>
7 years agoMerge pull request #11544 from VictorDenisov/consistency_groups_snapshots
Jason Dillaman [Thu, 11 Jan 2018 20:29:27 +0000 (15:29 -0500)]
Merge pull request #11544 from VictorDenisov/consistency_groups_snapshots

librbd: group snapshots

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd-mirror: fix valgrind false positive from new boost release
Jason Dillaman [Thu, 11 Jan 2018 20:27:47 +0000 (15:27 -0500)]
rbd-mirror: fix valgrind false positive from new boost release

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19924 from rzarzynski/wip-rgw-drop-dump_uri_from_state
Casey Bodley [Thu, 11 Jan 2018 17:05:31 +0000 (12:05 -0500)]
Merge pull request #19924 from rzarzynski/wip-rgw-drop-dump_uri_from_state

rgw: drop dump_uri_from_state() which isn't used anymore.

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agolibrbd: ensure enums are prefixed w/ RBD_ to avoid collisions
Jason Dillaman [Thu, 11 Jan 2018 15:55:26 +0000 (10:55 -0500)]
librbd: ensure enums are prefixed w/ RBD_ to avoid collisions

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: fix false-positive compiler warning
Jason Dillaman [Thu, 11 Jan 2018 15:52:26 +0000 (10:52 -0500)]
librbd: fix false-positive compiler warning

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/pybind: corrected failures due to test execution ordering
Jason Dillaman [Thu, 11 Jan 2018 15:15:21 +0000 (10:15 -0500)]
test/pybind: corrected failures due to test execution ordering

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: group snapshots should be linked to image pool (not data pool)
Jason Dillaman [Thu, 11 Jan 2018 14:59:30 +0000 (09:59 -0500)]
librbd: group snapshots should be linked to image pool (not data pool)

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: restore snap list by image id functionality
Jason Dillaman [Thu, 11 Jan 2018 14:35:15 +0000 (09:35 -0500)]
rbd: restore snap list by image id functionality

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: combined group_snap_add and group_snap_update
Jason Dillaman [Thu, 11 Jan 2018 05:24:37 +0000 (00:24 -0500)]
cls/rbd: combined group_snap_add and group_snap_update

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: fix ImageCtx::get_snap_id method
Jason Dillaman [Thu, 11 Jan 2018 04:39:49 +0000 (23:39 -0500)]
librbd: fix ImageCtx::get_snap_id method

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: fixed memory leak and use-after-free in group snap API
Jason Dillaman [Thu, 11 Jan 2018 03:42:05 +0000 (22:42 -0500)]
librbd: fixed memory leak and use-after-free in group snap API

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: utilize '<name>@<snap>' format when creating/removing group snaps
Jason Dillaman [Thu, 11 Jan 2018 03:08:19 +0000 (22:08 -0500)]
rbd: utilize '<name>@<snap>' format when creating/removing group snaps

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agopybind/rbd: added snap_get_group_namespace API method
Jason Dillaman [Thu, 11 Jan 2018 02:40:29 +0000 (21:40 -0500)]
pybind/rbd: added snap_get_group_namespace API method

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: added missing C API version for rbd_snap_get_group_namespace
Jason Dillaman [Thu, 11 Jan 2018 01:56:33 +0000 (20:56 -0500)]
librbd: added missing C API version for rbd_snap_get_group_namespace

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: moved new snapshot API methods to separate class
Jason Dillaman [Thu, 11 Jan 2018 01:18:18 +0000 (20:18 -0500)]
librbd: moved new snapshot API methods to separate class

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: wrap object section around group snap list formatter
Jason Dillaman [Wed, 10 Jan 2018 23:30:19 +0000 (18:30 -0500)]
rbd: wrap object section around group snap list formatter

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: translate pool id into name
Victor Denisov [Sun, 7 Jan 2018 23:29:08 +0000 (15:29 -0800)]
rbd: translate pool id into name

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: translate group pool to name
Victor Denisov [Sun, 7 Jan 2018 22:31:25 +0000 (14:31 -0800)]
rbd: translate group pool to name

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: fix cli tests
Victor Denisov [Sun, 7 Jan 2018 20:38:18 +0000 (12:38 -0800)]
rbd: fix cli tests

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: drop consistency from Info
Victor Denisov [Thu, 4 Jan 2018 02:36:08 +0000 (18:36 -0800)]
rbd: drop consistency from Info

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: produce state string instead of integer
Victor Denisov [Wed, 3 Jan 2018 03:14:01 +0000 (19:14 -0800)]
rbd: produce state string instead of integer

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Add snap rm alias
Victor Denisov [Tue, 2 Jan 2018 04:27:15 +0000 (20:27 -0800)]
rbd: Add snap rm alias

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Change message format
Victor Denisov [Tue, 2 Jan 2018 04:24:16 +0000 (20:24 -0800)]
rbd: Change message format

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Inline options function
Victor Denisov [Tue, 2 Jan 2018 04:19:31 +0000 (20:19 -0800)]
rbd: Inline options function

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Drop consistency from tools
Victor Denisov [Sat, 30 Dec 2017 18:42:53 +0000 (10:42 -0800)]
rbd: Drop consistency from tools

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Fix section name
Victor Denisov [Sat, 30 Dec 2017 16:15:10 +0000 (08:15 -0800)]
rbd: Fix section name

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agotest/pybind: drop consistency from test name
Victor Denisov [Sat, 30 Dec 2017 15:54:36 +0000 (07:54 -0800)]
test/pybind: drop consistency from test name

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Drop consistency from help
Victor Denisov [Sat, 30 Dec 2017 15:35:35 +0000 (07:35 -0800)]
rbd: Drop consistency from help

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: Drop consistency from pybind
Victor Denisov [Sat, 30 Dec 2017 15:34:18 +0000 (07:34 -0800)]
librbd: Drop consistency from pybind

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: Fix indentation
Victor Denisov [Sat, 30 Dec 2017 15:16:51 +0000 (07:16 -0800)]
librbd: Fix indentation

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: use RBD_GROUP_INVALID_POOL
Victor Denisov [Sat, 30 Dec 2017 04:20:19 +0000 (20:20 -0800)]
librbd: use RBD_GROUP_INVALID_POOL

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: Drop word consistency in librbd
Victor Denisov [Sat, 30 Dec 2017 04:06:12 +0000 (20:06 -0800)]
librbd: Drop word consistency in librbd

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: remove get_snap_id_from_namespace
Victor Denisov [Tue, 19 Dec 2017 04:25:48 +0000 (20:25 -0800)]
librbd: remove get_snap_id_from_namespace

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: fixup Move function declaration
Victor Denisov [Mon, 18 Dec 2017 01:12:10 +0000 (17:12 -0800)]
librbd: fixup Move function declaration

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: rename group state to 'incomplete'
Victor Denisov [Mon, 18 Dec 2017 01:05:07 +0000 (17:05 -0800)]
librbd: rename group state to 'incomplete'

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agocls_rbd: initialize group state
Victor Denisov [Mon, 18 Dec 2017 00:15:07 +0000 (16:15 -0800)]
cls_rbd: initialize group state

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agocls_rbd: Remove h_group_create
Victor Denisov [Tue, 12 Dec 2017 02:50:26 +0000 (18:50 -0800)]
cls_rbd: Remove h_group_create

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agocls_rbd: Address comments
Victor Denisov [Tue, 12 Dec 2017 02:27:21 +0000 (18:27 -0800)]
cls_rbd: Address comments

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agoqa/workunits/rbd: Add tests for consistency groups
Victor Denisov [Sun, 2 Apr 2017 22:03:48 +0000 (15:03 -0700)]
qa/workunits/rbd: Add tests for consistency groups

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agorbd: Add group snapshot command
Victor Denisov [Thu, 29 Sep 2016 03:07:45 +0000 (20:07 -0700)]
rbd: Add group snapshot command

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agolibrbd: Add group snapshot operations
Victor Denisov [Tue, 27 Sep 2016 03:18:55 +0000 (20:18 -0700)]
librbd: Add group snapshot operations

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agocls_rbd: Add group snapshot operations to cls_rbd
Victor Denisov [Wed, 28 Sep 2016 01:01:00 +0000 (18:01 -0700)]
cls_rbd: Add group snapshot operations to cls_rbd

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
7 years agoMerge pull request #19919 from wjwithagen/wip-wjw-rbd-ggate-fix
Mykola Golub [Thu, 11 Jan 2018 15:09:52 +0000 (17:09 +0200)]
Merge pull request #19919 from wjwithagen/wip-wjw-rbd-ggate-fix

rbd-ggate: fix syntax error.

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #19917 from yaozongyou/rgw-remove-unused-cls-user-add-bucket
Sage Weil [Thu, 11 Jan 2018 14:56:52 +0000 (08:56 -0600)]
Merge pull request #19917 from yaozongyou/rgw-remove-unused-cls-user-add-bucket

rgw: remove unused cls_user_add_bucket

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19699 from qrGitHub/wip-rgw-useless-line
Casey Bodley [Thu, 11 Jan 2018 14:32:33 +0000 (09:32 -0500)]
Merge pull request #19699 from qrGitHub/wip-rgw-useless-line

rgw: remove useless lines in RGWDeleteBucket::execute

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #19632 from Rubab-Syed/outreachy_mgr_dashboard
John Spray [Thu, 11 Jan 2018 14:27:18 +0000 (14:27 +0000)]
Merge pull request #19632 from Rubab-Syed/outreachy_mgr_dashboard

mgr/dashboard: Add monitor list

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19898 from tchaikov/wip-cmake-build-with-clang
Kefu Chai [Thu, 11 Jan 2018 12:48:25 +0000 (20:48 +0800)]
Merge pull request #19898 from tchaikov/wip-cmake-build-with-clang

cmake: BuildBoost.cmake: use specified compiler for building boost

Reviewed-By: Casey Bodley <cbodley@redhat.com>
7 years agorgw: drop dump_uri_from_state() which isn't used anymore. 19924/head
Radoslaw Zarzynski [Thu, 11 Jan 2018 12:16:31 +0000 (13:16 +0100)]
rgw: drop dump_uri_from_state() which isn't used anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoclient: fix cap revoke race 19920/head
Yan, Zheng [Thu, 11 Jan 2018 09:50:22 +0000 (17:50 +0800)]
client: fix cap revoke race

If caps are been revoking by the auth MDS, don't consider them as
issued even they are still issued by non-auth MDS. The non-auth
MDS should also be revoking/exporting these caps, the client just
hasn't received the cap revoke/export message.

The race I encountered is: When caps are exporting to new MDS, the
client receives cap import message and cap revoke message from the
new MDS, then receives cap export message from the old MDS. When
the client receives cap revoke message from the new MDS, the revoking
caps are still issued by the old MDS, so the client does nothing.
Later when the cap export message is received, the client removes
the caps issued by the old MDS. (Another way to fix the race is
calling ceph_check_caps() in handle_cap_export())

copid from kernel commit b1530f57

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agoclient: release revoking Fc after invalidate cache
Yan, Zheng [Thu, 11 Jan 2018 08:22:12 +0000 (16:22 +0800)]
client: release revoking Fc after invalidate cache

this issue is likely revealed by commit 7bc1fa04
"client: avoid adding checked inode to the delayed_caps"

Fixes: http://tracker.ceph.com/issues/22652
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agorbd-ggate: fix syntax error. 19919/head
Willem Jan Withagen [Thu, 11 Jan 2018 08:29:09 +0000 (09:29 +0100)]
rbd-ggate: fix syntax error.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agorgw: remove unused cls_user_add_bucket 19917/head
Yao Zongyou [Thu, 11 Jan 2018 07:15:09 +0000 (15:15 +0800)]
rgw: remove unused cls_user_add_bucket

the function
`int cls_user_add_bucket(rgw_raw_obj& obj, list<cls_user_bucket_entry>& entries);`
is unsed and not implemented, so remove it.

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agoMerge pull request #19879 from jcsp/wip-doc-dashboard-standby
Kefu Chai [Thu, 11 Jan 2018 06:27:19 +0000 (14:27 +0800)]
Merge pull request #19879 from jcsp/wip-doc-dashboard-standby

doc: update mgr/dashboard doc about standbys

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: check version of boost in src/boost 19914/head
Kefu Chai [Thu, 11 Jan 2018 04:57:04 +0000 (12:57 +0800)]
cmake: check version of boost in src/boost

after bumping up the required boost version, old copy of boost in
src/boost will not work. so we need to error out early.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoconfig: lower default omap entries recovered at once 19910/head
Josh Durgin [Thu, 11 Jan 2018 02:39:28 +0000 (21:39 -0500)]
config: lower default omap entries recovered at once

For large omap DBs, reading 64k leads to heartbeat timeouts.  There
are numerous callchains leading to this recovery step, many of which
do not have heartbeat handles, so for an easily backported version
just change the default number of entries read. DBs approaching 100GB
may require an even lower setting, but this should be good enough for
most clusters, without sacrificing recovery speed.

Fixes: http://tracker.ceph.com/issues/21897
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #19642 from xiexingguo/wip-pending-new-state
Kefu Chai [Thu, 11 Jan 2018 02:19:13 +0000 (10:19 +0800)]
Merge pull request #19642 from xiexingguo/wip-pending-new-state

osd/OSDMap.h: toss osd out if it has no more pending states

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19901 from vico-research-and-consulting/master
Sage Weil [Wed, 10 Jan 2018 21:38:19 +0000 (15:38 -0600)]
Merge pull request #19901 from vico-research-and-consulting/master

mgr/zabbix: monitoring template improvements

Reviewed-by: Wido den Hollander <wido@widodh.nl>
7 years agoMerge pull request #18833 from yuyuyu101/wip-async-perf
Sage Weil [Wed, 10 Jan 2018 21:37:41 +0000 (15:37 -0600)]
Merge pull request #18833 from yuyuyu101/wip-async-perf

msg/async/AsyncConnection: combine multi alloc into one

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18906 from ovh/bp-buffer-crc-improvements
Yuri Weinstein [Wed, 10 Jan 2018 21:24:24 +0000 (13:24 -0800)]
Merge pull request #18906 from ovh/bp-buffer-crc-improvements

common/buffer: switch crc cache to single pair instead of map

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19547 from tchaikov/wip-22344
Yuri Weinstein [Wed, 10 Jan 2018 21:23:28 +0000 (13:23 -0800)]
Merge pull request #19547 from tchaikov/wip-22344

ceph.in: print all matched commands if arg missing

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #19832 from shinobu-x/min_max_filestore
Yuri Weinstein [Wed, 10 Jan 2018 21:22:40 +0000 (13:22 -0800)]
Merge pull request #19832 from shinobu-x/min_max_filestore

os: FileStore, Using stl min | max, MIN | MAX macros instead

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19874 from myoungwon/wip-fix-22641
Yuri Weinstein [Wed, 10 Jan 2018 21:22:09 +0000 (13:22 -0800)]
Merge pull request #19874 from myoungwon/wip-fix-22641

osd: fix a valgrind issue (conditional jump depends on uninitialized value)

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomgr/zabbix: monitoring template improvements 19901/head
Marc Schoechlin [Wed, 10 Jan 2018 20:39:32 +0000 (21:39 +0100)]
mgr/zabbix: monitoring template improvements

The changes need some review because i am currently not able to test this in a environment.
- added a host screen which displays all graphs in a convenient way
- replaced AVG by MAX Function in Graphs where maximum values are of
  high interest from operational view
- changed graph type to stacked where combined behavior is of interest
  (i.e. bandwidth and storage consumption)

Signed-off-by: Marc Schoechlin <ms@256bit.org>
7 years agoinclude: Remove fallback usings from encoding.h 19648/head
Adam C. Emerson [Tue, 26 Dec 2017 23:21:15 +0000 (18:21 -0500)]
include: Remove fallback usings from encoding.h

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotest: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 22:47:58 +0000 (17:47 -0500)]
test: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotools: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 21:44:14 +0000 (16:44 -0500)]
tools: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 21:19:08 +0000 (16:19 -0500)]
rgw: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorbd_replay: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 19:45:48 +0000 (14:45 -0500)]
rbd_replay: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoosdc: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 08:39:34 +0000 (03:39 -0500)]
osdc: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoosd: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 08:29:25 +0000 (03:29 -0500)]
osd: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoos: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 07:41:28 +0000 (02:41 -0500)]
os: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoobjclass: Use unqualified encode/decode
Adam C. Emerson [Tue, 26 Dec 2017 06:51:12 +0000 (01:51 -0500)]
objclass: Use unqualified encode/decode

This is a portion of Part 1 of the namespace project: using ADL
properly in encode and decode so we can use namespaces easily in Ceph.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>