]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agorgw: remove rgw/rgw_auth_decoimpl.h as it isn't necessary anymore.
Radoslaw Zarzynski [Wed, 11 Jan 2017 16:01:17 +0000 (17:01 +0100)]
rgw: remove rgw/rgw_auth_decoimpl.h as it isn't necessary anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: add rgw::auth::s3::AWSv2AuthStrategy and switch the S3 auth to it.
Radoslaw Zarzynski [Wed, 11 Jan 2017 15:26:53 +0000 (16:26 +0100)]
rgw: add rgw::auth::s3::AWSv2AuthStrategy and switch the S3 auth to it.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: replace RGWDummyIdentityApplier with rgw::auth::DummyIdentityApplier.
Radoslaw Zarzynski [Wed, 11 Jan 2017 15:14:11 +0000 (16:14 +0100)]
rgw: replace RGWDummyIdentityApplier with rgw::auth::DummyIdentityApplier.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: apply the new filters over appliers in the Swift's auth strategy.
Radoslaw Zarzynski [Wed, 11 Jan 2017 18:31:26 +0000 (19:31 +0100)]
rgw: apply the new filters over appliers in the Swift's auth strategy.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the rgw::auth::SysReqApplier over IdentityApplier.
Radoslaw Zarzynski [Wed, 11 Jan 2017 15:08:39 +0000 (16:08 +0100)]
rgw: implement the rgw::auth::SysReqApplier over IdentityApplier.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement rgw::auth::ThirdPartyAccountApplier.
Radoslaw Zarzynski [Thu, 22 Dec 2016 12:32:52 +0000 (13:32 +0100)]
rgw: implement rgw::auth::ThirdPartyAccountApplier.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: add Control::FALLBACK mode to rgw::auth::AuthStrategy.
Radoslaw Zarzynski [Wed, 11 Jan 2017 14:57:40 +0000 (15:57 +0100)]
rgw: add Control::FALLBACK mode to rgw::auth::AuthStrategy.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: aggregate S3's external auth engine as the ExternalAuthStrategy.
Radoslaw Zarzynski [Fri, 6 Jan 2017 15:59:49 +0000 (16:59 +0100)]
rgw: aggregate S3's external auth engine as the ExternalAuthStrategy.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: make rgw::keystone::TokenEnvelope::expired() to be const-correct.
Radoslaw Zarzynski [Fri, 6 Jan 2017 13:15:54 +0000 (14:15 +0100)]
rgw: make rgw::keystone::TokenEnvelope::expired() to be const-correct.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: switch S3-specific auth engines to the new infra.
Radoslaw Zarzynski [Fri, 6 Jan 2017 12:59:37 +0000 (13:59 +0100)]
rgw: switch S3-specific auth engines to the new infra.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: integrate the new EC2Engine with current S3 auth code.
Radoslaw Zarzynski [Fri, 6 Jan 2017 11:35:11 +0000 (12:35 +0100)]
rgw: integrate the new EC2Engine with current S3 auth code.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: introduce basement for all S3 auth engines.
Radoslaw Zarzynski [Thu, 5 Jan 2017 18:00:27 +0000 (19:00 +0100)]
rgw: introduce basement for all S3 auth engines.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy().
Radoslaw Zarzynski [Thu, 5 Jan 2017 13:51:08 +0000 (14:51 +0100)]
rgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy().

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: improve const-correctness and refactor S3 canonized string crafting.
Radoslaw Zarzynski [Wed, 4 Jan 2017 19:24:09 +0000 (20:24 +0100)]
rgw: improve const-correctness and refactor S3 canonized string crafting.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: add rgw::auth::keystone::EC2Engine.
Radoslaw Zarzynski [Wed, 4 Jan 2017 19:22:13 +0000 (20:22 +0100)]
rgw: add rgw::auth::keystone::EC2Engine.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: the authorize() method of Swift's handler operates on auth strategy now.
Radoslaw Zarzynski [Thu, 26 Jan 2017 17:50:57 +0000 (18:50 +0100)]
rgw: the authorize() method of Swift's handler operates on auth strategy now.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: the Swift's auth strategy is instantiated and injected from rgw_main.cc.
Radoslaw Zarzynski [Thu, 26 Jan 2017 17:49:00 +0000 (18:49 +0100)]
rgw: the Swift's auth strategy is instantiated and injected from rgw_main.cc.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: settle rgw::auth::{IdentityApplier,Completer} in req_state.
Radoslaw Zarzynski [Thu, 26 Jan 2017 17:18:53 +0000 (18:18 +0100)]
rgw: settle rgw::auth::{IdentityApplier,Completer} in req_state.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: port the TempURL auth engine to the new auth infrastructure.
Radoslaw Zarzynski [Thu, 26 Jan 2017 17:15:21 +0000 (18:15 +0100)]
rgw: port the TempURL auth engine to the new auth infrastructure.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: port Swift's Signed and External auth engines.
Radoslaw Zarzynski [Thu, 22 Dec 2016 12:48:18 +0000 (13:48 +0100)]
rgw: port Swift's Signed and External auth engines.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement rgw::auth::DecoratedApplier.
Radoslaw Zarzynski [Wed, 14 Dec 2016 17:15:33 +0000 (18:15 +0100)]
rgw: implement rgw::auth::DecoratedApplier.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement rgw::auth::swift::DefaultStrategy.
Radoslaw Zarzynski [Tue, 13 Dec 2016 14:28:10 +0000 (15:28 +0100)]
rgw: implement rgw::auth::swift::DefaultStrategy.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement rgw::auth::AnonymousEngine.
Radoslaw Zarzynski [Tue, 13 Dec 2016 14:27:31 +0000 (15:27 +0100)]
rgw: implement rgw::auth::AnonymousEngine.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement rgw::auth::LocalApplier.
Radoslaw Zarzynski [Mon, 12 Dec 2016 11:25:06 +0000 (12:25 +0100)]
rgw: implement rgw::auth::LocalApplier.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: inject token cache as a dependency in rgw::auth::keystone::TokenEngine.
Radoslaw Zarzynski [Fri, 28 Oct 2016 12:34:19 +0000 (14:34 +0200)]
rgw: inject token cache as a dependency in rgw::auth::keystone::TokenEngine.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the rgw::auth::KeystoneEngine.
Radoslaw Zarzynski [Wed, 26 Oct 2016 16:10:15 +0000 (18:10 +0200)]
rgw: implement the rgw::auth::KeystoneEngine.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: Keystone implementation can support multiple instances now.
Radoslaw Zarzynski [Mon, 7 Nov 2016 11:09:45 +0000 (12:09 +0100)]
rgw: Keystone implementation can support multiple instances now.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: only move Keystone-related things into rgw::keystone namespace.
Radoslaw Zarzynski [Thu, 27 Oct 2016 15:42:06 +0000 (17:42 +0200)]
rgw: only move Keystone-related things into rgw::keystone namespace.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: add the rgw::auth::TokenExtractor interface.
Radoslaw Zarzynski [Thu, 27 Oct 2016 13:32:20 +0000 (15:32 +0200)]
rgw: add the rgw::auth::TokenExtractor interface.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: introduce the rgw::auth::RemoteApplier interface.
Radoslaw Zarzynski [Wed, 26 Oct 2016 16:09:07 +0000 (18:09 +0200)]
rgw: introduce the rgw::auth::RemoteApplier interface.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: introduce the rgw::auth::Applier interface.
Radoslaw Zarzynski [Mon, 7 Nov 2016 12:47:09 +0000 (13:47 +0100)]
rgw: introduce the rgw::auth::Applier interface.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the rgw::auth::Strategy.
Radoslaw Zarzynski [Fri, 21 Oct 2016 15:14:47 +0000 (17:14 +0200)]
rgw: implement the rgw::auth::Strategy.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: introduce and document new interfaces to the auth subsystem.
Radoslaw Zarzynski [Tue, 18 Oct 2016 14:10:07 +0000 (16:10 +0200)]
rgw: introduce and document new interfaces to the auth subsystem.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13986 from dillaman/wip-19081
Mykola Golub [Thu, 16 Mar 2017 11:38:28 +0000 (13:38 +0200)]
Merge pull request #13986 from dillaman/wip-19081

