Exemplo n.º 1
0
def stop_monitor(remote):
    """Stops ceph-mon service depending on Linux distribution.

    :param remote: devops.helpers.helpers.SSHClient
    :return: None
    :raise: DistributionNotSupported
    """
    logger.debug("Stopping Ceph monitor on {0}".format(remote.host))
    check_distribution()
    if OPENSTACK_RELEASE == OPENSTACK_RELEASE_UBUNTU:
        run_on_remote(remote, 'stop ceph-mon-all')
    if OPENSTACK_RELEASE == OPENSTACK_RELEASE_CENTOS:
        run_on_remote(remote, '/etc/init.d/ceph stop')
Exemplo n.º 2
0
def start_monitor(remote):
    """Starts ceph-mon service depending on Linux distribution.

    :param remote: devops.helpers.helpers.SSHClient
    :return: None
    :raise: DistributionNotSupported
    """
    logger.debug("Starting Ceph monitor on {0}".format(remote.host))
    check_distribution()
    if OPENSTACK_RELEASE_UBUNTU in OPENSTACK_RELEASE:
        remote.check_call("start ceph-mon-all")
    if OPENSTACK_RELEASE_CENTOS in OPENSTACK_RELEASE:
        remote.check_call("/etc/init.d/ceph start")
Exemplo n.º 3
0
def stop_monitor(remote):
    """Stops ceph-mon service depending on Linux distribution.

    :param remote: devops.helpers.helpers.SSHClient
    :return: None
    :raise: DistributionNotSupported
    """
    logger.debug("Stopping Ceph monitor on {0}".format(remote.host))
    check_distribution()
    if OPENSTACK_RELEASE == OPENSTACK_RELEASE_UBUNTU:
        run_on_remote(remote, 'stop ceph-mon-all')
    if OPENSTACK_RELEASE == OPENSTACK_RELEASE_CENTOS:
        run_on_remote(remote, '/etc/init.d/ceph stop')
Exemplo n.º 4
0
def start_monitor(remote):
    """Starts ceph-mon service depending on Linux distribution.

    :param remote: devops.helpers.helpers.SSHClient
    :return: None
    :raise: DistributionNotSupported
    """
    logger.debug("Starting Ceph monitor on {0}".format(remote.host))
    check_distribution()
    if OPENSTACK_RELEASE_UBUNTU in OPENSTACK_RELEASE:
        remote.check_call('start ceph-mon-all')
    if OPENSTACK_RELEASE_CENTOS in OPENSTACK_RELEASE:
        remote.check_call('/etc/init.d/ceph start')