Commit Graph

82180 Commits

Author SHA1 Message Date
David Zafman
e1075f1073 osd: Rewrite _update_calc_stats() to make it cleaner and more accurate
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-14 10:38:17 -08:00
David Zafman
9a66a6f517 osd: cleanup: Remove unused const vars
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-14 10:37:22 -08:00
David Zafman
01ac714aa3 osd: cleanup: Fix log message
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-01-14 10:37:22 -08:00
Jason Dillaman
070b87aa58 Merge pull request #12431 from VictorDenisov/snapshot_rename
rbd: group snapshot rename

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-01-13 20:48:39 -05:00
Victor Denisov
838cae45af rbd: Add group snapshot rename commands
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-13 14:00:31 -05:00
Victor Denisov
c4f2eb4adb librbd: Add group snap rename method
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-13 14:00:30 -05:00
Sage Weil
7907bc00a9
Merge pull request #19913 from adamemerson/wip-minimax-rados
rados: Prefer templates to macros

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-13 09:56:28 -06:00
Sage Weil
755ea1c054
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>
2018-01-13 09:56:08 -06:00
Sage Weil
f199490bbd
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>
2018-01-13 09:55:12 -06:00
Mykola Golub
79fbe60d5e
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>
2018-01-13 04:13:49 +02:00
Yuri Weinstein
a7b97806fc
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>
2018-01-12 14:47:30 -08:00
Yuri Weinstein
2b99d31d5e
Merge pull request #19910 from jdurgin/wip-21897
config: lower default omap entries recovered at once

Reviewed-by: Sage Weil <sage@redhat.com>
2018-01-12 14:46:26 -08:00
Patrick Donnelly
1f530c0fa8
Merge PR #19894 into master
* refs/pull/19894/head:
	cmake: link against ceph-common instead of common

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-01-12 14:37:39 -08:00
Patrick Donnelly
653bfcc567
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>
2018-01-12 14:37:32 -08:00
Patrick Donnelly
e592c0210f
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>
2018-01-12 14:37:25 -08:00
Adam C. Emerson
28d35abf89 rados: Switch MIN/MAX for std::min/max and use intarith templates
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 14:32:52 -05:00
Mykola Golub
443a7f5f7c
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>
2018-01-12 21:31:54 +02:00
Casey Bodley
1fcc8e9b09
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>
2018-01-12 13:17:48 -05:00
Jason Dillaman
619b0c0244 rbd: adjusted "lock list" JSON and XML formatted output
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 11:31:07 -05:00
Jason Dillaman
ffdb65374c librbd: operations should return -EROFS if disabled
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 10:46:33 -05:00
Jason Dillaman
fef89753d8 librbd: retrieve the op features on image refresh
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 08:14:34 -05:00
Jason Dillaman
209f6fc5a4 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>
2018-01-12 08:12:58 -05:00
Adam C. Emerson
c06b97b3d7 include: Add templates along side macros in intarith
The macros can be removed later.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2018-01-12 01:45:53 -05:00
Bingyin Zhang
c378fe6d48 rgw: drop redundant RGW_OP_STAT_OBJ check
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
2018-01-12 14:26:30 +08:00
Brad Hubbard
774b3735f0 doc/man: Add '--block' option for ceph command
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-01-12 12:47:36 +10:00
Haomai Wang
03fe7d8cc8
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>
2018-01-12 10:38:30 +08:00
Jason Dillaman
4ffd5b7907 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>
2018-01-11 21:30:08 -05:00
Patrick Donnelly
4042bec19d
mon: revert mds metadata argument name change
Partial revert of PR #18512: d1877b68d9

Fixes: http://tracker.ceph.com/issues/22527

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-01-11 14:47:38 -08:00
Sage Weil
4da29a07cf 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
2018-01-11 16:14:44 -06:00
Sage Weil
c6d6676422
Merge pull request #19099 from ifed01/wip-ifed-faster-pglog
osd: eliminate ineffective container operations

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-01-11 15:50:52 -06:00
Sage Weil
c1ec2752ee
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>
2018-01-11 15:50:12 -06:00
Sage Weil
47c925a765
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>
2018-01-11 15:49:31 -06:00
Sage Weil
c4a7881876
Merge pull request #19881 from liewegas/wip-kill-crush-location
ceph-crush-location: remove

Reviewed-by: Wido den Hollander <wido@widodh.nl>
2018-01-11 15:48:29 -06:00
Jason Dillaman
ac3855e9cf Merge pull request #11544 from VictorDenisov/consistency_groups_snapshots
librbd: group snapshots

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 15:29:27 -05:00
Jason Dillaman
bbbfd27be9 rbd-mirror: fix valgrind false positive from new boost release
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 15:27:47 -05:00
Casey Bodley
ce8ed30925
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>
2018-01-11 12:05:31 -05:00
Jason Dillaman
0088640173 librbd: ensure enums are prefixed w/ RBD_ to avoid collisions
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 11:58:54 -05:00
Jason Dillaman
854b2bbffb librbd: fix false-positive compiler warning
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:52:26 -05:00
Jason Dillaman
072004ad06 test/pybind: corrected failures due to test execution ordering
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
edc3bd7388 librbd: group snapshots should be linked to image pool (not data pool)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
f61cc5741f rbd: restore snap list by image id functionality
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
725722bb5e cls/rbd: combined group_snap_add and group_snap_update
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
7f29a98db5 librbd: fix ImageCtx::get_snap_id method
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
8d68fa2a8e librbd: fixed memory leak and use-after-free in group snap API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
31a382f1ec rbd: utilize '<name>@<snap>' format when creating/removing group snaps
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
75652b057d pybind/rbd: added snap_get_group_namespace API method
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
2f838104d8 librbd: added missing C API version for rbd_snap_get_group_namespace
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
d761985269 librbd: moved new snapshot API methods to separate class
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Jason Dillaman
2f3f6028d1 rbd: wrap object section around group snap list formatter
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Victor Denisov
18ea889807 rbd: translate pool id into name
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-11 10:38:23 -05:00