librbd: image create validates that pool supports overwrites

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13905 from yuyuyu101/wip-fix-assert
Haomai Wang [Thu, 16 Mar 2017 08:35:58 +0000 (16:35 +0800)]
Merge pull request #13905 from yuyuyu101/wip-fix-assert

msg/async/rdma: fix outstanding queuepair when destruct RDMAStack

Reviewed-by: Adir lev <adirl@mellanox.com>
8 years agoMerge pull request #13983 from gaurav36/bug-19273-fix-typo
Nathan Cutler [Thu, 16 Mar 2017 04:07:35 +0000 (05:07 +0100)]
Merge pull request #13983 from gaurav36/bug-19273-fix-typo

rbd: fix typo in Kernel.cc

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agolibrbd: image create validates that pool supports overwrites 13986/head
Jason Dillaman [Wed, 15 Mar 2017 18:49:13 +0000 (14:49 -0400)]
librbd: image create validates that pool supports overwrites

Fixes: http://tracker.ceph.com/issues/19081
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: clean up debug messages within image create state machine
Jason Dillaman [Wed, 15 Mar 2017 20:33:58 +0000 (16:33 -0400)]
librbd: clean up debug messages within image create state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13628 from jcsp/wip-19075
John Spray [Wed, 15 Mar 2017 21:29:48 +0000 (21:29 +0000)]
Merge pull request #13628 from jcsp/wip-19075

