David Zafman
310bf784b7
osd: Use boost::optional instead of snap 0 for "all_clones"
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:51 -07:00
David Zafman
f508ddc6e9
osd, test: When head missing a snapset, clones not an error
...
Fix log message for this case and make into "info"
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:51 -07:00
David Zafman
2e0bb0ae94
osd, test: Keep missing count and log number of missing clones
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:51 -07:00
David Zafman
8227b4b75c
test: Eliminate check for bogus "obj13/head snaps empty" error
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:51 -07:00
David Zafman
c6d283f0f1
ceph-objectstore-tool: Add new remove-clone-metadata object op
...
Fixes : #12740
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
eb0ca42481
osd: Fix trim_object() to not crash on corrupt snapset
...
Add test case to check for trim_object() osd crash
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
caf2d5970b
ceph-objectstore-tool: Improve object spec error handling
...
Add test cases
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
b6302acdd3
ceph-objectstore-tool: Add undocumented clear-snapset command for testing
...
Add test cases using new feature to corrupt SnapSet
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
138a33b894
ceph-objectstore-tool: Add set-size command for objects
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
1688debf78
ceph-objectstore-tool: Enhanced dump command replaces dump-info
...
Show object stat information from objectstore
Show SnapSet if present
Add --head for search by object name
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
b4ba3e6654
test: Add some clones to ceph-objectstore-tool test
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
David Zafman
d276d32865
ceph-objectstore-tool: For corrupt objectstores, don't abort listing on errors
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-10-30 13:01:50 -07:00
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