Skip to contentSkip to conversation

Assertion in v0.40 - os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error")

DISCUSSION Martin Mailand 2 participants 6 messages Jan 14, 2012 – Jan 16, 2012

lore
Share & tools
lore
#0 lore raw

Hi
one of four OSD died during the update to v0.40 with an Assertion os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error") Even after a complete shutdown of the cluster an a new start with all OSD at the same version, this osd did not start.

The OSD Log it attached.

-martin

#1 lore raw

Hi Martin-

Quoted 7 lines · Martin Mailand

Hi
one of four OSD died during the update to v0.40 with an Assertion os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error") Even after a complete shutdown of the cluster an a new start with all OSD at the same version, this osd did not start.

The OSD Log it attached.

It's trying to replay a transaction that appears to be invalid because the .2 clone is smaller than it thinks. Is this the first time the OSD crashed, or did it crash once, and you cranked up logs and generated this one? If you have the previous log, that would be helpful... it should have a similar tranasction dump but a different stack trace.

Also, are any of the 6 patches on top of 0.40 related to the filestore or osd?

Thanks!
sage

#2 lore raw

Hi Martin-

Quoted 10 lines · Sage Weil

Hi Martin-

Quoted 6 lines · Martin Mailand

Hi
one of four OSD died during the update to v0.40 with an Assertion os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error") Even after a complete shutdown of the cluster an a new start with all OSD at the same version, this osd did not start.

Quoted 7 lines
Quoted 1 line

The OSD Log it attached.

It's trying to replay a transaction that appears to be invalid because the .2 clone is smaller than it thinks. Is this the first time the OSD crashed, or did it crash once, and you cranked up logs and generated this one? If you have the previous log, that would be helpful... it should have a similar tranasction dump but a different stack trace.

I pushed a wip-osd-dump-journal branch to git that will make

	ceph-osd -i <whatever> --dump-journal > /tmp/foo.txt

dump the contents of your entire osd journal (sans data) to a text file. Do you mind sending that along as well? I'd like to see what is in the journal _after_ the event that is failing (if anything).

Thanks!
sage

Quoted 13 lines

Also, are any of the 6 patches on top of 0.40 related to the filestore or osd?

Thanks!
sage

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hi Sage,

here is the requested dump file.

http://85.214.49.87/ceph/foo.txt.bz2

-martin

Am 15.01.2012 06:52, schrieb Sage Weil:

Quoted 46 lines

Hi Martin-

Quoted 10 lines · Sage Weil

Hi Martin-

Quoted 6 lines · Martin Mailand

Hi
one of four OSD died during the update to v0.40 with an Assertion os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error") Even after a complete shutdown of the cluster an a new start with all OSD at the same version, this osd did not start.

Quoted 7 lines
Quoted 1 line

The OSD Log it attached.

It's trying to replay a transaction that appears to be invalid because the .2 clone is smaller than it thinks. Is this the first time the OSD crashed, or did it crash once, and you cranked up logs and generated this one? If you have the previous log, that would be helpful... it should have a similar tranasction dump but a different stack trace.

I pushed a wip-osd-dump-journal branch to git that will make

	ceph-osd -i<whatever>  --dump-journal>  /tmp/foo.txt

dump the contents of your entire osd journal (sans data) to a text file. Do you mind sending that along as well? I'd like to see what is in the journal _after_ the event that is failing (if anything).

Thanks!
sage

Quoted 13 lines

Also, are any of the 6 patches on top of 0.40 related to the filestore or osd?

Thanks!
sage

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to Sage Weil

Hi Sage,
that's exactly what I did, the first two crashes are in this log, unfortunately there was no debug level set.

http://85.214.49.87/ceph/osd.0.full.log.bz2

-martin

Am 15.01.2012 03:45, schrieb Sage Weil:

Quoted 24 lines

Hi Martin-

Quoted 7 lines · Martin Mailand

Hi
one of four OSD died during the update to v0.40 with an Assertion os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error") Even after a complete shutdown of the cluster an a new start with all OSD at the same version, this osd did not start.

The OSD Log it attached.

It's trying to replay a transaction that appears to be invalid because the .2 clone is smaller than it thinks. Is this the first time the OSD crashed, or did it crash once, and you cranked up logs and generated this one? If you have the previous log, that would be helpful... it should have a similar tranasction dump but a different stack trace.

Also, are any of the 6 patches on top of 0.40 related to the filestore or osd?

Thanks!
sage

#5 lore raw
Quoted 3 lines · Martin Mailand

Hi Sage,
that's exactly what I did, the first two crashes are in this log, unfortunately there was no debug level set.

Whoops, right.. the (old) replay messages above confused me.

There are a couple possibilities here. One is that the recovery code went in the wrong order. I'm a bit skeptical, though, and even if it did, this was mostly just rewritten in wip-backfill for 0.41, so I don't think it's worth debugging. We have some tools to hammer on then snapshot + recovery code, but they aren't in the regular qa rotation yet.

More likely is that the SnapSet notion of clone_overlap got out of sync with the actual clones. To check that, we need a dump of the xattrs on the _head object. File sizes and attrs for the clones would help too.

Are the _2 clone objects on other replicas 4MB or 23 bytes?

Is this keeping your cluster down? If so, you can work around the problem by making the _2 clone object 4MB so that reply will succeed. Just be aware that that rbd image's content will be corrupted. :/

sage

Quoted 39 lines

http://85.214.49.87/ceph/osd.0.full.log.bz2

-martin

Am 15.01.2012 03:45, schrieb Sage Weil:

Quoted 19 lines

Hi Martin-

Quoted 8 lines · Martin Mailand

Hi
one of four OSD died during the update to v0.40 with an Assertion os/FileStore.cc: 2438: FAILED assert(0 == "unexpected error") Even after a complete shutdown of the cluster an a new start with all OSD at
the same version, this osd did not start.

The OSD Log it attached.

It's trying to replay a transaction that appears to be invalid because the .2 clone is smaller than it thinks. Is this the first time the OSD crashed, or did it crash once, and you cranked up logs and generated this one? If you have the previous log, that would be helpful... it should have a similar tranasction dump but a different stack trace.

Quoted 6 lines

Also, are any of the 6 patches on top of 0.40 related to the filestore or osd?

Thanks!
sage

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html