mds: extend 'p' auth cap to cover all vxattr stuff

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #13807 from jcsp/wip-19118
John Spray [Wed, 15 Mar 2017 21:15:43 +0000 (21:15 +0000)]
Merge pull request #13807 from jcsp/wip-19118

mds: try to avoid false positive heartbeat timeouts

8 years agolibrbd: removed legacy state machine callbacks from CreateRequest
Jason Dillaman [Wed, 15 Mar 2017 18:12:35 +0000 (14:12 -0400)]
librbd: removed legacy state machine callbacks from CreateRequest

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13913 from wangzhengyong/release
Sage Weil [Wed, 15 Mar 2017 18:09:33 +0000 (13:09 -0500)]
Merge pull request #13913 from wangzhengyong/release

os/bluestore/Allocator: drop unused return value in release function

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorbd: fix typo in Kernel.cc 13983/head
Gaurav Kumar Garg [Wed, 15 Mar 2017 16:13:54 +0000 (17:13 +0100)]
rbd: fix typo in Kernel.cc

Fixes: http://tracker.ceph.com/issues/19273
Reported-by: Shinobu Kinjo <shinobu@redhat.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
8 years agoMerge pull request #13928 from oritwas/wip-rgw-19195
Casey Bodley [Wed, 15 Mar 2017 13:14:42 +0000 (09:14 -0400)]
Merge pull request #13928 from oritwas/wip-rgw-19195

rgw: use rgw_zone_root_pool for region_map like is done in hammer

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13977 from runsisi/wip-fix-rbd-py
Jason Dillaman [Wed, 15 Mar 2017 13:07:38 +0000 (09:07 -0400)]
Merge pull request #13977 from runsisi/wip-fix-rbd-py

pybind: fix docstring for librbd Python binding

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13976 from tchaikov/wip-fix-docs-links
Kefu Chai [Wed, 15 Mar 2017 10:49:18 +0000 (18:49 +0800)]
Merge pull request #13976 from tchaikov/wip-fix-docs-links

doc: fix the links to http://ceph.com/docs

Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agodoc: fix the links to http://ceph.com/docs 13976/head
Kefu Chai [Wed, 15 Mar 2017 08:24:39 +0000 (16:24 +0800)]
doc: fix the links to http://ceph.com/docs

they should point to http://docs.ceph.com/docs/master/.. instead

Fixes: http://tracker.ceph.com/issues/19090
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agopybind: fix docstring for librbd Python binding 13977/head
runsisi [Wed, 15 Mar 2017 08:36:06 +0000 (16:36 +0800)]
pybind: fix docstring for librbd Python binding

Signed-off-by: runsisi <runsisi@zte.com.cn>
8 years agoMerge pull request #13817 from ceph/wip-vstart-rgw-help
Kefu Chai [Wed, 15 Mar 2017 08:14:39 +0000 (16:14 +0800)]
Merge pull request #13817 from ceph/wip-vstart-rgw-help

vstart: add --help documentation for rgw_num

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13935 from chuang-he/fix_mutex_locker_of_compressor
Kefu Chai [Wed, 15 Mar 2017 04:28:30 +0000 (12:28 +0800)]
Merge pull request #13935 from chuang-he/fix_mutex_locker_of_compressor

