示例#1
0
文件: cluster.py 项目: deriamis/pcs
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
文件: cluster.py 项目: deriamis/pcs
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
文件: cluster.py 项目: deriamis/pcs
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))