David Zafman
5fb2b2d139
ceph-osdomap-tool: Add --debug and only show internal logging if enabled
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-03-27 08:33:05 -07:00
David Zafman
fcf1e17c64
osd: DBOjectMap::check: Dump complete mapping when inconsistency found
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-03-27 08:33:05 -07:00
David Zafman
053a273cbc
test_object_map: Use ASSERT_EQ() for check() so failure doesn't stop testing
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-03-27 08:33:05 -07:00
David Zafman
e5e8eb962d
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>
2017-03-27 08:33:04 -07:00
David Zafman
f4101591ad
tools: Add dump-headers command to ceph-osdomap-tool
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-03-27 08:32:28 -07:00
David Zafman
2d94889e9e
tools: Add --oid option to ceph-osdomap-tool
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-03-27 08:31:12 -07:00
David Zafman
937e6a03ea
osd: Remove unnecessary assert and assignment in DBObjectMap
...
Fix and add comment(s)
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-03-27 08:31:12 -07:00
Kefu Chai
52468ae1f9
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>
2017-03-27 22:58:29 +08:00
Jianpeng Ma
903b3fcf4a
os/bluestore: remove unuse perfcounter:l_bluestore_read_wait_flush_lat.
...
Now read don't need flush(). See commit 83e33a32fd
.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-27 10:38:36 -04:00
Haomai Wang
53e0344628
Merge pull request #14088 from Adirl/rdma-cm-2
...
msg/async/rdma: Move resource handling to Device
Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-27 22:25:09 +08:00
John Spray
31fa2fe35f
Merge pull request #13915 from jcsp/wip-19253
...
qa: whitelist new fullness messages in fs tests
2017-03-27 10:22:43 -04:00
Jason Dillaman
91ce416c36
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>
2017-03-27 09:33:56 -04:00
Igor Fedotov
5043d29c4e
os/bluestore: do garbage collection after main write path to be able to call set_lextent from _do_alloc_write (will be required later for blob alignment).
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-03-27 12:34:45 +00:00
Igor Fedotov
367231cea2
os/bluestore: make punch_hole call from set_lextent optional.
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-03-27 12:34:45 +00:00
Igor Fedotov
4ea0f18fc4
os/bluestore: refactor bluestore_blob_t to encapsulate extents/*length fields.
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-03-27 12:34:42 +00:00
Igor Fedotov
4457aaa286
os/bluestore: store blob logical length rather than recalculate it on pextent vector
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-03-27 11:54:52 +00:00
Kefu Chai
f7f5cc7aa1
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>
2017-03-27 12:04:35 +08:00
Kefu Chai
a965e0276b
Merge pull request #10412 from stiopaa1/mon_monitorh_addConstToGetLeader
...
mon/Monitor.h: add const to member function
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-27 11:33:36 +08:00
Jason Dillaman
a5b798fffc
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>
2017-03-26 22:37:45 -04:00
Haomai Wang
8257986468
kv/rocksdb: add option to control whether enable DeleteRange API
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-03-26 14:56:57 -04:00
Haomai Wang
9e092fcc53
kv/RocksDBStore: implement rm_range_keys operator interface and test
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-03-26 14:56:35 -04:00
Matt Benjamin
b894dc6348
Merge pull request #12893 from rzarzynski/wip-rgw-auth-rework-cont-2
...
rgw: continuation of the auth rework
2017-03-26 13:37:14 -04:00
Michal Jarzabek
49ee6939e7
mon/Monitor.h: add const to member functions
...
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2017-03-26 17:47:36 +01:00
Orit Wasserman
9de1f1a676
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>
2017-03-26 10:33:28 +03:00
Pan Liu
5c8d7bd1e4
rbd-nbd: polish the doc and help information.
...
Signed-off-by: Pan Liu <liupan1111@gmail.com>
2017-03-26 14:12:28 +08:00
Mykola Golub
2e97d18b81
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>
2017-03-25 22:26:23 +02:00
Jason Dillaman
70f34cc64d
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>
2017-03-25 16:21:00 -04:00
Haomai Wang
49d0003f5b
Merge pull request #13740 from Adirl/forksafe
...
msg/async/rdma: Add fork safe on RDMA
Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-26 03:38:35 +08:00
Sage Weil
e110ffde50
crush: make get_immediate_parent const
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-25 14:53:14 -04:00
Sage Weil
a6aa42f793
mon/OSDMonitor: add 'osd [rm-]pg-remap[-items] ...' commands
...
Add commands to add and remove pg_remap mappings.
Require that a mon config option is set before this is allowed so that
users don't inadvertantly prevent older clients from interacting with the
cluster.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-25 14:53:14 -04:00
Sage Weil
eebd9a1bc2
osd/OSDMap: ignore pg_remap[_items] mappings when target osd isout
...
If the remap target is fully out, ignore the mapping.
Do not do a probabilistic 'osd_weight' rejection; pg-remap is intended to
avoid probabilistic mappings.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-25 14:53:14 -04:00
Sage Weil
27d6f4373b
osd/OSDMap: add pg_remap and pg_remap_items
...
The first simply forces a pg to map to a particular value. The second
replaces specific OSDs with specific other OSDs in the CRUSH mapping.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-25 14:53:14 -04:00
Sage Weil
e0b90d93c4
osd/OSDMap: clean up primary selection
...
_pg_to_raw_osds was selecting a primary, but it was generally
getting thrown out since _raw_to_up_osds was picking a *new*
primary after filtering out down and nonexistent osds. Add a
_pick_primary helper to do it and call that explicitly in the
callers where it can be used by all.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-03-25 14:53:14 -04:00
Sage Weil
d8d24be869
Merge pull request #13965 from liewegas/wip-bluestore-pc
...
os/bluestore: fix perf counters
2017-03-25 13:08:33 -05:00
Sage Weil
42f3508a4b
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>
2017-03-25 13:07:37 -05:00
wangzhengyong
02add5825c
doc: add some undocumented options to rbd-nbd
...
Signed-off-by: wangzhengyong@cmss.chinamobile.com
2017-03-25 22:37:58 +08:00
liuchang0812
acec741706
osd: add override in headers files
...
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-03-25 12:55:38 +08:00
Kefu Chai
e32b1b8793
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>
2017-03-25 12:13:17 +08:00
Kefu Chai
65fb399ebb
include/denc: add missing {encode,decode}_nohead for denc_traits
...
implement {encode,decode}_nohead() for dec_traits<basic_string> and
bufferlist.
so compiler can find an appropriate version of decode_nohead() when
performing overload resolution. in some architectures, compiler resolves
the __u32 to size_t, which leads to a compilation failure, because the
compiler fails to instantiate the ::decode_nohead() template exposing
traits::decode_nohead().
Fixes: http://tracker.ceph.com/issues/18938
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-25 12:06:04 +08:00
runsisi
d6c146e585
osd/PrimaryLogPG: remove unused custom reaction method for WaitReservation
...
the KickTrim event can be handled by the outer state Trimming properly
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-03-25 11:41:09 +08:00
runsisi
50cb9195e2
osd: remove dispatch_op_fast method declaration
...
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-03-25 11:41:09 +08:00
runsisi
6742769897
osd/PG: remove unused Recovering event
...
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-03-25 11:41:09 +08:00
Dan Mick
ef8980bad2
cmake/modules/SIMDExt.cmake: add whitespace
...
readability, man, readability
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-03-24 20:10:15 -07:00
Radoslaw Zarzynski
9888ec33d5
rgw: implement the dynamic reconfiguration of auth strategies.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 22:45:28 +01:00
Radoslaw Zarzynski
d3b04dfed7
rgw: the S3's local v2 auth engine becomes a fallback conditionally.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 22:45:28 +01:00
Radoslaw Zarzynski
030a6fc9c5
rgw: implement SwiftAnonymousEngine.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 22:45:28 +01:00
Radoslaw Zarzynski
92d44fe3a1
rgw: parametrize the implicit tenancy of rgw::auth::RemoteApplier.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 22:45:28 +01:00
Radoslaw Zarzynski
f13f04bbb3
rgw: RGWPostObj_ObjStore_S3 doesn't instantiate auth strategy for each request anymore.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 22:45:27 +01:00
Radoslaw Zarzynski
1ad1d83997
rgw: fix appending '\0' in the rgw::auth::LocalApplier::to_str().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-24 22:43:59 +01:00
Sage Weil
2d32138670
Merge pull request #13889 from liewegas/wip-denc-nullptr
...
include/denc: remove nullptr runtime magic boundedness check
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-24 16:41:37 -05:00