コード例 #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))