Bug 1244163 - /etc/init.d/rbdmap relies on functions which are not defined in rhel 7
Summary: /etc/init.d/rbdmap relies on functions which are not defined in rhel 7
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 1.2.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 1.2.4
Assignee: Josh Durgin
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-17 10:54 UTC by Brad Hubbard
Modified: 2017-07-30 15:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1244158
Environment:
Last Closed: 2015-10-19 22:43:12 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 12415 0 None None None Never

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.


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