]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoos/bluestore.cc: no need to fsync when failed to write label 20092/head
tangwenjun [Wed, 24 Jan 2018 07:23:42 +0000 (15:23 +0800)]
os/bluestore.cc: no need to fsync when failed to write label

Signed-off-by: tangwenjun <tang.wenjun3@zte.com.cn>
7 years agoMerge PR #18424 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:32 +0000 (16:56 -0800)]
Merge PR #18424 into master

* refs/pull/18424/head:
mds: create snaprealm for quota enabled inode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19572 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:27 +0000 (16:56 -0800)]
Merge PR #19572 into master

* refs/pull/19572/head:
client: add log when we got unexpected flush ack

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19672 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:22 +0000 (16:56 -0800)]
Merge PR #19672 into master

* refs/pull/19672/head:
ceph-fuse: ::rmdir() uses a deleted memory structure of dentry leads a core

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19693 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:17 +0000 (16:56 -0800)]
Merge PR #19693 into master

* refs/pull/19693/head:
mds: use session.get_client()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19696 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:13 +0000 (16:56 -0800)]
Merge PR #19696 into master

* refs/pull/19696/head:
client: avoid adding checked inode to the delayed_caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19702 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:08 +0000 (16:56 -0800)]
Merge PR #19702 into master

* refs/pull/19702/head:
client: avoid remove same cap twice

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19703 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:56:03 +0000 (16:56 -0800)]
Merge PR #19703 into master

* refs/pull/19703/head:
client: make mark_caps_clean and mark_caps_dirty as member function to Inode
client: fix dirty caps might never be flushed

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #19723 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:55:59 +0000 (16:55 -0800)]
Merge PR #19723 into master

* refs/pull/19723/head:
mds: clean up log's function name for CDir.cc and Beacon.cc
mds: clean up log's function name for CDentry.cc
mds: clean up log's function name for CInode.cc

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19730 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:55:54 +0000 (16:55 -0800)]
Merge PR #19730 into master

* refs/pull/19730/head:
mds: Using stl min | max, MIN | MAX macros instead

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19762 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:55:50 +0000 (16:55 -0800)]
Merge PR #19762 into master

* refs/pull/19762/head:
mds: fix dump last_sent

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #19767 into master
Patrick Donnelly [Wed, 10 Jan 2018 00:55:45 +0000 (16:55 -0800)]
Merge PR #19767 into master

* refs/pull/19767/head:
client: enhance log for _closed_mds_session

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18788 from amitkumar50/cov-mon-1
Yuri Weinstein [Tue, 9 Jan 2018 17:30:43 +0000 (09:30 -0800)]
Merge pull request #18788 from amitkumar50/cov-mon-1

mon: NULL check of logger before use

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19054 from cbodley/wip-librados-asio
Yuri Weinstein [Tue, 9 Jan 2018 17:30:22 +0000 (09:30 -0800)]
Merge pull request #19054 from cbodley/wip-librados-asio

librados: add async interfaces for use with Networking TS

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #19852 from yaozongyou/rgw-remove-unused-function
Orit Wasserman [Tue, 9 Jan 2018 17:16:23 +0000 (19:16 +0200)]
Merge pull request #19852 from yaozongyou/rgw-remove-unused-function

rgw: remove unused function get_system_obj_attrs
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #16383 from mikulely/1-ban-change-swift-obj-placement
Yuri Weinstein [Tue, 9 Jan 2018 17:11:56 +0000 (09:11 -0800)]
Merge pull request #16383 from mikulely/1-ban-change-swift-obj-placement

rgw: drop the unnecessary handling of Swift's X-Storage-Policy on objects

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #17683 from shashalu/fix-lc-xml
Yuri Weinstein [Tue, 9 Jan 2018 17:10:29 +0000 (09:10 -0800)]
Merge pull request #17683 from shashalu/fix-lc-xml

