Project

General

Profile

Actions

Bug #3945

closed

osd: dynamically link to leveldb

Added by Sage Weil about 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
-
Category:
OSD
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

We hit a problem with quantal that underscored the danger of linking statically to libleveldb. After some discussion with Sam we think we should stop doing that.

Instead, we need to:

- create our own libleveldb package (debs and rpms)
- change debian/rules to dynamically link
- update debian/control so that we require >= the current static version.
- for older distros, include our libleveldb package in the release repo, and make debian/control require >= that version.
- remove our submodule


Related issues 1 (0 open1 closed)

Blocks Ceph - Bug #3948: problems from leveldb static linkage and leveldb downgradeResolved01/28/2013

Actions
Actions #1

Updated by Anonymous about 11 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Ian Colle about 11 years ago

  • Priority changed from Normal to Urgent
Actions #3

Updated by Anonymous about 11 years ago

The current version of leveldb that is being used by ceph is 1.2. The wip-leveldb has version 1.9 which is the latest release.

The versions included with distributions are listed below:

Debian Releases
Jessie (8.0)
N/A
Wheezy (7.0)
libleveldb1 1.5 (0+20120530.gitdd0d562-1i)
libleveldb-dev
Squeeze (6.0)
No upstream package

Ubuntu Releases
Raring (13.04)
N/A
Quantal (12.10)
libleveldb1 1.5 (0+20120530.gitdd0d562-2)
libleveldb-dev
Precise (12.04)
libleveldb-dev 1.2 (0+20120125.git3c8be10-1)
static library only
Oneric (11.10)
No upstream package
Natty (11.04)
No upstream package

Centos
Centos6
leveldb-devel 1.7 (epel)

RHEL
RHEL 7
N/A
RHEL 6
leveldb-devel 1.7 (epel)

Fedora
Fedora 19 (TBD)
N/A
Fedora 18
leveldb-devel 1.7
Fedora 17
leveldb-devel 1.7

OpenSuSE
OpenSuse12 (12.2)
No upstream package
SLES
SLES 11 (SP2)
No upstream package

Actions #5

Updated by Anonymous about 11 years ago

The leveldb backports (and libsnappy) available for for platforms that need them.

Actions #6

Updated by Mark Nelson about 11 years ago

packages on gitbuilder currently appear to be broken. An update attempt this morning shows:

nhm@burnupiX:~$ sudo apt-get install ceph
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ceph : Depends: libleveldb1 (>= 1.2) but it is not installable
Recommends: ceph-mds but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Actions #7

Updated by Danny Al-Gaaf about 11 years ago

The problem is that quantal only have libleveldb1 version 0+20120530.gitdd0d562-2 (check http://packages.ubuntu.com/search?lang=de&keywords=libleveldb-dev&searchon=names), which is in fact v1.2 (due to the source of the package, check the NEWS file: "Release 1.2 2011-05-16").

Check pull request for a fix #79 (https://github.com/dalgaaf/ceph/commit/f42a63ba1b1ad7a0948b180bef0bb4a947633e98)

Actions #8

Updated by Sage Weil about 11 years ago

  • Status changed from In Progress to 7
Actions #9

Updated by Dan Mick about 11 years ago

We should also update README to include the new packages

Actions #10

Updated by Anonymous about 11 years ago

Danny's pull request updated the README file. Thanks for the reminder.

Actions #11

Updated by Anonymous about 11 years ago

Backports of leveldb should only be needed for squeeze, oneiric, sles, and opensuse. Squeeze also requires a snappy backport. Packages are on http://gitbuilder.ceph.com/

leveldb-deb-i686/
leveldb-deb-x86_64/
leveldb-rpm-opensuse12.2-x86_64/
leveldb-rpm-sles11-x86_64/

leveldb and snappy are available in the epel repository for centos6/rhel6.

A repository that can be used with apt or yum is in progress.

Actions #12

Updated by Anonymous about 11 years ago

  • Status changed from 7 to Resolved
Actions #13

Updated by Stefan Priebe almost 11 years ago

Can somebody tell me where the snappy .deb is? i can't find it for squeeze under the gitbuilder

Actions #14

Updated by Dan Mick almost 11 years ago

Stefan: I opened http://gitbuilder.ceph.com and it was right there:

http://gitbuilder.ceph.com/leveldb-deb-x86_64/

Edit: nope, you said snappy. Sorry, I don't know about that one.

Actions

Also available in: Atom PDF