def enable_dse(cluster_name, dse_url, dse_username, dse_password, dse_source_build_artifactory_url,
               dse_source_build_artifactory_username, dse_source_build_artifactory_password,
               dse_source_build_oauth_token):

    try:
        cluster = get_clusters(cluster_name, all_metadata=True)[cluster_name][0]
    except __HOLE__:
        raise ValueError("No cluster named {} found".format(cluster_name))

    cluster_ip = cluster['NetworkSettings']['IPAddress']
    with fab.settings(hosts=cluster_ip):
        fab_execute(fab_deploy.enable_dse, dse_url, dse_username, dse_password, dse_source_build_artifactory_url,
                    dse_source_build_artifactory_username, dse_source_build_artifactory_password,
                    dse_source_build_oauth_token)

    with fab.settings(hosts=cluster_ip, user="root"):
        fab_execute(tasks.restart_all_services)
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/docker/cstar_docker.py/enable_dse