rgw: RGWPutLC return ERR_MALFORMED_XML  when missing <Rule> tag in lifecycle.xml

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17873 from amitkumar50/cov-rgw-8
Yuri Weinstein [Tue, 9 Jan 2018 17:05:32 +0000 (09:05 -0800)]
Merge pull request #17873 from amitkumar50/cov-rgw-8

rgw: Returning when dst_ioctx.operate() returns error

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18861 from gaosibei/wip-fix-null-pointer
Yuri Weinstein [Tue, 9 Jan 2018 17:04:57 +0000 (09:04 -0800)]
Merge pull request #18861 from gaosibei/wip-fix-null-pointer

rgw: fix null pointer crush

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #19061 from Leeshine/wip-rgw-bug-21583
Yuri Weinstein [Tue, 9 Jan 2018 17:04:22 +0000 (09:04 -0800)]
Merge pull request #19061 from Leeshine/wip-rgw-bug-21583

rgw: fix the bug of radowgw-admin zonegroup set requires realm

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #19854 from fangyuxiangGL/doc-sync-err
Casey Bodley [Tue, 9 Jan 2018 16:15:15 +0000 (11:15 -0500)]
Merge pull request #19854 from fangyuxiangGL/doc-sync-err

rgw: add radosgw-admin sync error trim to trim sync error log

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19809 from liu-chunmei/fix_dpdk_mzname_setting_issue
Kefu Chai [Tue, 9 Jan 2018 15:16:43 +0000 (23:16 +0800)]
Merge pull request #19809 from liu-chunmei/fix_dpdk_mzname_setting_issue

osd: fix dpdk memzon mz_name setting issue

Reviewed-By: Kefu Chai <kchai@redhat.com>
7 years agolibrados: add async interfaces for use with Networking TS 19054/head
Casey Bodley [Mon, 13 Feb 2017 19:55:06 +0000 (14:55 -0500)]
librados: add async interfaces for use with Networking TS

Defines asynchronous librados operations that satisfy all of the
"Requirements on asynchronous operations" imposed by the C++ Networking
TS [1] in section 13.2.7. These operations are implemented in terms of
boost::asio, but the interfaces themselves are free of boost types -
this makes the transition to std::net trivial when it's available.

These interfaces conform to the Extensible Asynchronous Model [2] that
originated in boost::asio. This model allows the last 'handler' argument
to either be a callback that gets the result, a coroutine yield_context
that will suspend until completion, or a 'use_future' tag to request the
result in a std::future (see the unit tests for examples of each). The
'Extensible' part also enables further integration with new frameworks.

For now, only async_read(), async_write(), and the read/write variants
of async_operate() are provided.

[1] Working Draft, C++ Extensions for Networking
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4711.pdf
[2] "Library Foundations for Asynchronous Operations"
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3896.pdf

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19616 from ifed01/wip-ifed-revert-extents
Sage Weil [Tue, 9 Jan 2018 14:44:52 +0000 (08:44 -0600)]
Merge pull request #19616 from ifed01/wip-ifed-revert-extents

osd: get rid off extent map in object_info

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19764 from ifed01/wip-ifed-storetest-cempty
Sage Weil [Tue, 9 Jan 2018 14:44:28 +0000 (08:44 -0600)]
Merge pull request #19764 from ifed01/wip-ifed-storetest-cempty

objectstore/store_test: fix lack of flush prior to collection_empty()…

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19841 from rzarzynski/wip-bs-dump-onode-by-ref
Sage Weil [Tue, 9 Jan 2018 14:44:14 +0000 (08:44 -0600)]
Merge pull request #19841 from rzarzynski/wip-bs-dump-onode-by-ref

os/bluestore: _dump_onode() don't prolongate Onode anymore.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agorgw: add radosgw-admin sync error trim to trim sync error log 19854/head
fang yuxiang [Tue, 9 Jan 2018 03:03:52 +0000 (11:03 +0800)]
rgw: add radosgw-admin sync error trim to trim sync error log

Signed-off-by: fang yuxiang fang.yuxiang@eisoo.com
7 years agoMerge PR #19791 into master
Patrick Donnelly [Tue, 9 Jan 2018 04:45:32 +0000 (20:45 -0800)]
Merge PR #19791 into master

