Пример #1
0
def disable_cluster_nodes(nodes):
    error_list = utils.map_for_error_list(utils.disableCluster, nodes)
    if len(error_list) > 0:
        utils.err("unable to disable all nodes\n" + "\n".join(error_list))
Пример #2
0
def destroy_cluster(argv):
    if len(argv) > 0:
        error_list = utils.map_for_error_list(utils.destroyCluster, argv)
        if len(error_list) > 0:
            utils.err("unable to destroy cluster\n" + "\n".join(error_list))
        return
Пример #3
0
def stop_cluster_nodes(nodes):
    error_list = utils.map_for_error_list(utils.stopCluster, nodes)
    if len(error_list) > 0:
        utils.err("unable to stop all nodes\n" + "\n".join(error_list))