def clean_clusters_deployment(cluster_hosts): """clean deployment 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_deployment.clean_deployment(cluster_hosts)
def clean_clusters_deployment(cluster_hosts): """clean deployment 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_deployment.clean_deployment(cluster_hosts) except Exception as error: logging.exception(error)
def clean_clusters(): """Delete clusters and hosts. .. note:: The clusters and hosts are defined in --clusters. the clusters flag 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_deployment', (cluster_hosts,)) else: clean_deployment.clean_deployment(cluster_hosts)
def clean_clusters(): """Delete clusters and hosts. .. note:: The clusters and hosts are defined in --clusters. the clusters flag 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_deployment', (cluster_hosts, )) else: clean_deployment.clean_deployment(cluster_hosts)