compressor: fix Mutex::Locker used is not correct

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13945 from ceph/wip-selinux-psched
Kefu Chai [Wed, 15 Mar 2017 03:57:11 +0000 (11:57 +0800)]
Merge pull request #13945 from ceph/wip-selinux-psched

selinux: Allow ceph daemons to read net stats

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agovstart: --help usage for rgw_num, mgr_num, mon, mds, osd 13817/head
Ali Maredia [Mon, 6 Mar 2017 22:32:48 +0000 (17:32 -0500)]
vstart: --help usage for rgw_num, mgr_num, mon, mds, osd

Signed-off-by: Ali Maredia <amaredia@redhat.com>
8 years agoMerge pull request #13949 from cbodley/wip-15618
Casey Bodley [Tue, 14 Mar 2017 18:26:32 +0000 (14:26 -0400)]
Merge pull request #13949 from cbodley/wip-15618

rgw: clear old zone short ids on period update

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13948 from cbodley/wip-rgw-data-sync-versioned
Casey Bodley [Tue, 14 Mar 2017 18:26:12 +0000 (14:26 -0400)]
Merge pull request #13948 from cbodley/wip-rgw-data-sync-versioned

rgw: data sync includes instance in rgw_obj_index_key

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13586 from Liuchang0812/wip-add-override-in-rgw
Casey Bodley [Tue, 14 Mar 2017 17:39:45 +0000 (13:39 -0400)]
Merge pull request #13586 from Liuchang0812/wip-add-override-in-rgw

rgw: add override in header files mostly

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12793 from zhangsw/fix-rgw-abortmultipart
Casey Bodley [Tue, 14 Mar 2017 16:19:00 +0000 (12:19 -0400)]
Merge pull request #12793 from zhangsw/fix-rgw-abortmultipart

rgw: AbortMultipart request returns NoSuchUpload error if the meta obj doesn't exist

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13900 from oritwas/wip-rgw-19231
Casey Bodley [Tue, 14 Mar 2017 16:10:00 +0000 (12:10 -0400)]
Merge pull request #13900 from oritwas/wip-rgw-19231

fix upgrate from hammer when zone doesn't have zoneparams

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13354 from Liuchang0812/wip-18828
Casey Bodley [Tue, 14 Mar 2017 14:43:32 +0000 (10:43 -0400)]
Merge pull request #13354 from Liuchang0812/wip-18828

rgw: don't return skew time error in pre-signed url

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #13798 from tchaikov/wip-brag-count-mds
Kefu Chai [Tue, 14 Mar 2017 13:17:07 +0000 (21:17 +0800)]
Merge pull request #13798 from tchaikov/wip-brag-count-mds

brag: count the number of mds in fsmap not in mdsmap

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge branch 'wip-omap-getkeys-mds'
John Spray [Tue, 14 Mar 2017 11:51:51 +0000 (11:51 +0000)]
Merge branch 'wip-omap-getkeys-mds'

8 years agoqa/suites/fs/basic: vary omap osd-side limit
Sage Weil [Mon, 23 Jan 2017 16:56:15 +0000 (11:56 -0500)]
qa/suites/fs/basic: vary omap osd-side limit

Ensure that the omap looping paths are exercised.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/CDir: set sane max keys per op
Sage Weil [Fri, 20 Jan 2017 03:20:54 +0000 (21:20 -0600)]
mds/CDir: set sane max keys per op

Set default to 16384, which is > than the max frag size of 10000.  We will
loop if there are more.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/CDir: fetch dir omap in batches as needed
Sage Weil [Thu, 19 Jan 2017 21:54:12 +0000 (15:54 -0600)]
mds/CDir: fetch dir omap in batches as needed

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomds/SessionMap: use pmore for loading sessions
Sage Weil [Fri, 20 Jan 2017 03:18:02 +0000 (21:18 -0600)]
mds/SessionMap: use pmore for loading sessions

Keep the result size check for a while since older OSDs won't populate
the pmore field for us.  Eventually we can remove it.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13812 from idryomov/wip-krbd-feature-disable-msg
Ilya Dryomov [Tue, 14 Mar 2017 09:22:42 +0000 (10:22 +0100)]
Merge pull request #13812 from idryomov/wip-krbd-feature-disable-msg