* refs/pull/19791/head:
doc: misc fixes
doc: fix heading

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agodoc: misc fixes 19791/head
Jos Collin [Fri, 5 Jan 2018 06:21:00 +0000 (11:51 +0530)]
doc: misc fixes

misc fixes for best-practices.

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #19662 from tchaikov/wip-denc-cxx-17
Kefu Chai [Tue, 9 Jan 2018 03:34:15 +0000 (11:34 +0800)]
Merge pull request #19662 from tchaikov/wip-denc-cxx-17

denc: use constexpr-if to replace some SFINAE impls

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: remove unused function get_system_obj_attrs 19852/head
Yao Zongyou [Tue, 9 Jan 2018 03:31:54 +0000 (11:31 +0800)]
rgw: remove unused function get_system_obj_attrs

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agodenc: use constexpr-if to replace some SFINAE impls 19662/head
Kefu Chai [Sat, 23 Dec 2017 08:56:53 +0000 (16:56 +0800)]
denc: use constexpr-if to replace some SFINAE impls

more readable this way IMO.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #19807 into master
Patrick Donnelly [Mon, 8 Jan 2018 22:27:36 +0000 (14:27 -0800)]
Merge PR #19807 into master

* refs/pull/19807/head:
mds: warn for mds_cache_memory_limit bug in doc

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agomds: warn for mds_cache_memory_limit bug in doc 19807/head
Patrick Donnelly [Fri, 5 Jan 2018 19:23:23 +0000 (11:23 -0800)]
mds: warn for mds_cache_memory_limit bug in doc

Fixes: http://tracker.ceph.com/issues/22599
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19657 from adamemerson/wip-hypermodern
Adam C. Emerson [Mon, 8 Jan 2018 21:31:57 +0000 (16:31 -0500)]
Merge pull request #19657 from adamemerson/wip-hypermodern

The Day Has Come!

Update language standard version to C++17 and remove backported standard library features.

Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19823 from trociny/wip-ggate-list-xml
Jason Dillaman [Mon, 8 Jan 2018 21:18:41 +0000 (16:18 -0500)]
Merge pull request #19823 from trociny/wip-ggate-list-xml

rbd-ggate: make list command produce valid xml format output

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19846 from fangyuxiangGL/compress-info
Casey Bodley [Mon, 8 Jan 2018 20:54:41 +0000 (15:54 -0500)]
Merge pull request #19846 from fangyuxiangGL/compress-info

rgw: make radosgw object stat RGW_ATTR_COMPRESSION dump readable

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19732 from shinobu-x/using_find_primarylogpg
Yuri Weinstein [Mon, 8 Jan 2018 20:51:11 +0000 (12:51 -0800)]
Merge pull request #19732 from shinobu-x/using_find_primarylogpg

osd: Making use of find to reduce computational complexity

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19765 from liewegas/wip-force-backfill-cleanups
Yuri Weinstein [Mon, 8 Jan 2018 20:50:18 +0000 (12:50 -0800)]
Merge pull request #19765 from liewegas/wip-force-backfill-cleanups

qa: tolerate failure to force backfill

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19786 from dillaman/wip-osd-class-cap
Yuri Weinstein [Mon, 8 Jan 2018 20:49:51 +0000 (12:49 -0800)]
Merge pull request #19786 from dillaman/wip-osd-class-cap

osd: support class method whitelisting within caps

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years ago{common,osd,mds,rbd}: Remove unused captures 19657/head
Adam C. Emerson [Sat, 23 Dec 2017 00:36:09 +0000 (19:36 -0500)]
{common,osd,mds,rbd}: Remove unused captures

