def redeploy_cluster(deployer_email, cluster_id): """Redeploy the given cluster. :param cluster_id: id of the cluster :type cluster_id: int """ try: deploy.redeploy(cluster_id, deployer_email) except Exception as error: logging.exception(error)
def reinstall_cluster(installer_email, cluster_id, clusterhost_ids): """reinstall the given cluster. :param cluster_id: id of the cluster :type cluster_id: int :param clusterhost_ids: the id of the hosts in the cluster :type clusterhost_ids: list of int """ try: deploy.redeploy(cluster_id, clusterhost_ids, installer_email) except Exception as error: logging.exception(error)