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)
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)
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)
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)