Attempting to start a monitor node with the command:
/sbin/service ceph -c /etc/ceph/X.conf start mon.Y
currently fails on SUSE based systems.
The failure is caused by the service binary's attempt to parse the
-c argument as its own.
Call the ceph init script directly instead to avoid this.
Signed-off-by: David Disseldorp <ddiss@suse.de>
def create(distro, logger, args, monitor_keyring):
hostname = remote_shortname(distro.sudo_conn.modules.socket)
common.mon_create(distro, logger, args, monitor_keyring, hostname)
- service = common.which_service(distro.sudo_conn, logger)
distro.sudo_conn.close()
process.run(
rconn,
[
- service,
- 'ceph',
+ 'rcceph',
'-c',
'/etc/ceph/{cluster}.conf'.format(cluster=args.cluster),
'start',