rbd: spell out image features unsupported by the kernel

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13924 from tchaikov/wip-silence-gcc-warnings
Kefu Chai [Tue, 14 Mar 2017 05:01:44 +0000 (13:01 +0800)]
Merge pull request #13924 from tchaikov/wip-silence-gcc-warnings

os/bluestore,test/ceph_test_objectstore: silence gcc warnings

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agorgw/cleanup: add override in headers 13586/head
liuchang0812 [Wed, 22 Feb 2017 09:46:46 +0000 (17:46 +0800)]
rgw/cleanup: add override in headers

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #13700 from yuyuyu101/wip-msgr-lossy
Kefu Chai [Tue, 14 Mar 2017 02:56:05 +0000 (10:56 +0800)]
Merge pull request #13700 from yuyuyu101/wip-msgr-lossy

msg/async: avoid lossy connection sending ack message

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13805 from tchaikov/wip-qa-upgrade-tiering
Josh Durgin [Mon, 13 Mar 2017 22:26:58 +0000 (15:26 -0700)]
Merge pull request #13805 from tchaikov/wip-qa-upgrade-tiering

qa/suites/upgrade: add tiering test to hammer-jewel-x

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13727 from jcsp/wip-send-command
Sage Weil [Mon, 13 Mar 2017 19:59:29 +0000 (14:59 -0500)]
Merge pull request #13727 from jcsp/wip-send-command

osdc: clean up osd_command/start_mon_command interfaces

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13825 from wjwithagen/wip-wjw-stack-compat
Yuri Weinstein [Mon, 13 Mar 2017 19:58:12 +0000 (12:58 -0700)]
Merge pull request #13825 from wjwithagen/wip-wjw-stack-compat

msg/async/Stack.cc: use of pthread_setname_np() needs compat.h

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #10272 from yonghengdexin735/wip-zzz-delete=
Yuri Weinstein [Mon, 13 Mar 2017 19:57:06 +0000 (12:57 -0700)]
Merge pull request #10272 from yonghengdexin735/wip-zzz-delete=

msg/simple/Pipe:the returned value for do_recv unequal to zero

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12578 from kylinstorage/wip-filestore-ref
Sage Weil [Mon, 13 Mar 2017 19:55:26 +0000 (14:55 -0500)]
Merge pull request #12578 from kylinstorage/wip-filestore-ref

os/filestore: avoid unnecessary copy in filestore::_do_transaction

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13894 from majianpeng/do_op_duplicated_code
Yuri Weinstein [Mon, 13 Mar 2017 19:52:27 +0000 (12:52 -0700)]
Merge pull request #13894 from majianpeng/do_op_duplicated_code

osd/PrimaryLogPG: remove duplicated code.

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
8 years agorgw: clear old zone short ids on period update 13949/head
Casey Bodley [Thu, 9 Mar 2017 20:24:08 +0000 (15:24 -0500)]
rgw: clear old zone short ids on period update

the short ids of old, removed zones were being kept in the period to
guard against hash collisions with new zones

but for a hash collision to cause a wrong object to sync, that object
would have to be uploaded simultaneously to two different zones that had
the same short id

to avoid this, we just have to prevent the period from containing two
colliding zones at the same time - we don't have to remember old zone
short ids forever

Fixes: http://tracker.ceph.com/issues/15618
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: data sync includes instance in rgw_obj_index_key 13948/head
Casey Bodley [Mon, 13 Mar 2017 18:51:17 +0000 (14:51 -0400)]
rgw: data sync includes instance in rgw_obj_index_key

this was breaking the versioned object test in test_multi.py, because we
were trying to create delete markers instead of unlinking a specific
object instance

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoselinux: Allow ceph daemons to read net stats 13945/head
Boris Ranto [Mon, 13 Mar 2017 16:51:45 +0000 (17:51 +0100)]
selinux: Allow ceph daemons to read net stats

Fixes: http://tracker.ceph.com/issues/19254
Signed-off-by: Boris Ranto <branto@redhat.com>
8 years agoMerge pull request #13919 from dillaman/wip-19256
Mykola Golub [Mon, 13 Mar 2017 16:26:52 +0000 (18:26 +0200)]
Merge pull request #13919 from dillaman/wip-19256

