Beispiel #1
0
def reinstall_clusters(cluster_hosts):
    """reinstall the given cluster.

    :param cluster_hosts: the cluster and hosts of each cluster to reinstall.
    :type cluster_hosts: dict of int to list of int
    """
    reinstall.reinstall(cluster_hosts)
Beispiel #2
0
def reinstall_clusters(cluster_hosts):
    """reinstall the given cluster.

    :param cluster_hosts: the cluster and hosts of each cluster to reinstall.
    :type cluster_hosts: dict of int to list of int
    """
    try:
        reinstall.reinstall(cluster_hosts)
    except Exception as error:
        logging.exception(error)
Beispiel #3
0
def reinstall_clusters(cluster_hosts):
    """reinstall the given cluster.

    :param cluster_hosts: the cluster and hosts of each cluster to reinstall.
    :type cluster_hosts: dict of int to list of int
    """
    try:
        reinstall.reinstall(cluster_hosts)
    except Exception as error:
        logging.exception(error)
Beispiel #4
0
def reinstall_clusters():
    """Reinstall hosts in clusters.

    .. note::
       The hosts are defined in --clusters.
       The clusters flag is as clusterid:hostname1,hostname2,...;...
    """
    cluster_hosts = flags.OPTIONS.clusters
    if flags.OPTIONS.async:
        celery.send_task('compass.tasks.reinstall', (cluster_hosts,))
    else:
        reinstall.reinstall(cluster_hosts)
Beispiel #5
0
def reinstall_clusters():
    """Reinstall hosts in clusters.

    .. note::
       The hosts are defined in --clusters.
       The clusters flag is as clusterid:hostname1,hostname2,...;...
    """
    cluster_hosts = flags.OPTIONS.clusters
    if flags.OPTIONS. async:
        celery.send_task('compass.tasks.reinstall', (cluster_hosts, ))
    else:
        reinstall.reinstall(cluster_hosts)