]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yuri Weinstein [Thu, 25 Jan 2018 16:11:57 +0000 (08:11 -0800)]
Merge pull request #19554 from shinobu-x/wip-22454-luminous
luminous: cluster resource agent ocf:ceph:rbd - wrong permissions
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 25 Jan 2018 16:11:22 +0000 (08:11 -0800)]
Merge pull request #19625 from shinobu-x/wip-22497-luminous
luminous: [rbd-mirror] new pools might not be detected
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 25 Jan 2018 16:10:37 +0000 (08:10 -0800)]
Merge pull request #19800 from smithfarm/wip-21641-luminous
luminous: rbd ls -l crashes with SIGABRT
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Yuri Weinstein [Thu, 25 Jan 2018 16:09:49 +0000 (08:09 -0800)]
Merge pull request #19802 from smithfarm/wip-21690-luminous
luminous: tests: rbd_mirror_helpers.sh request_resync_image function saves image id to wrong variable
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 25 Jan 2018 16:09:02 +0000 (08:09 -0800)]
Merge pull request #19853 from pdvian/wip-22593-luminous
luminous: rbd: librbd: filter out potential race with image rename
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Wed, 24 Jan 2018 21:19:46 +0000 (13:19 -0800)]
Merge pull request #18722 from shinobu-x/wip-luminous-21946
luminous: mds: set PRIO_USEFUL on num_sessions counter
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Wed, 24 Jan 2018 21:18:41 +0000 (13:18 -0800)]
Merge pull request #18730 from shinobu-x/wip-luminous-22030
luminous: List of filesystems does not get refreshed after a filesystem deletion
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Wed, 24 Jan 2018 21:18:04 +0000 (13:18 -0800)]
Merge pull request #18754 from shinobu-x/wip-21636-luminous
luminous: ceph-monstore-tool --readable mode doesn't understand FSMap, MgrMap
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Abhishek L [Wed, 24 Jan 2018 16:07:06 +0000 (17:07 +0100)]
Merge pull request #20053 from dillaman/wip-22740-luminous
luminous: qa/suites/upgrade: disable broken kraken upgrade cls_rbd test
Reviewed-By: Yuri Weinstein <yuriw@redhat.com>
Yuri Weinstein [Wed, 24 Jan 2018 15:05:13 +0000 (07:05 -0800)]
Merge pull request #18564 from kmroz/wip-21688-luminous
luminous: Possible deadlock in 'list_children' when refresh is required
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Wed, 24 Jan 2018 15:04:38 +0000 (07:04 -0800)]
Merge pull request #18698 from shinobu-x/wip-luminous-21808
luminous: rbd: fix crash during map
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Wed, 24 Jan 2018 15:03:43 +0000 (07:03 -0800)]
Merge pull request #19038 from pdvian/wip-22183-luminous
luminous: rgw: set sync_from_all as true when no value is seen
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Abhishek L [Wed, 24 Jan 2018 14:23:54 +0000 (15:23 +0100)]
Merge pull request #19446 from smithfarm/wip-22404-luminous
luminous: doc: crush_ruleset is invalid command in luminous
Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Alfredo Deza [Wed, 24 Jan 2018 13:46:21 +0000 (08:46 -0500)]
Merge pull request #18747 from shinobu-x/wip-21794-luminous
luminous: backoff causes out of order op
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Kefu Chai [Wed, 24 Jan 2018 03:23:49 +0000 (11:23 +0800)]
Merge pull request #20087 from dzafman/wip-misc-luminous
qa/standalone: Minor fixes for ceph_objectstore_tool.py test
Reviewed-by: Kefu Chai <kchai@redhat.com>
David Zafman [Mon, 18 Sep 2017 21:07:09 +0000 (14:07 -0700)]
test: Fix ceph-objectstore-tool usage check
Caused by:
c7b7a1f04f78fa62890c567d0ca53874c8d75eb7
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
0364ae104afc15effadfe968b5f60221704d933c )
David Zafman [Wed, 24 Jan 2018 02:16:32 +0000 (18:16 -0800)]
test: ceph_objectstore_tool.py bad --filestore option to vstart
Luminous doesn't have --filestore option
Caused by:
fd7d53bacb10d5b2094f1f579c96899d8a0a4b4f
Signed-off-by: David Zafman <dzafman@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 23:10:49 +0000 (15:10 -0800)]
Merge pull request #18742 from shinobu-x/wip-21924-luminous
luminous: ceph_test_objectstore fails ObjectStore/StoreTest.Synthetic/1 (filestore) buffer content mismatch
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 23:10:19 +0000 (15:10 -0800)]
Merge pull request #18744 from shinobu-x/wip-21922-luminous
luminous: Objecter::C_ObjectOperation_sparse_read throws/catches exceptions on -ENOENT
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 23:09:41 +0000 (15:09 -0800)]
Merge pull request #18745 from shinobu-x/wip-21921-luminous
luminous: Objecter::_send_op unnecessarily constructs costly hobject_t
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 23:08:59 +0000 (15:08 -0800)]
Merge pull request #18746 from shinobu-x/wip-21916-luminous
luminous: msg/async/AsyncConnection.cc: 1835: FAILED assert(state == STATE_CLOSED)
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 23:07:07 +0000 (15:07 -0800)]
Merge pull request #18749 from shinobu-x/wip-21785-luminous
luminous: OSDMap cache assert on shutdown
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 23:06:19 +0000 (15:06 -0800)]
Merge pull request #18753 from shinobu-x/wip-21697-luminous
luminous: OSDService::recovery_need_sleep read+updated without locking
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 22:52:13 +0000 (14:52 -0800)]
Merge pull request #18715 from shinobu-x/wip-luminous-21964
luminous: ceph_test_cls_log failures related to cls_cxx_subop_version()
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 22:51:37 +0000 (14:51 -0800)]
Merge pull request #18732 from shinobu-x/wip-luminous-21875
luminous: ceph-mgr spuriously reloading OSD metadata on map changes
Reviewed-by: John Spray <john.spray@redhat.com>
Yuri Weinstein [Tue, 23 Jan 2018 22:50:34 +0000 (14:50 -0800)]
Merge pull request #18735 from shinobu-x/wip-22029-luminous
luminous: restarting active ceph-mgr cause glitches in bps and iops metrics
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Mon, 22 Jan 2018 15:34:57 +0000 (10:34 -0500)]
qa/suites/upgrade: disable broken kraken upgrade cls_rbd test
Fixes: https://tracker.ceph.com/issues/22740
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Mon, 22 Jan 2018 15:02:32 +0000 (09:02 -0600)]
Merge pull request #19257 from ifed01/wip-ifed-rocksdb-fix
luminous: rocksdb: fixes early metadata spill over to slow device in
Sage Weil [Fri, 19 Jan 2018 21:10:19 +0000 (15:10 -0600)]
Merge pull request #19071 from smithfarm/wip-22181-luminous
luminous: rgw segfaults after running radosgw-admin data sync init
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Sage Weil [Fri, 19 Jan 2018 21:09:45 +0000 (15:09 -0600)]
Merge pull request #19077 from smithfarm/wip-22171-luminous
luminous: rgw: log keystone errors at a higher level
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 21:08:03 +0000 (16:08 -0500)]
Merge pull request #19810 from adamemerson/wip-luminous-21901
luminous: rgw: bucket policy evaluation logical error
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 21:06:08 +0000 (16:06 -0500)]
Merge pull request #19847 from adamemerson/wip-22541-luminous
luminous: rgw: put bucket policy panics RGW process
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 21:03:58 +0000 (13:03 -0800)]
Merge pull request #19785 from linuxbox2/luminous-22410
luminous: rgw: fix chained cache invalidation to prevent cache size growth
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 21:02:34 +0000 (13:02 -0800)]
Merge pull request #19788 from adamemerson/wip-luminous-cache
luminous: rgw: Random 500 errors in Swift PutObject (needs cache fixes)
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Casey Bodley [Fri, 19 Jan 2018 21:01:40 +0000 (16:01 -0500)]
Merge pull request #19053 from shinobu-x/wip-22187-luminous
luminous: rgw: add cors header rule check in cors option request
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 21:01:10 +0000 (13:01 -0800)]
Merge pull request #19819 from adamemerson/wip-backport-22601
luminous: rgw: S3 API Policy Conditions IpAddress and NotIpAddress do not work
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Casey Bodley [Fri, 19 Jan 2018 21:00:56 +0000 (16:00 -0500)]
Merge pull request #19050 from shinobu-x/wip-22184-luminous
luminous: Dynamic bucket indexing, resharding and tenants seems to be broken
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 21:00:38 +0000 (16:00 -0500)]
Merge pull request #19085 from shinobu-x/wip-22215-luminous
luminous: rgw: bucket index object not deleted after radosgw-admin bucket rm --purge-objects --bypass-gc
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:54:24 +0000 (15:54 -0500)]
Merge pull request #18870 from shinobu-x/wip-21949-luminous
luminous: rgw: null instance mtime incorrect when enable versioning
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:54:05 +0000 (15:54 -0500)]
Merge pull request #18764 from smithfarm/wip-22017-luminous
luminous: rgw: Segmentation fault when starting radosgw after reverting .rgw.root
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:53:53 +0000 (15:53 -0500)]
Merge pull request #18765 from smithfarm/wip-22024-luminous
luminous: RGWCrashError: RGW will crash if a putting lc config request does not include an ID tag in the request xml
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:53:40 +0000 (15:53 -0500)]
Merge pull request #18766 from smithfarm/wip-22021-luminous
luminous: rgw: modify s3 type subuser access permission fail
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:53:28 +0000 (15:53 -0500)]
Merge pull request #18867 from shinobu-x/wip-22027-luminous
luminous: multisite: destination zone does not compress synced objects
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 20:48:23 +0000 (12:48 -0800)]
Merge pull request #18868 from shinobu-x/wip-22026-luminous
luminous: Policy parser may or may not dereference uninitialized boost::optional sometimes
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:46:58 +0000 (15:46 -0500)]
Merge pull request #19538 from shinobu-x/wip-22434-luminous
luminous: rgw: user stats increased after bucket reshard
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 19 Jan 2018 20:46:21 +0000 (15:46 -0500)]
Merge pull request #19489 from dplyakin/luminous-get-website-error-code
luminous: rgw: fix GET website response error code
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 20:44:55 +0000 (12:44 -0800)]
Merge pull request #19090 from pdvian/wip-22179-luminous
luminous: rgw: Fix swift object expiry not deleting objects
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 20:43:07 +0000 (12:43 -0800)]
Merge pull request #19434 from cbodley/wip-luminous-pr-16807
luminous: rgw: revert PR #16807
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Yuri Weinstein [Fri, 19 Jan 2018 20:41:22 +0000 (12:41 -0800)]
Merge pull request #19502 from shinobu-x/wip-22397-luminous
luminous: rgw: radosgw-admin reshard command argument error.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Yuri Weinstein [Fri, 19 Jan 2018 20:40:45 +0000 (12:40 -0800)]
Merge pull request #19506 from shinobu-x/wip-22388-luminous
luminous: rgw: 501 is returned When init multipart is using V4 signature and chunk encoding
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com
John Spray [Thu, 18 Jan 2018 10:02:00 +0000 (10:02 +0000)]
Merge pull request #19929 from zmc/wip-luminous-prom-pg_deep
luminous: mgr/prometheus: add missing 'deep' state to PG_STATES in ceph-mgr pro…
Reviewed-by: John Spray <john.spray@redhat.com>
Jason Dillaman [Thu, 18 Jan 2018 01:13:36 +0000 (20:13 -0500)]
Merge pull request #19943 from dillaman/wip-22676-luminous
luminous: cls/rbd: remove incompatible group features from partial implementation
Reviewed-by: Mykola Golub <mgolub@suse.com>
Jason Dillaman [Wed, 17 Jan 2018 22:21:47 +0000 (17:21 -0500)]
qa/suites: filter out cls_rbd tests against unsupported methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Abhishek L [Wed, 17 Jan 2018 22:12:37 +0000 (23:12 +0100)]
Merge pull request #18865 from shinobu-x/wip-21631-luminous
luminous: doc: remove region from "INSTALL CEPH OBJECT GATEWAY"
Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Jason Dillaman [Sat, 13 Jan 2018 21:15:48 +0000 (16:15 -0500)]
cls/rbd: remove incompatible group features from partial implementation
Fixes: https://tracker.ceph.com/issues/22676
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Peter Woodman [Sun, 12 Nov 2017 00:32:37 +0000 (16:32 -0800)]
mgr/prometheus: add missing 'deep' state to PG_STATES in ceph-mgr prometheus plugin
without this the endpoint throws 500s when any PG is doing a deep scrub.
Signed-off-by: Peter Woodman <peter@shortbus.org>
Fixes: http://tracker.ceph.com/issues/22116
(cherry picked from commit
8c93c0eeaff406af0878916ef5b9ce958896d586 )
Jan Fajerski [Mon, 13 Nov 2017 13:42:56 +0000 (14:42 +0100)]
pybind/mgr/prometheus: don't crash when encountering an unknown PG state
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit
67a1b66b06bf74274c2cf1d4b5c900f2c56a990d )
John Spray [Mon, 15 Jan 2018 14:42:55 +0000 (14:42 +0000)]
Merge pull request #19925 from jcsp/wip-dashboard-trim-luminous2
luminous: mgr: remove unused static files from dashboard module
Reviewed-by: Sebastien Han <shan@redhat.com>
John Spray [Wed, 2 Aug 2017 14:11:07 +0000 (15:11 +0100)]
mgr/dashboard: remove unneeded bits of AdminLTE
AdminLTE is delivered in a handy all-in format,
but we don't need all this stuff at runtime.
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
38df5150ee026c6dc9ec763f757713c7e4d99cdb )
John Spray [Wed, 2 Aug 2017 14:15:04 +0000 (15:15 +0100)]
mgr/dashboard: remove non-minified bootstrap
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
5ce51ebbf047e373eac624e49e2d2bcfb46f09ff )
John Spray [Wed, 2 Aug 2017 14:54:17 +0000 (15:54 +0100)]
mgr/dashboard: remove un-minified datatables source
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
888f0f934e59fe28fdd97bca044702ce445bfe2e )
John Spray [Mon, 18 Sep 2017 10:10:31 +0000 (06:10 -0400)]
mgr/dashboard: don't include remote js/css
This will help anyone running away from the internet.
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
199d7ff26959961f200b86062f6290c9c17cba9a )
John Spray [Mon, 18 Sep 2017 10:13:45 +0000 (06:13 -0400)]
mgr/dashboard: re-arrange static files
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
85a87da7aa46266abd8d4c42218bcbccce386316 )
Kefu Chai [Thu, 11 Jan 2018 06:31:26 +0000 (14:31 +0800)]
Merge pull request #19880 from jcsp/wip-doc-dashboard-standby-luminous
doc: update mgr/dashboard doc about standbys
Reviewed-by: Kefu Chai <kchai@redhat.com>
John Spray [Tue, 9 Jan 2018 22:23:33 +0000 (22:23 +0000)]
doc: update mgr/dashboard doc about standbys
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
fa14812cbb584b61cb2ce687ae4c14225eecd9fe )
John Spray [Tue, 9 Jan 2018 11:13:04 +0000 (11:13 +0000)]
Merge pull request #19844 from jcsp/wip-22615
luminous: mgr/dashboard: Fix PG status coloring
Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Jos Collin [Tue, 9 Jan 2018 09:16:58 +0000 (09:16 +0000)]
Merge pull request #19858 from joscollin/wip-luminous-doc-misc-fixes
luminous: doc: misc fixes for CephFS best practices
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
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>
(cherry picked from commit
ecacd1078db5020e6d65436f9d56cc9ed0016666 )
Jos Collin [Fri, 5 Jan 2018 05:54:23 +0000 (11:24 +0530)]
doc: fix heading
Fixed 'Which kernel version?' heading not having brown color background.
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit
a068fd842f431a54f9db2d437a71cdc11907a8e1 )
Jason Dillaman [Wed, 20 Dec 2017 21:55:06 +0000 (16:55 -0500)]
librbd: filter out potential race with image rename
Fixes: http://tracker.ceph.com/issues/18435
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
001d2fc35c170f17e706aeae541fb86dac960319 )
Bingyin Zhang [Tue, 26 Dec 2017 09:06:44 +0000 (17:06 +0800)]
rgw: put bucket policy panics RGW process
Fixes: http://tracker.ceph.com/issues/22541
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
(cherry picked from commit
f05a044cad18c16ebc2c9a177f38b4bdc76cfd66 )
Jos Collin [Mon, 8 Jan 2018 17:22:30 +0000 (17:22 +0000)]
Merge pull request #19505 from shinobu-x/wip-22392-luminous
luminous: mds: tell session ls returns vanila EINVAL when MDS is not active
Reviewed-by: Jos Collin <jcollin@redhat.com>
John Spray [Mon, 8 Jan 2018 16:18:12 +0000 (16:18 +0000)]
Merge pull request #19831 from pdvian/wip-22576-luminous
luminous: qa: configure zabbix properly before selftest
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Wido den Hollander <wido@42on.com>
Wido den Hollander [Mon, 11 Dec 2017 10:33:16 +0000 (11:33 +0100)]
mgr/dashboard: Fix PG status coloring
This was broken in the 12.2.2 release and PGs would not get a
color anymore.
This commit also makes sure pools/PGs are marked as red when
one or more PGs are inactive, inconsistent, incomplete, down, etc.
Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit
450aa2133d05916822083969260ee07622591e33 )
Yehuda Sadeh [Mon, 8 Jan 2018 10:15:39 +0000 (12:15 +0200)]
Merge pull request #19787 from linuxbox2/luminous-21984
rgw: fix rewrite a versioning object create a new object bug
John Spray [Thu, 21 Dec 2017 13:27:45 +0000 (08:27 -0500)]
qa: configure zabbix properly before selftest
Even though the selftest routine doesn't care about
the settings, we should set them to avoid emitting
nasty log/health messages when enabling the module.
Fixes: http://tracker.ceph.com/issues/22514
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
c64c9ff00d2df2177135bcd2735bd7aeac625643 )
John Gibson [Tue, 19 Sep 2017 13:17:22 +0000 (09:17 -0400)]
rgw: Policies now properly evaluate the X-Forwarded-For header.
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
5f7d9c4ff6c78f65d074dbdf8a181cb9ae09851e )
John Gibson [Tue, 19 Sep 2017 14:55:12 +0000 (10:55 -0400)]
rgw: Test of proper parsing of the X-Forwarded-For header for policies.
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
e02facbf5c7b06b4d1d628ddb83ee74935493def )
John Gibson [Sun, 24 Dec 2017 20:49:50 +0000 (15:49 -0500)]
rgw: Bucket IP address policy evaluation now uses rgw_remote_addr_param.
Previously bucket policy ip address restrictions were only being evaluated
against the REMOTE_ADDR environment variable and ignoring the header
specified by the rgw_remote_addr_param configuration option. This rendered
ip-based bucket policies worthless when running behind a reverse proxy.
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
c4c24ca986f17c68b75f76fc48ad489002fcf87e )
John Gibson [Thu, 14 Sep 2017 14:12:59 +0000 (10:12 -0400)]
rgw: rgw_iam test harness can now stringify() the fake identity.
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
557bdb617e6eb78f9f0e6d6ba35b79b318a6c275 )
John Gibson [Sun, 24 Dec 2017 20:48:00 +0000 (15:48 -0500)]
rgw: Fixed several bugs in policies related to IPv6 addresses.
The IPv6 conversion was not properly converting the address to host byte
order.
The text conversion of IPv6 addresses was using raw byte values instead of
the converted number. The portions of the addresses were grouped by bytes
instead of 16-bit words. The prefix length was erroneously being rendered
in hex.
http://tracker.ceph.com/issues/20991
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
a25ca37401d1e8dc4349201b9f64aa6990bea0d5 )
John Gibson [Sun, 24 Dec 2017 20:44:54 +0000 (15:44 -0500)]
rgw: Fixed several bugs in policies related to IP Addresses.
Comparisons of two individual IP addresses caused an assertion error.
The text conversion of IPv4 addresses was using raw byte values instead of
the converted number.
NotIpAddress condition now works with multiple values.
http://tracker.ceph.com/issues/20991
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
ca21596c95aa3871d14ac9112840d3b1101a8635 )
John Gibson [Tue, 26 Dec 2017 21:40:31 +0000 (16:40 -0500)]
rgw: Added tests for S3 Policy IP Address feature.
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
3d260f26e6826182b4de520878b548a28a96e81b )
John Gibson [Thu, 10 Aug 2017 17:39:35 +0000 (13:39 -0400)]
rgw: Added support for testing the wildcard principal in policies.
Signed-off-by: John Gibson <jgibson@mitre.org>
(cherry picked from commit
e83b647d44153a7775647693fca1848e592ee107 )
yuliyang [Mon, 27 Nov 2017 06:32:44 +0000 (14:32 +0800)]
rgw: implement ipv4 aws:SourceIp condition for bucket policy
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
(cherry picked from commit
2fb445b6f7c1e997e83b1c7da2a1fecdde164d35 )
Casey Bodley [Fri, 3 Nov 2017 14:42:37 +0000 (10:42 -0400)]
rgw: simplify use of map::emplace in iam
the piecewise_construct overloads of map::emplace() are only needed when
there's ambiguity around which arguments go to which constructor
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
9787fe6b8dc545419b0f3375c06a57a414ae8aa6 )
Abhishek Lekshmanan [Thu, 27 Jul 2017 15:36:37 +0000 (17:36 +0200)]
rgw: policy: support for s3 conditionals in ListBucket
This adds support for s3:prefix,delimeter & maxkeys identifiers when
specified as conditionals in policy.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit
a7184ca8c507b66ef01687bd85528342ea3bf934 )
Jiaying Ren [Mon, 7 Aug 2017 07:55:19 +0000 (15:55 +0800)]
rgw: fix opslog can not record remote_addr
Fixes: http://tracker.ceph.com/issues/20931
Reported-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
(cherry picked from commit
650d30d64e084df12f4cfcb3d1edaefb5d475bb4 )
Adam C. Emerson [Sat, 28 Oct 2017 02:48:18 +0000 (22:48 -0400)]
rgw: Fix evaluation of bucket management permissions
I spent some more time looking through the documentation of how work
is evaluated, and the examples on
<http://docs.aws.amazon.com/AmazonS3/latest/dev/
access-control-auth-workflow-bucket-operation.html>
Have convinced me that the behavior that was requested is more correct
than what we were doing before.
Fixes: http://tracker.ceph.com/issues/21901
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
343a25aa2134b6fdddeca6c9dfbaefde2dc9c66a )
Adam C. Emerson [Sat, 28 Oct 2017 00:17:52 +0000 (20:17 -0400)]
rgw: Refactor checking of some ops
Since some operations check the user against the bucket owner in the
absence of a policy, rather than open-coding that everywhere, act like
a proper computer scientist and abstract it.
Fixes: http://tracker.ceph.com/issues/21896
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
8818a0cb5e699135976e057061fb8e9d99850cd3 )
Jos Collin [Fri, 5 Jan 2018 17:07:00 +0000 (17:07 +0000)]
Merge pull request #19449 from smithfarm/wip-22398-luminous
luminous: doc: man page for mount.fuse.ceph
Reviewed-by: Jos Collin <jcollin@redhat.com>
Adam C. Emerson [Wed, 20 Dec 2017 22:06:32 +0000 (17:06 -0500)]
rgw: Plumb refresh logic into object cache
Now when we force a refetch of bucket info it will actually go to the
OSD rather than simply using the objects in the object cache.
Fixes: http://tracker.ceph.com/issues/22517
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
d997f657750faf920170843e62deacab70008d8b )
Adam C. Emerson [Tue, 19 Dec 2017 21:47:09 +0000 (16:47 -0500)]
rgw: Add expiration in the object cache
We had it in the chained caches, but it doesn't do much good if
they just fetch objects out of the object cache.
Fixes: http://tracker.ceph.com/issues/22517
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
82a7e6ca31b416a7f0e41b5fda4c403d1d6be947 )
Adam C. Emerson [Tue, 19 Dec 2017 17:53:05 +0000 (12:53 -0500)]
rgw: retry CORS put/delete operations on ECANCELLED
Fixes: http://tracker.ceph.com/issues/22517
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
bff7e61ca5a66b301ec49c1cf9054d1b74535832 )
Adam C. Emerson [Fri, 17 Nov 2017 22:15:26 +0000 (17:15 -0500)]
rgw: Expire entries in bucket info cache
To bound the degree to which an RGW instance can go out to lunch if
the watch/notify breaks down, force refresh of any cache entry over a
certain age.
Fifteen minutes by default, and expiration can be turned off entirely.
This is separate from the LRU. The LRU removes entries based on the
last time of access. This expiration patch forces refresh based on the
last time they were updated.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
4489cb58a15647a31ac0546d70400af5668404cb )
Fixes: http://tracker.ceph.com/issues/22517
Jos Collin [Fri, 5 Jan 2018 14:07:31 +0000 (19:37 +0530)]
doc: fix typo
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit
a925bb4520797376b4b169bbcfe613cd1fa36429 )
Jos Collin [Fri, 5 Jan 2018 07:11:37 +0000 (12:41 +0530)]
doc: add mount.fuse.ceph to index
Added mount.fuse.ceph to index.rst
Fixes: http://tracker.ceph.com/issues/22595
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit
db23f4ce30cd521b5b8909edc8c26dc87aeecd98 )
Jos Collin [Mon, 27 Nov 2017 10:46:35 +0000 (16:16 +0530)]
doc: doc for mount.fuse.ceph
Created doc for mount.fuse.ceph.
Fixes: http://tracker.ceph.com/issues/21539
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit
6c39818eaf39358cab8dd3dce579c932fba0d05d )
Jason Dillaman [Tue, 3 Oct 2017 17:25:33 +0000 (13:25 -0400)]
qa/workunits/rbd: fixed variable name for resync image id
Fixes: http://tracker.ceph.com/issues/21663
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
22816ed3f48b0a08a6d4e0cf0b0e14dabbb9ce69 )
Jason Dillaman [Wed, 27 Sep 2017 13:40:08 +0000 (09:40 -0400)]
librbd: hold cache_lock while clearing cache nonexistence flags
When transitioning from a snapshot that had an associated parent
to a snapshot where the parent was flattened and removed, the cache
was being referenced without holding the required lock.
Fixes: http://tracker.ceph.com/issues/21558
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
16ef97830cde30efb96f7aee69834b3a5c2d5248 )