Sage Weil
7b91e50dbd
doc/man/8/ceph-bluestore-tool: add man page
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Sage Weil
cdee8b26b9
common/options: document 'key', 'keyfile', 'keyring'
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Sage Weil
4785345ace
ceph-bluestore-tool: fix show-label to use dev name as key
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Sage Weil
5e486c2bd3
ceph-bluestore-tool: drop "action ..." print
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Sage Weil
2d217367af
ceph-bluestore-tool: only infer devs if devs.empty()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Sage Weil
72ee7e29fb
ceph-bluestore-tool: implement prime-osd-dir
...
This populates an osd dir based on the metadata in a bluestore
device label.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Sage Weil
8d07fa5ad0
os/bluestore: keep meta items for extra bdev paths
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 14:29:10 -05:00
Radoslaw Zarzynski
23f018c859
test/fio: fix building of the fio_ceph_objectstore plugin.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2017-10-16 19:11:17 +02:00
Jason Dillaman
43b94729ed
Merge pull request #18313 from Carbenium/rbd-map-crash
...
rbd: fix crash during map when "rw" option is specified
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 12:02:27 -04:00
Sage Weil
d4e0c46d89
vstart.sh: specify block files
...
This is mostly just to test ceph-bluestore-tool prime-osd-dir.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 10:56:25 -05:00
Sage Weil
65b707358e
osd: store osd cephx key in "osd_key" meta slot
...
Note that this *only* works with --mkkey (deprecated except for
vstart.sh) and --key <key>. If you write out a full keyring before
running --mkfs it doesn't get populated. Users should pass --key
instead of --keyring in that case.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 10:56:25 -05:00
Sage Weil
75400ead30
ceph-osd: mkkey before mkfs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 10:56:25 -05:00
Sage Weil
33b8e8e86f
os/bluestore: store meta values in main device label
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-10-16 10:56:24 -05:00
Josh Durgin
804f07f3cb
Merge pull request #18238 from tchaikov/wip-bufferlist-test
...
test/unittest_bufferlist: check retvals of syscalls
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-10-16 08:54:40 -07:00
Yan Jun
96b82796ca
vstart.sh: move rgw configuration to client.rgw section
...
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
2017-10-16 23:39:37 +08:00
Nathan Cutler
40caf6a6d8
build/ops: deb: move ceph-*-tool binaries out of ceph-test subpackage
...
ceph-osdomap-tool into ceph-osd subpackage
ceph-monstore-tool into ceph-mon subpackage
ceph-kvstore-tool into the ceph-base subpackage
Fixes: http://tracker.ceph.com/issues/21762
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-10-16 17:39:14 +02:00
David Zafman
6a02bfef3d
osd: Better handle failure to get enough EC shards to backfill
...
Fixes: http://tracker.ceph.com/issues/18162
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-16 08:24:52 -07:00
David Zafman
8a8e088c13
osd: Fix object_copies calculation so degraded is accurate
...
Fixes: http://tracker.ceph.com/issues/21803
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-10-16 08:13:45 -07:00
Jason Dillaman
78e5c0fbd8
Merge pull request #18129 from dragonylffly/wip-fix-coverity-warning-for-uninialized-member
...
librbd: fix coverity warning for uninitialized member
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 11:01:13 -04:00
Jason Dillaman
6a64eef39d
Merge pull request #18314 from MahatiC/example_librbd
...
examples: add new librbd example
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 10:54:10 -04:00
Jason Dillaman
717792ee61
Merge pull request #18265 from majianpeng/lirbd-cleanup
...
librbd: drop redundant check for null ImageCtx
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 10:53:00 -04:00
Kefu Chai
211fa02579
Merge pull request #18326 from joscollin/wip-log-sign-compare-warning
...
log: silence warning from -Wsign-compare
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-10-16 22:52:25 +08:00
Chang Liu
71fcff2edc
tool: do not core dump with a invalid kv type
...
Fixes: http://tracker.ceph.com/issues/21744
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2017-10-16 22:52:10 +08:00
Chang Liu
8d5d9c6a62
test: new test case for ceph-kvstore-tool
...
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2017-10-16 22:52:10 +08:00
liuchang0812
51b5ba1aa2
doc: introduce repair subcommon of ceph-kvstore-tool
...
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-10-16 22:52:10 +08:00
liuchang0812
4849ce3cc9
common, tool: update kvstore-tool to repair our key/value database
...
Fixes: http://tracker.ceph.com/issues/17730
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-10-16 22:52:10 +08:00
Jason Dillaman
80bb052aa3
Merge pull request #18288 from trociny/wip-metadata
...
test/librbd: test metadata_set/remove is applied
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 10:51:50 -04:00
Abhishek L
2a9cbc353f
Merge pull request #15941 from oritwas/wip-rgw-dynamic-resharding-doc
...
rgw: Add dynamic resharding documentation
Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-By: Alfredo Deza <adeza@redhat.com>
2017-10-16 15:58:58 +02:00
PCzhangPC
c7a9b385b4
rbd:show read:write proportion in the infomation of readwrite bench test
...
Signed-off-by: PCzhangPC <pengcheng.zhang@easystack.cn>
2017-10-16 21:26:17 +08:00
Kefu Chai
e5eead34bc
Merge pull request #18209 from tchaikov/wip-new-style-opt-mon
...
mon/OSDMonitor: use new style options
Reviewed-by: John Spray <john.spray@redhat.com>
2017-10-16 21:01:33 +08:00
John Spray
c21765a450
Merge pull request #18093 from jcsp/wip-mgr-gil-safety
...
mgr: safety checks on pyThreadState usage
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2017-10-16 13:22:07 +01:00
Jos Collin
e380221a45
log: silence warning from -Wsign-compare
...
This warning appears in jenkins build:
/home/jenkins-build/build/workspace/ceph-pull-requests/src/log/test.cc:266:232: required from here
/home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (lhs == rhs) {
Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-10-16 17:49:13 +05:30
John Spray
625e1b5cfb
mgr: safety checks on pyThreadState usage
...
Previously relied on the caller of Gil() to
pass new_thread=true if they would be
calling from a different thread.
Enforce this with an assertion, by wrapping
PyThreadState in a SafeThreadState class
that remembers which POSIX thread
it's meant to be used in.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-10-16 07:06:23 -04:00
John Spray
23c3a075ee
mgr: move Gil implementation into .cc
...
The inclusion of Python.h in the .h was awkward
for other files including Gil.h.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-10-16 07:06:23 -04:00
John Spray
987612a975
mgr: reduce Gil verbosity at level 20
...
Even at 20, it's pretty heavy to be logging
every lock acquire/release.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-10-16 07:06:22 -04:00
Nathan Cutler
d7b493a710
build/ops: rpm: move ceph-*-tool binaries out of ceph-test subpackage
...
ceph-osdomap-tool into ceph-osd subpackage
ceph-monstore-tool into ceph-mon subpackage
ceph-kvstore-tool into the ceph-base subpackage
Fixes: http://tracker.ceph.com/issues/21762
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-10-16 09:47:55 +02:00
Shinobu Kinjo
a583eac46f
include/unordered_map/_set | cleanup: Remove unused header, ciso646
...
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
2017-10-16 14:30:56 +09:00
Shinobu Kinjo
75b812b520
osd | cleanup: Don't include same header twice
...
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
2017-10-16 12:06:02 +09:00
linbing
da8dc4d4c6
bluestore: using bluestore_compression_min_blob_size instead of bluestore_compression_max_blob_size to config comp_min_blob_size
...
Signed-off-by: linbing <linbing@t2cloud.net>
2017-10-16 09:57:23 +08:00
Patrick Donnelly
3455a38f73
Merge PR #18309 into master
...
* refs/pull/18309/head:
mds: prevent trim count from underflowing
Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-10-15 17:02:54 -07:00
Jason Dillaman
04c5d12acc
librbd: batch large object map updates into multiple chunks
...
Fixes: http://tracker.ceph.com/issues/21797
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 18:12:50 -04:00
Jason Dillaman
4674b578d8
test/librbd: initial test cases for trim state machine
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 17:01:22 -04:00
Mahati Chamarthy
6e9b62b600
examples: add new librbd example
...
Adds a librbd example
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
2017-10-15 19:43:45 +05:30
Jason Dillaman
3220480d4a
librbd: tweaks to support testing of trim state machine
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 09:13:07 -04:00
Jason Dillaman
72ce4576fa
librbd: combine trim state machine object map batch update states
...
The PRE/POST states were previously divided into two halves for handling
the copy-up batch and the direct removal batch. This can be simplified by
just using a single PRE/POST for the entire deletion region.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 09:13:07 -04:00
Jason Dillaman
fc99603ea2
cls/rbd: object map update now utilizes constant-time bit vector operations
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 09:13:07 -04:00
Jason Dillaman
daa29f7d2b
common/bit_vector: provide constant time iteration of underlying bufferlist
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 09:13:07 -04:00
Jason Dillaman
f35947e3c6
common/buffer: expose hidden const deference operator
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-15 09:13:06 -04:00
Peter Keresztes Schmidt
9e49c41244
rbd: fix crash during map
...
Currently the iterator isn't advanced after the erase call leading to a
second call on the iterator, which crashes due to a double free.
Since C++11 the map::erase function returns an iterator pointing to the
next element. Use the return value to set the iterator after erasing.
Fixes: http://tracker.ceph.com/issues/21808
Signed-off-by: Peter Keresztes Schmidt <carbenium@outlook.com>
2017-10-15 14:37:25 +02:00
Orit Wasserman
4f3ab7cda0
rgw: Add dynamic resharding documentation
...
Fixes: http://tracker.ceph.com/issues/21553
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2017-10-15 15:02:46 +03:00