def clean_clusters_installing_progress(cluster_hosts): """clean installing progress of the given cluster. :param cluster_hosts: the cluster and hosts of each cluster to clean. :type cluster_hosts: dict of int to list of int """ clean_installing_progress.clean_installing_progress(cluster_hosts)
def clean_clusters_installing_progress(cluster_hosts): """clean installing progress of the given cluster. :param cluster_hosts: the cluster and hosts of each cluster to clean. :type cluster_hosts: dict of int to list of int """ try: clean_installing_progress.clean_installing_progress(cluster_hosts) except Exception as error: logging.exception(error)
def clean_clusters_installing_progress(cluster_hosts): """clean installing progress of the given cluster. :param cluster_hosts: the cluster and hosts of each cluster to clean. :type cluster_hosts: dict of int to list of int """ try: clean_installing_progress.clean_installing_progress(cluster_hosts) except Exception as error: logging.exception(error)
def clean_installation_progress(): """Clean clusters and hosts installation progress. .. note:: The cluster and hosts is defined in --clusters. The clusters flags is as clusterid:hostname1,hostname2,...;... """ cluster_hosts = util.get_clusters_from_str(flags.OPTIONS.clusters) if flags.OPTIONS.async: celery.send_task('compass.tasks.clean_installing_progress', (cluster_hosts,)) else: clean_installing_progress.clean_installing_progress(cluster_hosts)
def clean_installation_progress(): """Clean clusters and hosts installation progress. .. note:: The cluster and hosts is defined in --clusters. The clusters flags is as clusterid:hostname1,hostname2,...;... """ cluster_hosts = util.get_clusters_from_str(flags.OPTIONS.clusters) if flags.OPTIONS. async: celery.send_task('compass.tasks.clean_installing_progress', (cluster_hosts, )) else: clean_installing_progress.clean_installing_progress(cluster_hosts)