rbd: prevent adding multiple mirror peers to a single pool

Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12264 from cbodley/wip-rgw-print-is-admin
Casey Bodley [Mon, 13 Mar 2017 14:27:49 +0000 (10:27 -0400)]
Merge pull request #12264 from cbodley/wip-rgw-print-is-admin

rgw: print is_admin as int instead of __u8

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13722 from dachary/wip-crush-doc
Loic Dachary [Mon, 13 Mar 2017 14:07:47 +0000 (15:07 +0100)]
Merge pull request #13722 from dachary/wip-crush-doc

crush: document tunables and rule step set_

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocrush: document tunables and rule step set_ 13722/head
Loic Dachary [Thu, 2 Mar 2017 21:18:37 +0000 (22:18 +0100)]
crush: document tunables and rule step set_

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agocompressor: fix Mutex::Locker used is not correct 13935/head
hechuang [Mon, 13 Mar 2017 07:25:37 +0000 (15:25 +0800)]
compressor: fix Mutex::Locker used is not correct

Signed-off-by: hechuang <hechuang@xsky.com>
8 years agoMerge pull request #13781 from SUSE/wip-19184
Nathan Cutler [Mon, 13 Mar 2017 07:34:27 +0000 (08:34 +0100)]
Merge pull request #13781 from SUSE/wip-19184

build/ops: make package groups comply with openSUSE guidelines

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
8 years agorbd: prevent adding multiple mirror peers to a single pool 13919/head
Jason Dillaman [Fri, 10 Mar 2017 15:56:38 +0000 (10:56 -0500)]
rbd: prevent adding multiple mirror peers to a single pool

The rbd-mirror daemon does not currently support replication
from multiple peers. Until that is supported, add a temporary
restriction to prevent confusion.

Fixes: http://tracker.ceph.com/issues/19256
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13926 from trociny/wip-19260
Jason Dillaman [Sun, 12 Mar 2017 14:51:58 +0000 (10:51 -0400)]
Merge pull request #13926 from trociny/wip-19260

librbd: fix clang compilation error

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agorgw: use rgw_zone_root_pool for region_map like is done in hammer 13928/head
Orit Wasserman [Sun, 12 Mar 2017 10:11:28 +0000 (12:11 +0200)]
rgw: use rgw_zone_root_pool for region_map like is done in hammer

Fixes: http://tracker.ceph.com/issues/19195
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agolibrbd: make build with clang 13926/head
Mykola Golub [Sat, 11 Mar 2017 19:19:33 +0000 (19:19 +0000)]
librbd: make build with clang

Fixes: http://tracker.ceph.com/issues/19260
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13694 from liupan1111/wip-fix-no-error-map
Mykola Golub [Sat, 11 Mar 2017 15:05:49 +0000 (17:05 +0200)]
Merge pull request #13694 from liupan1111/wip-fix-no-error-map

rbd-nbd: warn when kernel parameters are ignored

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-nbd: only try to load nbd module once when open nbd device, during do_map operation. 13694/head
Pan Liu [Sat, 11 Mar 2017 13:50:00 +0000 (21:50 +0800)]
rbd-nbd: only try to load nbd module once when open nbd device, during do_map operation.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agorbd-nbd: warn when kernel parameters are ignored
Pan Liu [Sat, 11 Mar 2017 13:48:37 +0000 (21:48 +0800)]
rbd-nbd: warn when kernel parameters are ignored

Fixes: http://tracker.ceph.com/issues/19108
Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agoos/bluestore: silence gcc warning 13924/head
Kefu Chai [Sat, 11 Mar 2017 09:20:58 +0000 (17:20 +0800)]
os/bluestore: silence gcc warning

silences following warning:

src/os/bluestore/BitAllocator.h:410:8: warning: ‘virtual bool
BitMapAreaIN::child_check_n_lock(BitMapArea*, int64_t, bool)’ was hidden
[-Wover\
loaded-virtual]
   bool child_check_n_lock(BitMapArea *child, int64_t required, bool
lock) {
        ^~~~~~~~~~~~~~~~~~
/var/ceph/ceph/src/os/bluestore/BitAllocator.h:489:8: warning:   by
‘BitMapAreaLeaf::child_check_n_lock’ [-Woverloaded-virtual]
   bool child_check_n_lock(BitMapZone* child, int64_t required, bool
lock);
        ^~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotest/ceph_test_objectstore: silence gcc warning
Kefu Chai [Tue, 7 Mar 2017 03:31:14 +0000 (11:31 +0800)]
test/ceph_test_objectstore: silence gcc warning

silence following warning:

store_test.cc: In member function ‘virtual void
StoreTest_ManyObjectTest_Test::TestBody()’:
/var/ceph/ceph/src/test/objectstore/store_test.cc:3153:6: warning:
suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
   if (listed2.size())
      ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13801 from xiexingguo/wip-fix-func-name
Xie Xingguo [Sat, 11 Mar 2017 01:55:44 +0000 (09:55 +0800)]
Merge pull request #13801 from xiexingguo/wip-fix-func-name

osd: fix func name in log produced by handle_pg_peering_evt()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13856 from zhangsw/cleanup-radosgw-admin-tier_type
Yehuda Sadeh [Fri, 10 Mar 2017 21:54:23 +0000 (13:54 -0800)]
Merge pull request #13856 from zhangsw/cleanup-radosgw-admin-tier_type

rgw: remove useless --tier_type in radosgw-admin.

Reviewed-by: Jiaying Ren <mikulely@gmail.com>
8 years agorbd: spell out image features unsupported by the kernel 13812/head
Ilya Dryomov [Mon, 6 Mar 2017 12:59:21 +0000 (13:59 +0100)]
rbd: spell out image features unsupported by the kernel

/sys/bus/rbd/supported_features is available on kernels starting with
4.11.  Example output:

    $ sudo rbd map x
    rbd: sysfs write failed
    RBD image feature set mismatch. This image cannot be mapped because the following immutable features are unsupported by the kernel: data-pool.
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

    $ sudo rbd map -p foo y
    rbd: sysfs write failed
    RBD image feature set mismatch. You can disable features unsupported by the kernel with "rbd feature disable foo/y object-map fast-diff deep-flatten".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

or, if /sys/bus/rbd/supported_features isn't there:

    $ sudo rbd map z
    rbd: sysfs write failed
    RBD image feature set mismatch. Try disabling features unsupported by the kernel with "rbd feature disable".
    In some cases useful info is found in syslog - try "dmesg | tail".
    rbd: map failed: (6) No such device or address

Fixes: http://tracker.ceph.com/issues/19095
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #13920 from cbodley/wip-rgw-fix-cleanup-meta-sync
Yehuda Sadeh [Fri, 10 Mar 2017 19:27:03 +0000 (11:27 -0800)]
Merge pull request #13920 from cbodley/wip-rgw-fix-cleanup-meta-sync

rgw: fix transition from full to incremental meta sync

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11586 from cbodley/wip-rgw-fetchallmeta-yield-break
Yehuda Sadeh [Fri, 10 Mar 2017 19:10:58 +0000 (11:10 -0800)]
Merge pull request #11586 from cbodley/wip-rgw-fetchallmeta-yield-break

rgw: fix break inside of yield in RGWFetchAllMetaCR

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10407 from yonghengdexin735/wip-zzz-perf-counters
Sage Weil [Fri, 10 Mar 2017 16:55:21 +0000 (10:55 -0600)]
Merge pull request #10407 from yonghengdexin735/wip-zzz-perf-counters

common/perf_counters.: Remove unnecessary judgment

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw: fix transition from full to incremental meta sync 13920/head
Casey Bodley [Fri, 10 Mar 2017 16:25:35 +0000 (11:25 -0500)]
rgw: fix transition from full to incremental meta sync

when transitioning to incremental sync, we need to write temp_marker
instead of sync_marker, because temp_marker has replaced the full sync
marker (which is a metadata key, rather than an log marker) with
next_step_marker

this was breaking the metadata checkpoint in test_multi.py, because it
was comparing metadata keys (i.e. 'user:zone.user') against mdlog
markers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agobuild/ops: extend rpm spec file copyright period to 2017 13781/head
Nathan Cutler [Fri, 3 Mar 2017 22:43:31 +0000 (23:43 +0100)]
build/ops: extend rpm spec file copyright period to 2017

Signed-off-by: Nathan Cutler <ncutler@suse.com>