]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agopybind/mgr/rest: don't set timezone to Chicago 14184/head
Tim Serong [Tue, 28 Mar 2017 09:37:51 +0000 (11:37 +0200)]
pybind/mgr/rest: don't set timezone to Chicago

Setting TIME_ZONE in the Django app causes the timestamps printed in
the mgr log to suddenly be wrong after the rest module starts up
(unless, I imagine, if the host happens to be in Chicago).

Signed-off-by: Tim Serong <tserong@suse.com>
8 years agoMerge pull request #13423 from dzafman/wip-18533-tool
David Zafman [Mon, 27 Mar 2017 22:15:43 +0000 (15:15 -0700)]
Merge pull request #13423 from dzafman/wip-18533-tool

Fixes: http://tracker.ceph.com/issues/18533
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14132 from dmick/wip-arm-crc
Dan Mick [Mon, 27 Mar 2017 19:50:57 +0000 (12:50 -0700)]
Merge pull request #14132 from dmick/wip-arm-crc

arch: fix cmake's ARM CRC intrinsics test to handle duplicitous gcc 4.8.5

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocmake/modules/SIMDExt.cmake: armv8 crypto intrinsics 14132/head
Dan Mick [Sat, 25 Mar 2017 03:12:38 +0000 (20:12 -0700)]
cmake/modules/SIMDExt.cmake: armv8 crypto intrinsics

Test not only for -march support, but also the actual
presence of the intrinsic routines.  Not sure why, but gcc
4.8.5 passes the first but not the second.

Fixes: http://tracker.ceph.com/issues/19386
Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agofilestore, tools: Fix logging of DBObjectMap check() repairs 13423/head
David Zafman [Tue, 21 Mar 2017 00:28:45 +0000 (17:28 -0700)]
filestore, tools: Fix logging of DBObjectMap check() repairs

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoosd: Simplify DBObjectMap by no longer creating complete tables
David Zafman [Fri, 3 Mar 2017 23:04:02 +0000 (15:04 -0800)]
osd: Simplify DBObjectMap by no longer creating complete tables

Bump the version for new maps to 3
Make clone less efficient but simpler
Add rename operation (use instead of clone/unlink)
For now keep code that understands version 2 maps

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoceph-osdomap-tool: Fix seg fault with large amount of check error output
David Zafman [Thu, 16 Feb 2017 00:17:32 +0000 (16:17 -0800)]
ceph-osdomap-tool: Fix seg fault with large amount of check error output

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoosd: Add automatic repair for DBObjectMap bug
David Zafman [Wed, 15 Feb 2017 23:02:33 +0000 (15:02 -0800)]
osd: Add automatic repair for DBObjectMap bug

Add repair command to ceph-osdomap-tool too

Under some situations the previous rm_keys() code would
generated a corrupt complete table.  There is no way to
figure out what the table should look like now.  By removing
the entries we fix the corruption and aren't much worse off
because the corruption caused some deleted keys to re-appear.

This doesn't breaking the parent/child relationship during
repair because some of the keys may still be contained
in the parent.

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoceph-osdomap-tool: Fix tool exit status
David Zafman [Wed, 15 Feb 2017 22:59:40 +0000 (14:59 -0800)]
ceph-osdomap-tool: Fix tool exit status

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoDBObjectMap: rewrite rm_keys and merge_new_complete
Samuel Just [Fri, 10 Feb 2017 23:51:42 +0000 (15:51 -0800)]
DBObjectMap: rewrite rm_keys and merge_new_complete

Leverage the updated in_complete_region and needs_parent to simplify
these methods.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoDBObjectMap: strengthen in_complete_region post condition
Samuel Just [Fri, 10 Feb 2017 23:50:57 +0000 (15:50 -0800)]
DBObjectMap: strengthen in_complete_region post condition

Previously, in_complete_region didn't guarantee anything about
where it left complete_iter pointing.  It will be handy for
complete_iter to be pointing at the lowest interval which ends
after to_test.  Make it so.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoDBObjectMap: fix next_parent()
Samuel Just [Fri, 10 Feb 2017 23:48:57 +0000 (15:48 -0800)]
DBObjectMap: fix next_parent()

