Actions
Bug #14695
closedosd: rados cppool omap to ec pool crashes osd
Status:
Resolved
Priority:
Urgent
Assignee:
-
Category:
OSD
Target version:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
hammer
Regression:
No
Severity:
2 - major
Reviewed:
Description
If we do cppool from a replicated pool to erasure in hammer 0.94.5, this will cause an OSD assert error when it tries to write the omap object.
User side:
# rados cppool .rgw.buckets.index test-ec .rgw.buckets.index:.dir.default.39904722.872 => test-ec:.dir.default.39904722.872 2016-02-08 17:31:08.652540 7f21aea12700 0 -- 128.142.36.227:0/3721633 >> 188.184.18.39:6851/2788949 pipe(0x7f21a405ffa0 sd=5 :0 s=1 pgs=0 cs=0 l=1 c=0x7f21a4065c00).fault ^C
ceph-osd assert failure:
-1> 2016-02-08 17:30:35.042187 7f66ecab6700 1 -- 188.184.18.39:0/2789844 <== osd.237 128.142.23.40:6891/842231 1 ==== osd_op_rep ly(1 .dir.default.39904722.872 [copy-get max 8388608] v0'0 uv1 ondisk = 0) v6 ==== 192+0+211 (2786091916 0 4072082031) 0x1dd6c940 con 0x2061e3c0 0> 2016-02-08 17:30:35.076894 7f66f5118700 -1 osd/ReplicatedPG.cc: In function 'void ReplicatedPG::_write_copy_chunk(ReplicatedP G::CopyOpRef, PGBackend::PGTransaction*)' thread 7f66f5118700 time 2016-02-08 17:30:35.042276 osd/ReplicatedPG.cc: 6431: FAILED assert(cop->omap_header.length() == 0) ceph version 0.94.5 (9764da52395923e0b32908d83a9f7304401fee43) 1: (ReplicatedPG::_write_copy_chunk(boost::shared_ptr<ReplicatedPG::CopyOp>, PGBackend::PGTransaction*)+0xb43) [0x895cd3] 2: (ReplicatedPG::_build_finish_copy_transaction(boost::shared_ptr<ReplicatedPG::CopyOp>, PGBackend::PGTransaction*)+0x114) [0x895e7 4] 3: (ReplicatedPG::process_copy_chunk(hobject_t, unsigned long, int)+0x56a) [0x8d4baa] 4: (C_Copyfrom::finish(int)+0xb7) [0x914517] 5: (Context::complete(int)+0x9) [0x69a4d9] 6: (Finisher::finisher_thread_entry()+0x188) [0xa4fc78] 7: /lib64/libpthread.so.0() [0x3358a07a51] 8: (clone()+0x6d) [0x33586e893d]
Probably this needs to be backported to hammer?
https://github.com/ceph/ceph/commit/2b4acfb1b808b98132a771cf1089063c0f7a75b5
Actions