Bug 1298536 - ceph init script requires /lib/lsb/init-functions
Summary: ceph init script requires /lib/lsb/init-functions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Build
Version: 1.3.2
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: 1.3.2
Assignee: Boris Ranto
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1268971
TreeView+ depends on / blocked
 
Reported: 2016-01-14 11:47 UTC by Tanay Ganguly
Modified: 2016-09-20 01:51 UTC (History)
7 users (show)

Fixed In Version: ceph-0.94.5-2.el7cp
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-29 14:44:51 UTC
Embargoed:


Attachments (Terms of Use)
Command_Log (9.58 KB, text/plain)
2016-01-14 11:47 UTC, Tanay Ganguly
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 14402 0 None None None 2016-01-18 20:34:06 UTC
Red Hat Product Errata RHBA-2016:0313 0 normal SHIPPED_LIVE Red Hat Ceph Storage 1.3.2 bug fix and enhancement update 2016-02-29 19:37:43 UTC

Description Tanay Ganguly 2016-01-14 11:47:37 UTC
Created attachment 1114759 [details]
Command_Log

Description of problem:
Failed to create 2 monitors

Version-Release number of selected component (if applicable):

1.3.2
ceph-common-0.94.5-1.el7cp.x86_64
ceph-mon-0.94.5-1.el7cp.x86_64
ceph-0.94.5-1.el7cp.x86_64

cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)

How reproducible:
2 out of 2 times

Steps to Reproduce:
1. Followed the document to install the ceph Cluster using ISO.
https://gitlab.cee.redhat.com/jowilkin/red-hat-ceph-storage-installation-guide-rhel/blob/v1.3/quick-ceph-deploy.adoc
2. I am able to install Ceph on both OSD and MON Nodes.
3. But while trying to Add Initial Monitors, i.e. ceph-deploy mon create-initial
Not all the Monitor Nodes are getting activated and running.

Out of my 3 Monitor Nodes, only 1 Monitor is being able to run.

Actual results:
Command is failing.

Expected results:
Command should not Fail and all the Monitors should be up and running.

Additional info:
Log of the Failed Command.
ceph.conf

Comment 2 Ken Dreyer (Red Hat) 2016-01-14 15:12:00 UTC
We did patch the init script, for rhbz#1244158 and rhbz#1268971 . Maybe there's a bug in those patches?

Comment 5 Boris Ranto 2016-01-14 16:54:29 UTC
We need the following commit (the file was already patched when I created the upstream PR):

https://github.com/ceph/ceph/commit/bb1fa7f3993dfcd1243b2a9a0bb432c269df215f

The ceph init script does not require any functions from init-functions (at least not anymore) so we should be good to go with just that commit.

@Tanay: Could you please add an additional step to the docs and remove the line saying

. /lib/lsb/init-functions

to verify that the patch will fix the issue for you? Any time before you deploy the mons should be good. You need to do that on all the mons that are failing and the same goes for osds.

Comment 6 Boris Ranto 2016-01-14 17:12:11 UTC
@Tanay: Apparently, I forgot to specify the file you should remove the line from:

/etc/init.d/ceph

Comment 7 Ken Dreyer (Red Hat) 2016-01-15 20:27:11 UTC
Thanks Boris! I'll be sure to get that patch into the next build for v0.94.5 (RHCS 1.3.2)

Comment 8 Tanay Ganguly 2016-01-18 07:12:23 UTC
Yes it worked after commenting the Line 
#. /lib/lsb/init-functions

But strangely, the already running Mon was having that line as well. So why it failed for only those 2 Mons ?

Comment 9 Ken Dreyer (Red Hat) 2016-01-18 16:38:00 UTC
(In reply to Tanay Ganguly from comment #8)
> But strangely, the already running Mon was having that line as well. So why
> it failed for only those 2 Mons ?

My guess is that the redhat-lsb-core package just happened to be present on the Mon that worked, and absent on the Mons that failed.

You can check with `rpm -qv redhat-lsb-core`.

Comment 13 Rachana Patel 2016-01-26 22:09:07 UTC
working as expected hence moving to verified

Comment 15 errata-xmlrpc 2016-02-29 14:44:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:0313


Note You need to log in before you can comment on or make changes to this bug.