If we aren't referencing a variable, don't capture it. (This makes the
lambdas smaller, too, modulo Sufficiently Smart Compiler.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agodout: Remove VLA sanity check
Adam C. Emerson [Fri, 22 Dec 2017 23:44:57 +0000 (18:44 -0500)]
dout: Remove VLA sanity check

This doesn't seem to be able to work for C++17 under both GCC and
Clang. Maybe there's a better way to do it. I might try routing
that argument through a constexpr function in the macro later.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agocommon: Remove backport_std.h entirely
Adam C. Emerson [Fri, 22 Dec 2017 23:35:39 +0000 (18:35 -0500)]
common: Remove backport_std.h entirely

And use the experimental ostream joiner provided with the library.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agocommon: Remove backported C++17 functions
Adam C. Emerson [Fri, 22 Dec 2017 22:30:08 +0000 (17:30 -0500)]
common: Remove backported C++17 functions

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agocommon: Remove backported typedefs
Adam C. Emerson [Fri, 22 Dec 2017 21:41:58 +0000 (16:41 -0500)]
common: Remove backported typedefs

Since they're no longer needed.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agobuild: Bump language to C++17
Adam C. Emerson [Fri, 22 Dec 2017 20:04:17 +0000 (15:04 -0500)]
build: Bump language to C++17

Fix up all of the fallout from that.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoosd: fix dpdk memzon mz_name setting issue 19809/head
chunmei Liu [Fri, 5 Jan 2018 20:55:15 +0000 (12:55 -0800)]
osd: fix dpdk memzon mz_name setting issue

Signed-off-by: chunmei Liu <chunmei.liu@intel.com>
7 years agoobjectstore/store_test: fix lack of flush prior to collection_empty() call 19764/head
Igor Fedotov [Wed, 3 Jan 2018 13:48:51 +0000 (16:48 +0300)]
objectstore/store_test: fix lack of flush prior to collection_empty() call

Fixes: http://tracker.ceph.com/issues/22409
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoqa/standalone/scrub/osd-scrub-repair.sh: remove extents flag from object_info_t 19616/head
Igor Fedotov [Thu, 21 Dec 2017 13:58:03 +0000 (16:58 +0300)]
qa/standalone/scrub/osd-scrub-repair.sh: remove extents flag from object_info_t

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoosd: get rid off extent map in object_info
Igor Fedotov [Tue, 12 Dec 2017 19:50:17 +0000 (22:50 +0300)]
osd: get rid off extent map in object_info

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #19475 from ZVampirEM77/wip-em-copyobj-ret
Yuri Weinstein [Mon, 8 Jan 2018 16:57:53 +0000 (08:57 -0800)]
Merge pull request #19475 from ZVampirEM77/wip-em-copyobj-ret

rgw: add xml output header in RGWCopyObj_ObjStore_S3 response msg

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: scienceluo <luo.kexue@zte.com.cn>
7 years agoMerge pull request #19824 from qrGitHub/wip-rgw-useless-line3
Matt Benjamin [Mon, 8 Jan 2018 16:55:23 +0000 (11:55 -0500)]
Merge pull request #19824 from qrGitHub/wip-rgw-useless-line3

rgw: drop useless type conversion

7 years agoMerge pull request #19570 from yaozongyou/rgw-remove-unused-variable
Yuri Weinstein [Mon, 8 Jan 2018 16:55:10 +0000 (08:55 -0800)]
Merge pull request #19570 from yaozongyou/rgw-remove-unused-variable

cls/rgw: remove unused variable bl

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: make radosgw object stat RGW_ATTR_COMPRESSION dump readable 19846/head
fang yuxiang [Mon, 8 Jan 2018 16:54:55 +0000 (00:54 +0800)]
rgw: make radosgw object stat RGW_ATTR_COMPRESSION dump readable

Signed-off-by: fang yuxiang fang.yuxiang@eisoo.com
7 years agoMerge pull request #19575 from Liuchang0812/rgw-tier-type-check
Yuri Weinstein [Mon, 8 Jan 2018 16:54:23 +0000 (08:54 -0800)]
Merge pull request #19575 from Liuchang0812/rgw-tier-type-check

rgw: proper error message when tier_type does not exist

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #19582 from qrGitHub/wip-rgw-redundant-readingAttrs
Yuri Weinstein [Mon, 8 Jan 2018 16:53:19 +0000 (08:53 -0800)]
Merge pull request #19582 from qrGitHub/wip-rgw-redundant-readingAttrs

rgw: remove get_system_obj_attrs in function RGWDeleteLC::execute and RGWDeleteCORS::execute

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19676 from qrGitHub/wip-rgw-redundant-compare
Yuri Weinstein [Mon, 8 Jan 2018 16:52:25 +0000 (08:52 -0800)]
Merge pull request #19676 from qrGitHub/wip-rgw-redundant-compare

rgw: remove redundant signature compare in LocalEngine::authenticate

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #19678 from yaozongyou/rgw-civetweb-status-code
Yuri Weinstein [Mon, 8 Jan 2018 16:51:35 +0000 (08:51 -0800)]
Merge pull request #19678 from yaozongyou/rgw-civetweb-status-code

rgw: log the right http status code in civetweb frontend's access log

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #19687 from qrGitHub/wip-rgw-bucketPolicy-invalidEffect
Yuri Weinstein [Mon, 8 Jan 2018 16:49:51 +0000 (08:49 -0800)]
Merge pull request #19687 from qrGitHub/wip-rgw-bucketPolicy-invalidEffect

rgw: put bucket policy panics RGW process

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #19700 from qrGitHub/wip-rgw-optimize-function
Yuri Weinstein [Mon, 8 Jan 2018 16:49:18 +0000 (08:49 -0800)]
Merge pull request #19700 from qrGitHub/wip-rgw-optimize-function

rgw: optimize function RGWHandler::do_init_permissions

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #19710 from qrGitHub/wip-rgw-optimize-function2
Yuri Weinstein [Mon, 8 Jan 2018 16:46:54 +0000 (08:46 -0800)]
Merge pull request #19710 from qrGitHub/wip-rgw-optimize-function2

rgw: optimize function abort_bucket_multiparts

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #19772 from fangyuxiangGL/quota
Yuri Weinstein [Mon, 8 Jan 2018 16:46:22 +0000 (08:46 -0800)]
Merge pull request #19772 from fangyuxiangGL/quota

rgw: update quota is inconsistent at add/del object with compression

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19773 from chuang-he/fix_create_form_headers
Yuri Weinstein [Mon, 8 Jan 2018 16:46:02 +0000 (08:46 -0800)]
Merge pull request #19773 from chuang-he/fix_create_form_headers

rgw: fix the return type is wrong

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19431 from wido/mgr-pg-status
John Spray [Mon, 8 Jan 2018 16:13:56 +0000 (16:13 +0000)]
Merge pull request #19431 from wido/mgr-pg-status

mgr/dashboard: Fix PG status coloring

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #19294 from myoungwon/wip-manifest-ref-flush
Sage Weil [Mon, 8 Jan 2018 14:55:47 +0000 (08:55 -0600)]
Merge pull request #19294 from myoungwon/wip-manifest-ref-flush

osd: flush operations for chunked objects

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: _dump_onode() don't prolongate Onode anymore. 19841/head
Radoslaw Zarzynski [Mon, 8 Jan 2018 10:54:38 +0000 (11:54 +0100)]
os/bluestore: _dump_onode() don't prolongate Onode anymore.

Before the patch `BlueStore::_dump_onode()` takes `OnodeRef`
by value effectively extending the object's life time.

This is unnecessary and can be costly as `BlueStore::OnodeRef`
is ref-counted with `boost::intrusive_ptr`. Moreover, callers
are supposed to already hold a reference, so the optimization
for `count == 0` case stays without effect of inhibiting call
to `BlueStore::Onode::put()` and atomic integer increment.

    ```
    0000000000907d70 <BlueStore::_do_read(BlueStore::Collection*, boost::intrusive_ptr<BlueStore::Onode>, unsigned long, unsigned long, ceph::buffer::list&, unsigned int)>:
      907d70:       41 57                   push   %r15
      907d72:       41 56                   push   %r14

    ...

      907f1f:       48 8b 44 24 78          mov    0x78(%rsp),%rax
      907f24:       48 8b 00                mov    (%rax),%rax
      907f27:       48 85 c0                test   %rax,%rax
      907f2a:       48 89 84 24 a0 01 00    mov    %rax,0x1a0(%rsp)
      907f31:       00
      907f32:       74 04                   je     907f38 <BlueStore::_do_read(BlueStore::Collection*, boost::intrusive_ptr<BlueStore::Onode>, unsigned long, unsigned long, ceph::buffer::list&, unsigned int)+0x1c8>
      907f34:       f0 83 00 01             lock addl $0x1,(%rax)
      907f38:       48 8d 84 24 a0 01 00    lea    0x1a0(%rsp),%rax
      907f3f:       00
      907f40:       ba 1e 00 00 00          mov    $0x1e,%edx
      907f45:       4c 89 ff                mov    %r15,%rdi
      907f48:       48 89 c6                mov    %rax,%rsi
      907f4b:       48 89 44 24 20          mov    %rax,0x20(%rsp)
      907f50:       e8 9b bc fb ff          callq  8c3bf0 <BlueStore::_dump_onode(boost::intrusive_ptr<BlueStore::Onode>, int)>
      907f55:       48 8b bc 24 a0 01 00    mov    0x1a0(%rsp),%rdi
      907f5c:       00
      907f5d:       48 85 ff                test   %rdi,%rdi
      907f60:       74 05                   je     907f67 <BlueStore::_do_read(BlueStore::Collection*, boost::intrusive_ptr<BlueStore::Onode>, unsigned long, unsigned long, ceph::buffer::list&, unsigned int)+0x1f7>
      907f62:       e8 99 14 02 00          callq  929400 <BlueStore::Onode::put()>
      907f67:       48 8d 84 24 d0 00 00    lea    0xd0(%rsp),%rax
    ```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #19428 from tchaikov/wip-erasure-cleanup
Kefu Chai [Mon, 8 Jan 2018 11:51:10 +0000 (19:51 +0800)]
Merge pull request #19428 from tchaikov/wip-erasure-cleanup

erasure-code: use std::count() instead

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #19777 from tchaikov/wip-rpm-fix-upgrade
Kefu Chai [Mon, 8 Jan 2018 11:07:48 +0000 (19:07 +0800)]
Merge pull request #19777 from tchaikov/wip-rpm-fix-upgrade

rpm: adjust ceph-{osdomap,kvstore,monstore}-tool feature move

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-By: Nathan Cutler <ncutler@suse.com>
7 years agorgw: drop useless type conversion 19824/head
Bingyin Zhang [Mon, 8 Jan 2018 01:02:29 +0000 (09:02 +0800)]
rgw: drop useless type conversion

* variable 'max_buckets' is already 'uint64_t', so the type conversion is useless.

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
7 years agoMerge pull request #18827 from TaewoongKim/anticipation_timeout
Eric Ivancich [Sun, 7 Jan 2018 15:49:18 +0000 (10:49 -0500)]
Merge pull request #18827 from TaewoongKim/anticipation_timeout

osd: Make dmclock's anticipation timeout be configurable

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: myoungwon oh <omwmw@sk.com>
7 years agoMerge pull request #19704 from trociny/wip-nbd-format
Jason Dillaman [Sun, 7 Jan 2018 14:04:35 +0000 (09:04 -0500)]
Merge pull request #19704 from trociny/wip-nbd-format

rbd-nbd: output format support for list-mapped command

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19722 from Songweibin/wip-rbd-import
Jason Dillaman [Sun, 7 Jan 2018 13:56:41 +0000 (08:56 -0500)]
Merge pull request #19722 from Songweibin/wip-rbd-import

rbd: replace positional_path parameter with arg_index in get_path()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoosd: fix ObjectContextRef leak 19294/head
myoungwon oh [Fri, 5 Jan 2018 07:28:57 +0000 (16:28 +0900)]
osd: fix ObjectContextRef leak

To avoid ObjectContextRef leak, drop ObjectContextRef
before send a flush request to low tier

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoosd: fix updating wrong object size
myoungwon oh [Fri, 22 Dec 2017 11:05:34 +0000 (20:05 +0900)]
osd: fix updating wrong object size

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoosd: use stop_block() if the object is blocked
myoungwon oh [Thu, 7 Dec 2017 07:32:32 +0000 (16:32 +0900)]
osd: use stop_block() if the object is blocked

This commit prevents double free in finish_flush()
(stop_block() -> cancel_flush())

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agosrc/test: remove version check and add data alignment for chunk_read test
myoungwon oh [Tue, 5 Dec 2017 06:54:03 +0000 (15:54 +0900)]
src/test: remove version check and add data alignment for chunk_read test

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agosrc/test: add chunked object unit test
myoungwon oh [Tue, 5 Dec 2017 06:52:49 +0000 (15:52 +0900)]
src/test: add chunked object unit test

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoosd: add ordered flag if the object is flushing
myoungwon oh [Tue, 5 Dec 2017 07:12:56 +0000 (16:12 +0900)]
osd: add ordered flag if the object is flushing

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoosd: add flush() for the chunked object.
myoungwon oh [Tue, 20 Jun 2017 11:38:18 +0000 (20:38 +0900)]
osd: add flush() for the chunked object.

If all chunks are dirty, the cheunked object will be flushed

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoosd: set dirty flag if chunks are overwritten
myoungwon oh [Sat, 2 Dec 2017 12:41:57 +0000 (21:41 +0900)]
osd: set dirty flag if chunks are overwritten

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agorbd-ggate: make list command produce valid xml format output 19823/head
Mykola Golub [Wed, 3 Jan 2018 16:41:01 +0000 (18:41 +0200)]
rbd-ggate: make list command produce valid xml format output

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #17010 from jgibson/bugfix-rgw-s3-policy-ip-address-condition
Adam C. Emerson [Sun, 7 Jan 2018 07:07:55 +0000 (02:07 -0500)]
Merge pull request #17010 from jgibson/bugfix-rgw-s3-policy-ip-address-condition

rgw: S3 Bucket Policy Conditions IpAddress and NotIpAddress do not work

Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
Reviewed-By: Matt Benjamin <mbenjamin@redhat.com>
7 years agoMerge pull request #19354 from shinobu-x/osd_atomic
Yuri Weinstein [Sat, 6 Jan 2018 17:29:52 +0000 (09:29 -0800)]
Merge pull request #19354 from shinobu-x/osd_atomic

osd: Use specializations, typedefs instead

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #19549 from bi-shun/brotli-compressor
Yuri Weinstein [Sat, 6 Jan 2018 17:28:58 +0000 (09:28 -0800)]
Merge pull request #19549 from bi-shun/brotli-compressor

compressor: Add Brotli Compressor

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19564 from kungf/list_bucket_osd
Yuri Weinstein [Sat, 6 Jan 2018 17:28:22 +0000 (09:28 -0800)]
Merge pull request #19564 from kungf/list_bucket_osd

mon/OSDMonitor: list osd tree in named bucket

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #19816 from tchaikov/wip-22596
Sage Weil [Sat, 6 Jan 2018 16:25:12 +0000 (10:25 -0600)]
Merge pull request #19816 from tchaikov/wip-22596

qa/standalone: remove osd-map-max-advance related tests

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agorpm: adjust ceph-{osdomap,kvstore,monstore}-tool feature move 19777/head
Kefu Chai [Thu, 4 Jan 2018 08:08:25 +0000 (16:08 +0800)]
rpm: adjust ceph-{osdomap,kvstore,monstore}-tool feature move

this is the rpm's counterpart of debian/control changes related to the
ceph-{osdomap,kvstore,monstore}-tool feature move. see #19328 and #19356.
the commit introducing this move is 6dba25e. and

$ git describe 6dba25e
v12.2.2-8-g6dba25e39d

so the first release that have this change is 12.2.2-8. in other words,
ceph-{base,osd,mon} >= 12.2.2.8 cannot co-exist with ceph-test < 12.2.2-8
in the same system. so we let ceph-test Requires ceph-common with the
same version. and since ceph-{osd,mon} Requires ceph-base with the same
version, and ceph-base Requires ceph-common with the same version, so by
tiering ceph-test with ceph-common with the same version, we enforce
this restriction.

Fixes: http://tracker.ceph.com/issues/22558
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/standalone: remove osd-map-max-advance related tests 19816/head
Kefu Chai [Sat, 6 Jan 2018 11:38:57 +0000 (19:38 +0800)]
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>
7 years agoMerge pull request #19808 from cbodley/wip-boost-1.66
Kefu Chai [Sat, 6 Jan 2018 03:35:44 +0000 (11:35 +0800)]
Merge pull request #19808 from cbodley/wip-boost-1.66

cmake: update minimum boost version to 1.66

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomds: clean up log's function name for CDir.cc and Beacon.cc 19723/head
dongdong tao [Sat, 30 Dec 2017 13:19:49 +0000 (21:19 +0800)]
mds: clean up log's function name for CDir.cc and Beacon.cc

Signed-off-by: dongdong tao <tdd21151186@gmail.com>
7 years agomds: clean up log's function name for CDentry.cc
dongdong tao [Sat, 30 Dec 2017 13:01:47 +0000 (21:01 +0800)]
mds: clean up log's function name for CDentry.cc

Signed-off-by: dongdong tao <tdd21151186@gmail.com>
7 years agomds: clean up log's function name for CInode.cc
dongdong tao [Sat, 30 Dec 2017 12:23:26 +0000 (20:23 +0800)]
mds: clean up log's function name for CInode.cc

Signed-off-by: dongdong tao <tdd21151186@gmail.com>
7 years agoMerge pull request #19358 from taoCH/wip-librgw-multitenancy
Matt Benjamin [Fri, 5 Jan 2018 20:49:14 +0000 (15:49 -0500)]
Merge pull request #19358 from taoCH/wip-librgw-multitenancy

librgw: export multitenancy support

7 years agocmake: add WITH_BOOST_CONTEXT option 19808/head
Casey Bodley [Sun, 26 Nov 2017 20:46:26 +0000 (15:46 -0500)]
cmake: add WITH_BOOST_CONTEXT option

adds a more specific option for this boost::context dependency, which was
previously only used by the radosgw beast frontend. see
http://tracker.ceph.com/issues/20048 for more background

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocmake: remove Beast submodule and include path
Casey Bodley [Tue, 19 Dec 2017 03:23:53 +0000 (22:23 -0500)]
cmake: remove Beast submodule and include path

the beast library is included in boost 1.66

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: update beast frontend for boost 1.66
Casey Bodley [Tue, 5 Dec 2017 19:43:06 +0000 (14:43 -0500)]
rgw: update beast frontend for boost 1.66

Fixes: http://tracker.ceph.com/issues/22600
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19806 from cbodley/wip-common-escape
Casey Bodley [Fri, 5 Jan 2018 19:29:23 +0000 (14:29 -0500)]
Merge pull request #19806 from cbodley/wip-common-escape

common: add streaming interfaces for json/xml escaping

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agocmake: update minimum boost version to 1.66
Casey Bodley [Mon, 18 Dec 2017 18:03:35 +0000 (13:03 -0500)]
cmake: update minimum boost version to 1.66

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: add streaming interfaces for json/xml escaping 19806/head
Casey Bodley [Fri, 5 Jan 2018 17:36:18 +0000 (12:36 -0500)]
common: add streaming interfaces for json/xml escaping

adds stream output operators that escape json/xml strings without having
to allocate a separate output buffer

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest: EscapeJson.Utf8 uses json instead of xml
Casey Bodley [Thu, 4 Jan 2018 22:35:34 +0000 (17:35 -0500)]
test: EscapeJson.Utf8 uses json instead of xml

the xml version does not escape the \n, while json does

Signed-off-by: Casey Bodley <cbodley@redhat.com>