Project

General

Profile

Actions

Bug #1695

closed

wrong path to ceph's libs / bash scripts in /etc/init.d/ceph

Added by Serge Rittscher over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

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

Description

After installing Ceph from sources (version ceph-0.37.tar.gz) on Ubuntu by executing

$ ./autogen.sh
$ ./configure
$ make
$ make install

(without any extra parameter) and making the Ceph file system I was not able to start Ceph by using /etc/init.d/ceph -a start. The error message was ".: 35: Can't open /usr/lib/ceph/ceph_common.sh". It was only possible after changing path variables BINDIR and LIBDIR to

BINDIR=/usr/local/bin
LIBDIR=/usr/local/lib/ceph

in /etc/init.d/ceph.

OS:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"

Linux host_name 2.6.38.8 #1 SMP Tue Sep 20 18:12:13 CEST 2011 x86_64 x86_64 x86_64 GNU/Linux

Actions #1

Updated by Sage Weil over 12 years ago

What is the output if you

cd src
touch init-ceph
make init-ceph

?

Actions #2

Updated by Sage Weil over 12 years ago

  • Target version set to v0.39
  • Translation missing: en.field_position set to 1
  • Translation missing: en.field_position changed from 1 to 981
Actions #3

Updated by Serge Rittscher over 12 years ago

make init-ceph

returns:

make: `init-ceph' is up to date.

Actions #4

Updated by Sage Weil over 12 years ago

oops, 'touch init-ceph.in' first, then 'make init-ceph'

Actions #5

Updated by Serge Rittscher over 12 years ago

ok, the output is:

rm -f init-ceph init-ceph.tmp
sed -e 's|@bindir[
]|/usr/local/bin|g' -e 's|libdir[]|/usr/local/lib|g' -e 's|sysconfdir[]|/usr/local/etc|g' -e 's|datadir[]|/usr/local/share/ceph|g' -e 's|prefix[]|/usr/local|g' -e 's|@GCOV_PREFIX_STRIP[][]|5|g' './init-ceph.in' >init-ceph.tmp
chmod +x init-ceph.tmp
chmod a-w init-ceph.tmp
mv init-ceph.tmp init-ceph

Actions #6

Updated by Sage Weil over 12 years ago

  • Status changed from New to Rejected

Serge Rittscher wrote:

ok, the output is:

rm -f init-ceph init-ceph.tmp
sed -e 's|@bindir[
]|/usr/local/bin|g' -e 's|libdir[]|/usr/local/lib|g' -e 's|sysconfdir[]|/usr/local/etc|g' -e 's|datadir[]|/usr/local/share/ceph|g' -e 's|prefix[]|/usr/local|g' -e 's|@GCOV_PREFIX_STRIP[][]|5|g' './init-ceph.in' >init-ceph.tmp
chmod +x init-ceph.tmp
chmod a-w init-ceph.tmp
mv init-ceph.tmp init-ceph

That means the resulting init-ceph has /usr/local/lib in it, right? But the installed /etc/init.d/ceph (before) had /usr/lib?

Ooohhh... 'make install' doesn't install /etc/init.d/ceph.. that's normally taken care of by the deb or rpm packaging. If you have an /etc/init.d/ceph script, I think it came from somewhere else!

Actions

Also available in: Atom PDF