David Zafman
b0c884ba8b
ceph-objectstore-tool: Improve some error messages
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
0564f39826
ceph-objectstore-tool: White space fixes
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
9222f56403
tools/rados: Improve xattr import handling so future internal xattrs ignored
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
e5ad33ec07
test: Test scrubbing of snapshot problems
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
e0b3965002
osd: Don't crash if OI_ATTR attribute is missing or corrupt
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:41 -07:00
David Zafman
9e48e1801e
osd: Additional _scrub() check for snapset inconsistency
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:27 -07:00
David Zafman
3b381caaad
osd: Better SnapSet scrub checking (find issues instead of asserting)
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:24 -07:00
David Zafman
a23036c6fd
osd: Make the _scrub routine produce good output and detect errors properly
...
Catch decode errors so osd doesn't crash on corrupt OI_ATTR or SS_ATTR
Use boost::optional<> to make current state clearer
Create next_clone as needed using head/curclone
Add equivalent logic after getting to end of scrubmap.objects
Fixes : #12738
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:23 -07:00
David Zafman
545e4b2c58
osd: Fix log message name of ceph-objectstore-tool
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-25 19:07:01 -07:00
Sage Weil
0b2170c1a7
Merge pull request #6224 from vmcloud/wip-13443
...
ceph-fuse: fix log restart timing after fork
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-25 16:09:26 -04:00
Sage Weil
9f0ecf94ba
Merge pull request #6305 from majianpeng/optimize-get-object-context
...
osd: optimize ReplicatedPG::get_object_context() SnapContext setup
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-25 12:09:05 -04:00
Sage Weil
8eafeecccc
Merge pull request #6244 from majianpeng/filestore-xattr
...
os/FileStore: avoid removexattr call on chain_setxattr when value is known to be small
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-25 12:06:43 -04:00
Sage Weil
afe7e80a10
Merge pull request #6299 from H3C/wip-yrf-malloc
...
osd/tools: avoid unnecessary new and delete ObjectStore::Transaction calls
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-25 12:04:17 -04:00
Sage Weil
aed8559e3d
Merge pull request #6306 from H3C/wip-mon-auth
...
mon: should not set isvalid = true when cephx_verify_authorizer return false
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-25 12:01:28 -04:00
Sage Weil
631469c40b
Revert "Speed optimizations. Merged 3 writes into 1."
...
This reverts commit 91497e4633
.
Oops, this is injecting \0 in the log output.
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-25 11:50:20 -04:00
Sage Weil
62b522edf3
Merge pull request #6307 from aclamk/wip-faster-log
...
log/Log.cc: speed optimizations. Merged 3 writes into 1.
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-25 11:38:55 -04:00
Sage Weil
aed2e87e80
Merge pull request #6326 from liewegas/wip-cache-pin-unpin
...
osd: add pin/unpin support to cache tier
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-24 08:31:16 -04:00
Sage Weil
c02f33dbaa
Merge pull request #6240 from xiexingguo/xxg-wip-13471
...
osd: primary and up_primary when building a new past_interval
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-24 08:30:47 -04:00
Sage Weil
09d0c8adae
Merge pull request #5954 from rohanmars/wip-rhel59-fixes
...
rhel 5.9 librados compile fix, moved blkid to RBD check/compilation
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-24 08:30:12 -04:00
Sage Weil
69ace85585
Merge pull request #6210 from dx9/wip-12406-alpine-string-macro
...
assert: __STRING macro is not defined by musl libc.
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-24 08:29:58 -04:00
Sage Weil
d9debd658d
Merge pull request #6243 from free-luowei/master
...
Init crush_location in Objecter from config file.
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-24 08:29:48 -04:00
Sage Weil
72d008f5dc
Merge pull request #6252 from dx9/wip-12406-mallinfo
...
common/MemoryModel: Added explicit feature check for mallinfo().
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-24 08:29:16 -04:00
Sage Weil
5c4bfeaac0
Merge pull request #6277 from branch-predictor/bp-pgload-rm-interim-set
...
osd: drop the interim set from load_pgs()
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-24 08:28:51 -04:00
Xiaoxi Chen
252ffe0155
Merge pull request #6333 from xiexingguo/xxg-wip-13552
...
LFNIndex: remove redundant local variable 'obj'.
2015-10-23 23:30:58 +08:00
Kefu Chai
4a7318b34f
Merge pull request #6360 from xiexingguo/xxg-wip-13575
...
ReplicatedPG: remove unused local variables
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-23 23:05:58 +08:00
Loic Dachary
52c2a22a1c
Merge pull request #6342 from dachary/wip-ceph-disk
...
tests: ceph-disk workunit uses configobj
2015-10-23 13:56:43 +02:00
xiexingguo
ebfd750daf
ReplicatedPG: remove unused local variables
...
remove some unused local variables.
Fixes : #13575
Signed-off-by: xie.xingguo@zte.com.cn
2015-10-23 15:54:27 +08:00
Loic Dachary
f4906a124c
tests: ceph-disk workunit uses configobj
...
Instead of using augtool to modify the configuration file, use
configobj. It is also used by the install teuthology task. The .ini
lens (puppet lens really) is unable to read ini files created by
configobj.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-10-23 00:44:23 +02:00
Loic Dachary
163de5b0f8
tests: ceph-disk workunit uses the ceph task
...
The ceph-disk workunit deploy keys that are not deployed by default by
the ceph teuthology task.
The OSD created by the ceph task are removed from the default
bucket (via osd rm) so they do not interfere with the tests.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-10-23 00:43:30 +02:00
Sage Weil
136bc3fcd3
Merge pull request #6355 from ritz303/wip-doc-12784
...
doc: Updated the OS recommendations for newer Ceph releases
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-22 16:18:15 -04:00
ritz303
03e556be67
doc: Removed the NOTE section about non-LTS supported distributions
...
Fixes: 12784
Signed-off-by: ritz303 <ritz_303@yahoo.com>
2015-10-22 15:10:19 -05:00
Sage Weil
0c19782a8d
Merge pull request #6346 from guangyy/rgw-core
...
rgw: support core file limit for radosgw daemon
Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-22 13:51:55 -04:00
ritz303
9bf21ee2b9
doc: Updated the OS recommendations for newer Ceph releases
...
Fixes: 12784
Signed-off-by: ritz303 <ritz_303@yahoo.com>
2015-10-22 11:20:49 -05:00
Kefu Chai
8d5ef0ecb9
Merge pull request #6343 from dx9/wip-12406-xattr
...
os/chain_xattr: On linux use linux/limits.h for XATTR_NAME_MAX.
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-22 18:04:29 +08:00
Guang Yang
ea52014ebe
rgw: support core file limit for radosgw daemon
...
When calling daemon function, the default is to disable the core dump
by setting the core file limit as 0, we provide a configuration in
ceph.conf to explicity configure the core file size.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2015-10-22 05:33:08 +00:00
John Coyle
96106b585a
os/chain_xattr: On linux use linux/limits.h for XATTR_NAME_MAX.
...
Signed-off-by: John Coyle <dx9err@gmail.com>
2015-10-21 20:08:43 -04:00
xiexingguo
57af6316e7
LFNIndex: remove redundant local variable 'obj'.
...
local variable 'obj' in LFNIndex::list_subdirs() never used and shall be removed.
Fixes : #13552
Signed-off-by: xie.xingguo@zte.com.cn
2015-10-22 07:28:48 +08:00
Kefu Chai
89b2b9b5c0
Merge pull request #6285 from dx9/wip-12406-envz
...
drop envz.h includes
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-21 10:35:55 +08:00
Gregory Farnum
d763555233
Merge pull request #6301 from dx9/wip-12406-ditch-loff_t-for-off_t
...
libcephfs: Improve portability by replacing loff_t type usage with off_t
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-10-20 13:44:58 -07:00
David Zafman
6e002c6549
Merge pull request #6196 from guangyy/wip-12754
...
osd: auto repair EC pool
Reviewed-by: David Zafman <dzafman@redhat.com>
2015-10-20 11:11:00 -07:00
Zhiqiang Wang
597c43ea39
tracing: add tracepoints for cache pin/unpin
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:10 -04:00
Zhiqiang Wang
478389924b
osd: return ENOENT when object doesn't exist for cache pin/unpin
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
59d0de7c54
test/tier: add test for cache_pin
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
36b2d3d7bc
test/tier: test flush/evict on pinned object
...
Should return -EINVAL.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
c18421819c
osd/ReplicatedPG: reject flush/evict ops on pinned objects
...
Return with -EINVAL.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
c502ea1086
librados: add RADOS C interfaces for pin/unpin object
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
a07d4c95b6
osd: only allow pin/unpin op on the cache tier
...
Reject the op when the pin/unpin op is not on the cache tier.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
0643845665
osd: add num_objects_pinned in object_stat_sum_t
...
To track the number of objects pinned in a PG.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:36:09 -04:00
Zhiqiang Wang
f824c937e6
osd/ReplicatePG: skip flush/evict pinned objects
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:34:50 -04:00
Zhiqiang Wang
5cd10e431d
osd: force promotion when pin an object in cache tier
...
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
2015-10-20 10:34:50 -04:00