Bug 1298536

Summary: ceph init script requires /lib/lsb/init-functions
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tanay Ganguly <tganguly>
Component: BuildAssignee: Boris Ranto <branto>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 1.3.2CC: ceph-eng-bugs, hnallurv, kdreyer, kurs, mlawrenc, racpatel, vakulkar
Target Milestone: rc   
Target Release: 1.3.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-0.94.5-2.el7cp Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-29 14:44:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1268971    
Attachments:
Description Flags
Command_Log none

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