Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1244163

Summary: /etc/init.d/rbdmap relies on functions which are not defined in rhel 7
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Brad Hubbard <bhubbard>
Component: RBDAssignee: Josh Durgin <jdurgin>
Status: CLOSED WONTFIX QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 1.2.3CC: ceph-eng-bugs, ceph-qe-bugs, jdillama, jdurgin, kdreyer, nlevine, vumrao
Target Milestone: rc   
Target Release: 1.2.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1244158 Environment:
Last Closed: 2015-10-19 22:43:12 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:

Description Brad Hubbard 2015-07-17 10:54:23 UTC
+++ This bug was initially created as a clone of Bug #1244158 +++

Description of problem:

Copy ceph.conf and admin keyring from cluster to client.

# grep -v ^# /etc/ceph/rbdmap
rbd-images/test-rbd-image id=admin,keyring=/etc/ceph/ceph.client.admin.keyring

# service rbdmap start
/etc/init.d/rbdmap: line 45: log_action_begin_msg: command not found
/etc/init.d/rbdmap: line 64: log_action_end_msg: command not found

# service rbdmap stop
/etc/init.d/rbdmap: line 100: log_action_begin_msg: command not found
/etc/init.d/rbdmap: line 121: log_action_end_msg: command not found


Version-Release number of selected component (if applicable):
ceph-common-0.94.1-13.el7cp.x86_64

How reproducible:
100%

Steps to Reproduce:
1. See description

Actual results:
Command not found errors seen

Expected results:
No errors, successful execution

Additional info:
log_action_* functions are included in /lib/lsb/init-functions on Ubuntu but not on rhel. It is a simple matter to replace these with "echo" or "logger" calls but of course we need a fix.

Comment 1 Brad Hubbard 2015-07-17 10:56:02 UTC
Problem is worse on 1.2.3 as there are more undefined function calls.

ceph-common-0.80.8-7.el7cp.x86_64

# service rbdmap start
/etc/init.d/rbdmap: line 32: log_daemon_msg: command not found
/etc/init.d/rbdmap: line 54: log_progress_msg: command not found
/etc/init.d/rbdmap: line 60: log_end_msg: command not found
/etc/init.d/rbdmap: line 64: log_action_begin_msg: command not found
/etc/init.d/rbdmap: line 66: log_action_end_msg: command not found
# service rbdmap stop
/etc/init.d/rbdmap: line 71: log_daemon_msg: command not found
/etc/init.d/rbdmap: line 81: log_progress_msg: command not found
/etc/init.d/rbdmap: line 86: log_end_msg: command not found

Comment 2 Neil Levine 2015-10-19 22:43:12 UTC
Pushing all systemd fixes/features/bugs to 1.3 so setting this to Closed.