Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937940 - sys-cluster/ceph-18.2.4-r2 OSDs crashes because of missing lz4 compression
Summary: sys-cluster/ceph-18.2.4-r2 OSDs crashes because of missing lz4 compression
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
: 941233 (view as bug list)
Depends on: 941299
Blocks:
  Show dependency tree
 
Reported: 2024-08-14 23:15 UTC by ev
Modified: 2024-11-17 02:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
example ceph crash (ceph-osd-crash.txt,39.22 KB, text/plain)
2024-08-14 23:15 UTC, ev
Details
fixed rocksdb-7.9.2 ebuild (rocksdb-7.9.2.ebuild,1.29 KB, application/vnd.gentoo.ebuild)
2024-10-06 16:10 UTC, ev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ev 2024-08-14 23:15:58 UTC
Created attachment 900174 [details]
example ceph crash

I've experiencing ceph-osd crashes during startup after upgrade from 18.2.1 to 18.2.4-r2.

It looks like OSD cannot open it's db because of missing LZ4 compression.
I suspect it may be related to recent LZ4 version bump.

Example from the log:

  5 rocksdb: verify_sharding column families from rocksdb: [default,m-0,m-1,m-2,p-0,p-1,p-2,O-0,O-1,O-2,L,P]
 -1 rocksdb: Invalid argument: Compression type LZ4 is not linked with the binary.
 -1 bluestore(/var/lib/ceph/osd/ceph-6300) _open_db erroring opening db: 

The same errors do not appear in 18.2.1.

I've tried to recompile obvious direct dependancies but it didn't help
app-arch/lz4-1.10.0-r1
dev-libs/rocksdb-7.9.2
sys-cluster/ceph-18.2.4-r2

I'm compiling this package with patches I've mentioned here https://bugs.gentoo.org/937928. They affect only python code and shouldn't be relevant.
Comment 1 ev 2024-10-06 16:09:40 UTC
I think I've solved this

Bluestore OSD default behavious has been changed in 18.2.4
https://ceph.io/en/news/blog/2024/v18-2-4-reef-released/
https://github.com/ceph/ceph/pull/55197/commits/61abd175fa3159c7ced7e570b483ae0642999c8f

Our dev-libs/rocksdb-7.9.2 compiles without lz4 support.
I had to enable WITH_LZ4 in rocksdb ebuild. It correctly enables lz4 support.

-- Detecting C compile features                                                                                                                                 
-- Detecting C compile features - done                                          
-- Found lz4: /lib64/liblz4.so                                                                                                                                  
-- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER                                 
-- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER - Success
Comment 2 ev 2024-10-06 16:10:13 UTC
Created attachment 905005 [details]
fixed rocksdb-7.9.2 ebuild
Comment 3 ev 2024-10-06 16:52:06 UTC
I should have checked dev-libs/rocksdb-7.9.2-r1 before looking into this issues. 
-r1 as lz4 enabled by default.
If you're affected by this issue just upgrade to dev-libs/rocksdb-7.9.2-r1
Comment 4 Peter Pavlisko 2024-10-15 09:28:48 UTC
*** Bug 941233 has been marked as a duplicate of this bug. ***