]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yehuda Sadeh [Wed, 31 May 2017 22:01:56 +0000 (15:01 -0700)]
rgw: fix import
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 26 May 2017 18:45:24 +0000 (11:45 -0700)]
test/rgw: drop use of urllib
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 25 May 2017 23:55:07 +0000 (16:55 -0700)]
rgw: get_rest_filter() delete original rest manager
When overriding rest manager, delete original.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 25 May 2017 23:54:18 +0000 (16:54 -0700)]
rgw: check init_sync return code
fix following review
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 25 May 2017 23:53:44 +0000 (16:53 -0700)]
rgw: minor fixes following review
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 25 May 2017 23:53:22 +0000 (16:53 -0700)]
rgw: es: fix system user check
check was inverted
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 4 May 2017 16:45:32 +0000 (09:45 -0700)]
rgw: package radosgw-es
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 22:10:01 +0000 (15:10 -0700)]
rgw: system users override elasticsearch permission filter
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 22:09:38 +0000 (15:09 -0700)]
test_multi: don't pass array as default param to constructor
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 22:09:14 +0000 (15:09 -0700)]
test/rgw/test_multi: cleanup
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 22:08:37 +0000 (15:08 -0700)]
rgw: minor cleanup
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 22:08:22 +0000 (15:08 -0700)]
rgw: adjust log levels
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 21:53:33 +0000 (14:53 -0700)]
rgw: use RGW_AMZ_META_PREFIX
instead of defining X_AMZ_META_PREFIX
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 May 2017 21:50:19 +0000 (14:50 -0700)]
test_multi: realm checkpoint after init
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 2 May 2017 19:45:40 +0000 (12:45 -0700)]
rgw/test_multi: add test_es_bucket_conf test
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 1 May 2017 23:10:47 +0000 (16:10 -0700)]
rgw/test-multi: test more complicated queries
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 1 May 2017 23:08:31 +0000 (16:08 -0700)]
rgw: don't send raw date header to elasticsearch
parse the header, and encode it in the json doc using
a format that ES can understand. Skip header if fails to
parse.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 2 May 2017 20:57:50 +0000 (13:57 -0700)]
rgw/test_multi: add tests for different key types
add int and date tests
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 27 Apr 2017 22:01:11 +0000 (15:01 -0700)]
rgw/test_multi: zone_conn can hold more than one bucket per zone
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 26 Apr 2017 23:30:12 +0000 (16:30 -0700)]
rgw/test_multi/es: extend test
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 26 Apr 2017 20:02:54 +0000 (13:02 -0700)]
test/rgw/test_multi: initial es functional tests
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 19 Apr 2017 23:25:38 +0000 (16:25 -0700)]
test/rgw/test_multi: differentiate between zone and zone connection
Instead of having a Zone type used for the connection, create a new
ZoneConn type that represents the connection. This frees us from the
need to pass in credentials all around.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 14 Apr 2017 00:17:46 +0000 (17:17 -0700)]
rgw/test_multi: add support for elasticsearch testing
Add support for different zone types, and create an elasticsearch
zone type that deals with es testing.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 18 Apr 2017 21:23:03 +0000 (14:23 -0700)]
rgw: es: index and return versioned epoch
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 13 Apr 2017 15:28:25 +0000 (08:28 -0700)]
rgw: move data sync instance_id initialization to caller
so that caller can easily know the instance id.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Apr 2017 23:45:55 +0000 (16:45 -0700)]
rgw: don't pass sync module to rest filter in creation
sync module instance might change due to reconfiguration. Pass it into the
handler when executing op.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Apr 2017 23:45:12 +0000 (16:45 -0700)]
rgw-admin: zone create handles --tier-config
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Apr 2017 15:45:48 +0000 (08:45 -0700)]
rgw: es: use "null" as instance in case key.instance is empty
when indexing objects. We can get either.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 7 Apr 2017 23:34:35 +0000 (16:34 -0700)]
rgw: es: generic keys are not case sensitive
make map case insensitive, and explicitly define all generic keys
so that they can be forced to be lower case.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 7 Apr 2017 22:31:40 +0000 (15:31 -0700)]
rgw: fix time format that is sent to elasticsearch
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 7 Apr 2017 00:27:37 +0000 (17:27 -0700)]
rgw: add missing custom meta map initialization
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 5 Apr 2017 00:30:26 +0000 (17:30 -0700)]
rgw: es: configurable number of replicas and shards
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 4 Apr 2017 19:02:41 +0000 (12:02 -0700)]
rgw: es: add a configurable to override index path
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 4 Apr 2017 18:34:33 +0000 (11:34 -0700)]
rgw: es: elasticsearch index path unique per sync instance
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 4 Apr 2017 17:38:12 +0000 (10:38 -0700)]
rgw: es: configurable list of buckets and owners to index
and a tier configuration that allows to select both list of buckets
and list of bucket owners (if both configured then will intersect
the selection).
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 3 Apr 2017 23:55:17 +0000 (16:55 -0700)]
rgw: create helper for configurable item selection
with optional prefix and suffix.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 3 Apr 2017 22:18:39 +0000 (15:18 -0700)]
rgw: add "explicit_custom_meta" configurable to es sync module
Modify all the map<string, string> that is used to pass in module config
to map<string, string, ltstr> so that it can be used with the conf get
vals util. Also, switch to using shared_ptr to hold the ElasticConfig,
so that later when we hold maps and such it doesn't need to be copied
on every call.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 3 Apr 2017 22:17:29 +0000 (15:17 -0700)]
rgw: expose conf_get(), conf_get_int(), conf_get_bool()
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 3 Apr 2017 22:11:27 +0000 (15:11 -0700)]
common/ceph_json: map type can handle 2 or 3 template arguments
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 31 Mar 2017 23:30:56 +0000 (16:30 -0700)]
rgw: es: handle get config api in es zone
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 31 Mar 2017 22:56:06 +0000 (15:56 -0700)]
rgw: es: api to delete bucket mdsearch config
DELETE /bucket?mdsearch
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 31 Mar 2017 22:30:39 +0000 (15:30 -0700)]
rgw: es: api to retrieve bucket mdsearch config
GET /bucket?mdsearch
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 31 Mar 2017 21:51:05 +0000 (14:51 -0700)]
rgw: es: also return custom int and date results
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 31 Mar 2017 00:11:02 +0000 (17:11 -0700)]
rgw: es: limit indexing to only configured user meta
only metadata keys that are configured on user's bucket are allowed
to be indexed. Also, use the type of meta that was configured.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 30 Mar 2017 23:32:24 +0000 (16:32 -0700)]
rgw: new api to configure bucket's custom keys for mdsearch
POST /bucket?mdsearch
x-rgw-meta-search: <x-amz-meta-key>[;<str|int|date>][,...]
note that x-amz-meta-search header can also be used.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 29 Mar 2017 21:44:03 +0000 (14:44 -0700)]
rgw: guard restricted fields in es query
don't allow users to use the 'permissions' field.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 29 Mar 2017 21:30:45 +0000 (14:30 -0700)]
rgw: add dout defs
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 29 Mar 2017 18:22:02 +0000 (11:22 -0700)]
rgw: support field aliases in es compiler
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 29 Mar 2017 17:57:51 +0000 (10:57 -0700)]
rgw: support more meaningful compilation error string
in es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 29 Mar 2017 00:06:32 +0000 (17:06 -0700)]
rgw: support for generic entities types in es
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 28 Mar 2017 22:43:52 +0000 (15:43 -0700)]
rgw: initial support for multiple types in es requests
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sat, 25 Mar 2017 00:05:47 +0000 (17:05 -0700)]
rgw: metadata search pagination
Leveraging elasticsearch "size" and "from" for doing pagination. This
is not optimal, but sadly it's currently the way to go as elasticsearch
does not have an efficient way to retrieve ordered entries (other than
using stateful api). This should be revisited in the future. A preferable
way would be to hold a unique identifier for each object doc, and have
the query sort by that unique identifier (that could be used as marker).
At the moment sorting by anything would require elasticseatch to load
all data into memory.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 22 Mar 2017 21:01:34 +0000 (14:01 -0700)]
rgw: add permissions and bucket to es query
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 22 Mar 2017 00:44:56 +0000 (17:44 -0700)]
rgw: also dump custom meta entries
when doing metadata search
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 22 Mar 2017 00:12:48 +0000 (17:12 -0700)]
rgw: send request to elasticsearch and parse response
and send back response to user
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 21 Mar 2017 22:02:32 +0000 (15:02 -0700)]
rgw: extend interfaces to allow sending data
when retrieving REST resource
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 21 Mar 2017 21:47:33 +0000 (14:47 -0700)]
rgw: move code around
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 21 Mar 2017 21:42:51 +0000 (14:42 -0700)]
rgw: can send data in RGWRESTStreamRWRequest::send_request()
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 21 Mar 2017 21:17:58 +0000 (14:17 -0700)]
rgw: make key param in RGWRESTStreamRWRequest::send_request() optional
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 2 Sep 2016 19:39:10 +0000 (12:39 -0700)]
rgw: rename a few methods
just rename calls
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 21 Mar 2017 18:47:17 +0000 (11:47 -0700)]
rgw: meta search rest handler can access es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 21 Mar 2017 02:07:21 +0000 (19:07 -0700)]
rgw: work on REST handler for es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sat, 18 Mar 2017 20:27:42 +0000 (13:27 -0700)]
rgw: rename rgw_rest_es.cc to rgw_es_query.cc
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sat, 18 Mar 2017 02:43:46 +0000 (19:43 -0700)]
rgw: simplify es compile interface
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sat, 18 Mar 2017 02:31:19 +0000 (19:31 -0700)]
rgw: move code into class
just cleaning up
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 17 Mar 2017 23:16:39 +0000 (16:16 -0700)]
rgw: handle nested fields in es queries
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 5 Apr 2017 17:23:08 +0000 (10:23 -0700)]
rgw: implement init_sync() callback in es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 17 Mar 2017 00:02:17 +0000 (17:02 -0700)]
rgw: define es index mapping
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 16 Mar 2017 21:13:16 +0000 (14:13 -0700)]
rgw: add init callback to sync modules
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 15 Mar 2017 00:23:47 +0000 (17:23 -0700)]
rgw: initial implementation of mdsearch query compiler
convert infix queries that look as follows:
[(]<name> <operator> <value> [)] [<and|or> ...]
into a prefix structure that is understood by elasticsearch.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 30 May 2017 20:09:31 +0000 (13:09 -0700)]
Merge pull request #15184 from cbodley/wip-qa-rgw-cleanup
qa/rgw: remove apache/fastcgi and radosgw-agent tests
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Casey Bodley [Tue, 30 May 2017 18:16:07 +0000 (14:16 -0400)]
Merge pull request #13851 from zhangsw/optimize-datasync
rgw: optimize data sync. Add zones_trace in log to avoid needless sync.
Reviewed-by: Casey Bodley <cbodley@redhat.com>
David Zafman [Tue, 30 May 2017 17:46:23 +0000 (10:46 -0700)]
Merge pull request #15368 from dzafman/wip-20089
osd: When scrub finds an attr error mark shard inconsistent
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 30 May 2017 17:32:06 +0000 (12:32 -0500)]
Merge pull request #15350 from mrbojangles3/master
libradosstriper: Add example code
Sage Weil [Tue, 30 May 2017 17:29:51 +0000 (12:29 -0500)]
Merge pull request #15356 from joscollin/wip-test-msgr-warning
test/msgr: silence warnings from -Wsign-compare
Sage Weil [Tue, 30 May 2017 17:28:34 +0000 (12:28 -0500)]
Merge pull request #15362 from andihit/doc-rados-xattr-commands
doc: add rados xattr commands to manpage
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 30 May 2017 17:25:39 +0000 (12:25 -0500)]
Merge pull request #15366 from joscollin/wip-cleanup-test-remove-commented-code
test/old: Removed commented code
Reviewed-by: Sage Weil <sage@redhat.com>
David Zafman [Fri, 26 May 2017 00:22:50 +0000 (17:22 -0700)]
osd: When scrub finds an attr error mark shard inconsistent
Fixes: http://tracker.ceph.com/issues/20089
Signed-off-by: David Zafman <dzafman@redhat.com>
Sage Weil [Tue, 30 May 2017 16:02:27 +0000 (11:02 -0500)]
Merge pull request #14971 from SUSE/wip-mgr-py-sub-interpreter
mgr: load modules in separate python sub-interpreters
Reviewed-by: John Spray <john.spray@redhat.com>
Yuri Weinstein [Tue, 30 May 2017 15:44:47 +0000 (08:44 -0700)]
Merge pull request #15259 from zealoussnow/wip-0524
build: remove ceph-disk-udev entirely
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
Yuri Weinstein [Tue, 30 May 2017 15:42:55 +0000 (08:42 -0700)]
Merge pull request #15285 from smithfarm/wip-kill-fcgi
build/ops: drop libfcgi build dependency
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jos Collin [Tue, 30 May 2017 15:30:47 +0000 (21:00 +0530)]
test/old: Removed commented code
There were lot of commented code inside src/test/old/testcrush.cc. This was found while doing
the PR#15364. Removed them.
Signed-off-by: Jos Collin <jcollin@redhat.com>
Sage Weil [Tue, 30 May 2017 14:38:31 +0000 (09:38 -0500)]
Merge pull request #15359 from liewegas/wip-kraken-x
qa/suites/upgrade/kraken-x: enable experimental for bluestore
Reviewed-by: Kefu Chai <kchai@redhat.com>
Andreas Gerstmayr [Tue, 30 May 2017 14:02:09 +0000 (16:02 +0200)]
doc: add rados xattr commands to manpage
Signed-off-by: Andreas Gerstmayr <andreas.gerstmayr@catalysts.cc>
Casey Bodley [Tue, 30 May 2017 13:46:28 +0000 (09:46 -0400)]
Merge pull request #15306 from mikulely/fix-test_multi
rgw: fix test_multi.py default config file path
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Tue, 30 May 2017 13:28:13 +0000 (09:28 -0400)]
qa/suites/upgrade/kraken-x: enable experimental for bluestore
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 30 May 2017 13:22:35 +0000 (08:22 -0500)]
Merge pull request #15294 from liewegas/wip-osd-tree
osd: 'osd tree in|out|up|down' to filter tree results
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 30 May 2017 12:39:12 +0000 (20:39 +0800)]
Merge pull request #15225 from smithfarm/wip-s390-rgw
build/ops: conditionalize rgw Beast frontend so it isn't built on s390x architecture
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 30 May 2017 12:21:16 +0000 (08:21 -0400)]
mon: add up|down|in|out filters to 'osd tree'
For example, 'ceph osd tree down' will show *just* down OSDs and their
ancestors. \o/
Signed-off-by: Sage Weil <sage@redhat.com>
Nathan Cutler [Mon, 29 May 2017 22:37:00 +0000 (00:37 +0200)]
cmake: link radosgw with boost libraries
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Jos Collin [Tue, 30 May 2017 05:19:15 +0000 (10:49 +0530)]
test/msgr: silence warnings from -Wsign-compare
The following warning appears during make:
ceph/src/test/msgr/test_msgr.cc: In member function ‘virtual void MessengerTest_MarkdownTest_Test::TestBody()’:
ceph/src/test/msgr/test_msgr.cc:1474:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
CHECK_AND_WAIT_TRUE(srv_dispatcher.count > last + 1);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
ceph/src/test/msgr/test_msgr.cc:54:9: note: in definition of macro ‘CHECK_AND_WAIT_TRUE’
if (expr) \
^~~~
ceph/src/test/msgr/test_msgr.cc:1475:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (srv_dispatcher.count == last) {
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Signed-off-by: Jos Collin <jcollin@redhat.com>
Kefu Chai [Tue, 30 May 2017 04:28:12 +0000 (12:28 +0800)]
Merge pull request #15355 from joscollin/wip-cleanup-testdenc-warning
test: test_denc.cc: silence warning from -Wsign-compare
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jos Collin [Tue, 30 May 2017 03:05:40 +0000 (08:35 +0530)]
test: test_denc.cc: silence warning from -Wsign-compare
The following warning appears during make:
ceph/src/test/test_denc.cc:669:5: required from here
ceph/src/googletest/googletest/include/gtest/gtest.h:1530:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ceph/src/googletest/googletest/include/gtest/gtest.h:1510:7:
if (val1 op val2) {\
Signed-off-by: Jos Collin <jcollin@redhat.com>
Sage Weil [Tue, 30 May 2017 01:47:52 +0000 (20:47 -0500)]
Merge pull request #15058 from yuyuyu101/wip-rocksdb-opt
kv/rocksdb: supports SliceParts interface
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 30 May 2017 01:47:06 +0000 (20:47 -0500)]
Merge pull request #15068 from liewegas/wip-osdmap-require
osd/OSDMap: replace require_*_osds flags with a single require_osd_release field
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 30 May 2017 01:42:50 +0000 (20:42 -0500)]
Merge pull request #15313 from Linbing/wip-pg-scrub-code-optimize
mon: it's no need to get pg action_primary osd twice in pg scrub
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Mon, 15 May 2017 13:34:11 +0000 (09:34 -0400)]
mon/OSDMonitor: fix osd metadata update ordering
Do not do both.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 12 May 2017 15:43:16 +0000 (11:43 -0400)]
osd: replace all require_*_osds flag checks with a require_osd_release comparison
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 12 May 2017 15:42:52 +0000 (11:42 -0400)]
osd: replace require_*_osds flags with require_osd_release field
- OSDMap encode and decode translate between the flags and int
representations.
- OSDMap::Incremental only does decode; we do not expect to ever encode
an incremental osdmap for an old osd that sets any of these flags.
- the 'osd set' command still lets you set the jewel and kraken flags,
but not luminous.
- OSDMap::apply_incremental handles the conversion of legacy require flags
to the new field if the jewel or kraken flags have to be set before
starting the osd upgrade.
- clear out the legacy flags when we make the luminous transition only;
until then we keep using the old flag in the encoded and decoded version
(although the require_osd_release field will be accurate in memory in all
cases).
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 12 May 2017 15:31:41 +0000 (11:31 -0400)]
mon: new 'osd require-osd-release' command
Note that we only allow setting this to 'luminous'. If the 'jewel' or 'kraken'
flags need to be set that can be done through the legacy interface.
Signed-off-by: Sage Weil <sage@redhat.com>