The previous implementation assumed that
lower_bound(parent_iter->key()) always leaves the iterator
on_parent().  There isn't any guarantee, however, that that
key isn't present on the child as well.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agotest_object_map: add tests to trigger some bugs related to 18533
Samuel Just [Thu, 9 Feb 2017 18:47:59 +0000 (10:47 -0800)]
test_object_map: add tests to trigger some bugs related to 18533

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agotest: Add ceph_test_object_map to make check tests
David Zafman [Tue, 14 Feb 2017 20:40:33 +0000 (12:40 -0800)]
test: Add ceph_test_object_map to make check tests

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoceph-osdomap-tool: Add --debug and only show internal logging if enabled
David Zafman [Thu, 9 Feb 2017 02:56:27 +0000 (18:56 -0800)]
ceph-osdomap-tool: Add --debug and only show internal logging if enabled

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoosd: DBOjectMap::check: Dump complete mapping when inconsistency found
David Zafman [Thu, 9 Feb 2017 02:55:48 +0000 (18:55 -0800)]
osd: DBOjectMap::check: Dump complete mapping when inconsistency found

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotest_object_map: Use ASSERT_EQ() for check() so failure doesn't stop testing
David Zafman [Wed, 8 Feb 2017 23:38:51 +0000 (15:38 -0800)]
test_object_map: Use ASSERT_EQ() for check() so failure doesn't stop testing

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotools: Check for overlaps in internal "complete" table for DBObjectMap
David Zafman [Wed, 8 Feb 2017 18:02:40 +0000 (10:02 -0800)]
tools: Check for overlaps in internal "complete" table for DBObjectMap

Changed check to return an error count and fix tool error message

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotools: Add dump-headers command to ceph-osdomap-tool
David Zafman [Wed, 8 Feb 2017 17:40:49 +0000 (09:40 -0800)]
tools: Add dump-headers command to ceph-osdomap-tool

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotools: Add --oid option to ceph-osdomap-tool
David Zafman [Tue, 7 Feb 2017 05:09:42 +0000 (21:09 -0800)]
tools: Add --oid option to ceph-osdomap-tool

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoosd: Remove unnecessary assert and assignment in DBObjectMap
David Zafman [Tue, 7 Feb 2017 05:31:18 +0000 (21:31 -0800)]
osd: Remove unnecessary assert and assignment in DBObjectMap

Fix and add comment(s)

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #13754 from liewegas/wip-objectstore-random
Kefu Chai [Mon, 27 Mar 2017 14:58:29 +0000 (22:58 +0800)]
Merge pull request #13754 from liewegas/wip-objectstore-random

os: allow 'osd objectstore = random' to pick either filestore or bluestore

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: remove unuse perfcounter:l_bluestore_read_wait_flush_lat.
Jianpeng Ma [Sat, 25 Mar 2017 20:56:11 +0000 (04:56 +0800)]
os/bluestore: remove unuse perfcounter:l_bluestore_read_wait_flush_lat.

Now read don't need flush(). See commit 83e33a32fde7f83.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14088 from Adirl/rdma-cm-2
Haomai Wang [Mon, 27 Mar 2017 14:25:09 +0000 (22:25 +0800)]
Merge pull request #14088 from Adirl/rdma-cm-2

msg/async/rdma: Move resource handling to Device

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13915 from jcsp/wip-19253
John Spray [Mon, 27 Mar 2017 14:22:43 +0000 (10:22 -0400)]
Merge pull request #13915 from jcsp/wip-19253

qa: whitelist new fullness messages in fs tests

8 years agoMerge pull request #14159 from tchaikov/wip-rbd-size_t-is-not-uint64_t-on-arm32
Jason Dillaman [Mon, 27 Mar 2017 13:33:56 +0000 (09:33 -0400)]
Merge pull request #14159 from tchaikov/wip-rbd-size_t-is-not-uint64_t-on-arm32

