Project

General

Profile

Actions

Bug #11212

closed

ceph-disk incorrectly marks OSD disks as using upstart under systemd

Added by Alfredo Deza about 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

ceph-disk is hardcoded "ubuntu == upstart"; this is not true any longer.

Original issue: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1435464

Actions #1

Updated by Alfredo Deza about 9 years ago

It should be straight forward to fix, this is how ceph-deploy does it which is the same as the Ceph init scripts:

def is_systemd(conn):
    """ 
    Attempt to detect if a remote system is a systemd one or not
    by looking into ``/proc`` just like the ceph init script does::

        # detect systemd
        # SYSTEMD=0
        grep -qs systemd /proc/1/comm && SYSTEMD=1
    """ 
    return conn.remote_module.grep(
        'systemd',
        '/proc/1/comm'
    )
Actions #2

Updated by Alfredo Deza almost 8 years ago

  • Status changed from New to Closed

These is no longer relevant as Ceph is using a tool called ceph-detect-init that is meant to address these detections

Actions

Also available in: Atom PDF