コード例 #1
0
ファイル: ceph.py プロジェクト: SergK/fuel-qa
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')
コード例 #2
0
ファイル: ceph.py プロジェクト: mmalchuk/openstack-fuel-qa
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")
コード例 #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')
コード例 #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')