librbd: pass an uint64_t to clip_io() as the third param

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: pass an uint64_t to clip_io() as the 3rd param 14159/head
Kefu Chai [Mon, 27 Mar 2017 03:58:41 +0000 (11:58 +0800)]
librbd: pass an uint64_t to clip_io() as the 3rd param

because, on arm32, size_t is "unsigned", while uint64_t is "long long
unsigned int", compiler is not able to promote the former to the latter
automatically. and ImageRequest::Extents::value_type::second_type is
indeed uint64_t, which is expected by clip_io(). so let's just use
"auto" here.

Fixes: http://tracker.ceph.com/issues/18938
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10412 from stiopaa1/mon_monitorh_addConstToGetLeader
Kefu Chai [Mon, 27 Mar 2017 03:33:36 +0000 (11:33 +0800)]
Merge pull request #10412 from stiopaa1/mon_monitorh_addConstToGetLeader

mon/Monitor.h: add const to member function

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14146 from liupan1111/wip-fix-comment
Jason Dillaman [Mon, 27 Mar 2017 02:37:45 +0000 (22:37 -0400)]
Merge pull request #14146 from liupan1111/wip-fix-comment

rbd-nbd: clean up the doc and help information

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12893 from rzarzynski/wip-rgw-auth-rework-cont-2
Matt Benjamin [Sun, 26 Mar 2017 17:37:14 +0000 (13:37 -0400)]
Merge pull request #12893 from rzarzynski/wip-rgw-auth-rework-cont-2

rgw: continuation of the auth rework

8 years agomon/Monitor.h: add const to member functions 10412/head
Michal Jarzabek [Sat, 23 Jul 2016 12:57:50 +0000 (13:57 +0100)]
mon/Monitor.h: add const to member functions

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #10121 from theanalyst/wip-16357
Orit Wasserman [Sun, 26 Mar 2017 07:33:28 +0000 (10:33 +0300)]
Merge pull request #10121 from theanalyst/wip-16357

rgw: cls_user don't clobber existing bucket stats when creating bucket
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agorbd-nbd: polish the doc and help information. 14146/head
Pan Liu [Sun, 26 Mar 2017 06:12:28 +0000 (14:12 +0800)]
rbd-nbd: polish the doc and help information.

Signed-off-by: Pan Liu <liupan1111@gmail.com>
8 years agoMerge pull request #14134 from wangzhengyong/doc
Mykola Golub [Sat, 25 Mar 2017 20:26:23 +0000 (22:26 +0200)]
Merge pull request #14134 from wangzhengyong/doc

doc: add some undocumented options to rbd-nbd

Reviewed-by: Pan Liu <liupan1111@gmail.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14091 from trociny/wip-prepare_async_request
Jason Dillaman [Sat, 25 Mar 2017 20:21:00 +0000 (16:21 -0400)]
Merge pull request #14091 from trociny/wip-prepare_async_request

librbd: potential use of uninitialised value in ImageWatcher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13740 from Adirl/forksafe
Haomai Wang [Sat, 25 Mar 2017 19:38:35 +0000 (03:38 +0800)]
Merge pull request #13740 from Adirl/forksafe

msg/async/rdma: Add fork safe on RDMA

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13965 from liewegas/wip-bluestore-pc
Sage Weil [Sat, 25 Mar 2017 18:08:33 +0000 (13:08 -0500)]
Merge pull request #13965 from liewegas/wip-bluestore-pc

os/bluestore: fix perf counters

8 years agoMerge pull request #13962 from Liuchang0812/wip-add-override-in-osd-headers
Sage Weil [Sat, 25 Mar 2017 18:07:37 +0000 (13:07 -0500)]
Merge pull request #13962 from Liuchang0812/wip-add-override-in-osd-headers

osd: add override in headers files

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: add some undocumented options to rbd-nbd 14134/head
wangzhengyong [Sat, 25 Mar 2017 07:09:01 +0000 (15:09 +0800)]
doc: add some undocumented options to rbd-nbd

Signed-off-by: wangzhengyong@cmss.chinamobile.com
8 years agoosd: add override in headers files 13962/head
liuchang0812 [Wed, 22 Feb 2017 11:43:11 +0000 (19:43 +0800)]
osd: add override in headers files

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #14114 from dmick/wip-boost-j
Kefu Chai [Sat, 25 Mar 2017 04:13:17 +0000 (12:13 +0800)]
Merge pull request #14114 from dmick/wip-boost-j

debian/rules, ceph.spec.in: invoke cmake with -DBOOST_J

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocmake/modules/SIMDExt.cmake: add whitespace
Dan Mick [Sat, 25 Mar 2017 03:10:15 +0000 (20:10 -0700)]
cmake/modules/SIMDExt.cmake: add whitespace

readability, man, readability

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agorgw: implement the dynamic reconfiguration of auth strategies. 12893/head
Radoslaw Zarzynski [Mon, 20 Mar 2017 03:35:42 +0000 (04:35 +0100)]
rgw: implement the dynamic reconfiguration of auth strategies.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: the S3's local v2 auth engine becomes a fallback conditionally.
Radoslaw Zarzynski [Sat, 18 Mar 2017 15:16:02 +0000 (16:16 +0100)]
rgw: the S3's local v2 auth engine becomes a fallback conditionally.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement SwiftAnonymousEngine.
Radoslaw Zarzynski [Fri, 17 Mar 2017 22:29:54 +0000 (23:29 +0100)]
rgw: implement SwiftAnonymousEngine.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: parametrize the implicit tenancy of rgw::auth::RemoteApplier.
Radoslaw Zarzynski [Tue, 7 Feb 2017 18:10:18 +0000 (19:10 +0100)]
rgw: parametrize the implicit tenancy of rgw::auth::RemoteApplier.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: RGWPostObj_ObjStore_S3 doesn't instantiate auth strategy for each request anymore.
Radoslaw Zarzynski [Tue, 7 Feb 2017 14:11:19 +0000 (15:11 +0100)]
rgw: RGWPostObj_ObjStore_S3 doesn't instantiate auth strategy for each request anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: fix appending '\0' in the rgw::auth::LocalApplier::to_str().
Radoslaw Zarzynski [Tue, 7 Feb 2017 13:28:40 +0000 (14:28 +0100)]
rgw: fix appending '\0' in the rgw::auth::LocalApplier::to_str().

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13889 from liewegas/wip-denc-nullptr
Sage Weil [Fri, 24 Mar 2017 21:41:37 +0000 (16:41 -0500)]
Merge pull request #13889 from liewegas/wip-denc-nullptr

include/denc: remove nullptr runtime magic boundedness check

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14096 from baiyanchun/remove_useless_parameter
Sage Weil [Fri, 24 Mar 2017 21:41:18 +0000 (16:41 -0500)]
Merge pull request #14096 from baiyanchun/remove_useless_parameter

common: remove useless parameter

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Pan Liu <liupan1111@gmail.com>
8 years agoMerge pull request #14131 from liewegas/wip-crush-encode
Sage Weil [Fri, 24 Mar 2017 20:28:27 +0000 (15:28 -0500)]
Merge pull request #14131 from liewegas/wip-crush-encode

crush: only encode class info if SERVER_LUMINOUS

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13960 from wangzhengyong/kstore
Sage Weil [Fri, 24 Mar 2017 18:17:39 +0000 (13:17 -0500)]
Merge pull request #13960 from wangzhengyong/kstore

os/kstore: some error handling

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13973 from shinobu-x/wp-sk-primarylogpg-null-nullptr
Sage Weil [Fri, 24 Mar 2017 18:16:58 +0000 (13:16 -0500)]
Merge pull request #13973 from shinobu-x/wp-sk-primarylogpg-null-nullptr

osd/PrimaryLogPG: nullptr not NULL

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13995 from liuhongtong/wip-config
Sage Weil [Fri, 24 Mar 2017 18:13:39 +0000 (13:13 -0500)]
Merge pull request #13995 from liuhongtong/wip-config

common/config: set rocksdb_cache_size to OPT_U64

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14013 from ShiqiCooperation/newshiqi
Sage Weil [Fri, 24 Mar 2017 18:12:16 +0000 (13:12 -0500)]
Merge pull request #14013 from ShiqiCooperation/newshiqi

test/unittest_bluefs: check whether add_block_device success

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocrush: only encode class info if SERVER_LUMINOUS 14131/head
Sage Weil [Fri, 24 Mar 2017 17:59:34 +0000 (13:59 -0400)]
crush: only encode class info if SERVER_LUMINOUS

This fixes OSDMap reencode crc mismatches on jewel to
luminous upgrades.

Fixes: http://tracker.ceph.com/issues/19361
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph.spec.in: derive _smp_ncpus and use it for -DBOOST_J 14114/head
Dan Mick [Fri, 24 Mar 2017 02:35:08 +0000 (19:35 -0700)]
ceph.spec.in: derive _smp_ncpus and use it for -DBOOST_J

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoceph.spec.in: move lowmem_build setting of _smp_mflags
Dan Mick [Fri, 24 Mar 2017 02:34:28 +0000 (19:34 -0700)]
ceph.spec.in: move lowmem_build setting of _smp_mflags

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agodebian/rules: invoke cmake with -DBOOST_J
Dan Mick [Thu, 23 Mar 2017 23:36:53 +0000 (16:36 -0700)]
debian/rules: invoke cmake with -DBOOST_J

Allow boost build during toplevel cmake from Debian package build
to benefit from multiple processors.  Should speed build a lot
on many-proc machines (say, arm64).  Use argument passed to
debhelper.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agorgw: improve logs in the RGWAccessControlPolicy class.
Radoslaw Zarzynski [Tue, 7 Feb 2017 13:27:10 +0000 (14:27 +0100)]
rgw: improve logs in the RGWAccessControlPolicy class.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: improve logs in rgw::auth::Strategy.
Radoslaw Zarzynski [Tue, 7 Feb 2017 13:25:43 +0000 (14:25 +0100)]
rgw: improve logs in rgw::auth::Strategy.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: RGWOp is responsible now for the authentication process.
Radoslaw Zarzynski [Sat, 4 Feb 2017 14:49:26 +0000 (15:49 +0100)]
rgw: RGWOp is responsible now for the authentication process.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: refactor error handling in rgw::auth::keystone.
Radoslaw Zarzynski [Mon, 23 Jan 2017 16:37:49 +0000 (17:37 +0100)]
rgw: refactor error handling in rgw::auth::keystone.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement descriptive authentication failure reasons.
Radoslaw Zarzynski [Wed, 18 Jan 2017 19:08:08 +0000 (20:08 +0100)]
rgw: implement descriptive authentication failure reasons.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: unify handling S3's ::authorize_v2 and ::get_policy methods.
Radoslaw Zarzynski [Thu, 12 Jan 2017 00:25:15 +0000 (01:25 +0100)]
rgw: unify handling S3's ::authorize_v2 and ::get_policy methods.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: remove the parts of auth framework that aren't necessary anymore.
Radoslaw Zarzynski [Wed, 11 Jan 2017 17:34:26 +0000 (18:34 +0100)]
rgw: remove the parts of auth framework that aren't necessary anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: move ACL Strategies to the newer auth framework.
Radoslaw Zarzynski [Wed, 11 Jan 2017 17:32:32 +0000 (18:32 +0100)]
rgw: move ACL Strategies to the newer auth framework.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: switch from req_state::auth_identity to req_state::auth::identity.
Radoslaw Zarzynski [Wed, 11 Jan 2017 16:04:24 +0000 (17:04 +0100)]
rgw: switch from req_state::auth_identity to req_state::auth::identity.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
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 agoMerge pull request #14082 from idealguo/update-bucket-acl
Casey Bodley [Fri, 24 Mar 2017 15:15:05 +0000 (11:15 -0400)]
Merge pull request #14082 from idealguo/update-bucket-acl

rgw: enable to update acl of bucket created in slave zonegroup

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14043 from zhangsw/fix-rgw-deletebucket
Casey Bodley [Fri, 24 Mar 2017 15:11:50 +0000 (11:11 -0400)]
Merge pull request #14043 from zhangsw/fix-rgw-deletebucket

rgw: delete non-empty buckets in slave zonegroup works not well

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